1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 12:58:00 +01:00

Merge with master.

This commit is contained in:
Kris Maglione
2008-12-18 14:03:15 -05:00
11 changed files with 24 additions and 30 deletions

View File

@@ -107,7 +107,7 @@ $(JAR): doc
check-asciidoc: check-asciidoc:
@asciidoc --version | awk '{ exit $$2 !~ /^8\.2\./ }' || \ @asciidoc --version | awk '{ exit $$2 !~ /^8\.2\./ }' || \
echo >&2 "Warning: asciidoc versions other 8.2.x are unsupported" echo >&2 "Warning: asciidoc versions other than 8.2.x are unsupported"
${DOC_FILES}: %.html: %.txt $(BASE)/Makefile.common locale/en-US/asciidoc.conf ${DOC_FILES}: %.html: %.txt $(BASE)/Makefile.common locale/en-US/asciidoc.conf
@echo "DOC $@" @echo "DOC $@"

View File

@@ -173,24 +173,8 @@ function Buffer() //{{{
"Show current website with a minimal style sheet to make it easily accessible", "Show current website with a minimal style sheet to make it easily accessible",
"boolean", false, "boolean", false,
{ {
setter: function (value) setter: function (value) getBrowser().markupDocumentViewer.authorStyleDisabled = value,
{ getter: function () getBrowser().markupDocumentViewer.authorStyleDisabled
try
{
window.getMarkupDocumentViewer().authorStyleDisabled = value;
}
catch (e) {}
return value;
},
getter: function ()
{
try
{
return window.getMarkupDocumentViewer().authorStyleDisabled;
}
catch (e) {}
}
}); });
/////////////////////////////////////////////////////////////////////////////}}} /////////////////////////////////////////////////////////////////////////////}}}

View File

@@ -1374,6 +1374,7 @@ function Completion() //{{{
help: function help(context) help: function help(context)
{ {
context.title = ["Help"]; context.title = ["Help"];
context.anchored = false;
context.generate = function () context.generate = function ()
{ {
let res = config.helpFiles.map(function (file) { let res = config.helpFiles.map(function (file) {

View File

@@ -171,7 +171,6 @@ function AutoCommands() //{{{
completion.setFunctionCompleter(autocommands.get, [function () config.autocommands]); completion.setFunctionCompleter(autocommands.get, [function () config.autocommands]);
}); });
return { return {
__iterator__: function () util.Array.iterator(store), __iterator__: function () util.Array.iterator(store),
@@ -255,7 +254,17 @@ function AutoCommands() //{{{
liberator.echomsg("autocommand " + autoCmd.command, 9); liberator.echomsg("autocommand " + autoCmd.command, 9);
if (typeof autoCmd.command == "function") if (typeof autoCmd.command == "function")
{
try
{
autoCmd.command.call(autoCmd, args); autoCmd.command.call(autoCmd, args);
}
catch(e)
{
liberator.reportError(e);
liberator.echoerr(e);
}
}
else else
liberator.execute(commands.replaceTokens(autoCmd.command, args)); liberator.execute(commands.replaceTokens(autoCmd.command, args));
} }

View File

@@ -254,7 +254,7 @@ function Hints() //{{{
// 'usermode' appropriately? We're generally not very well integrated // 'usermode' appropriately? We're generally not very well integrated
// into FF so having menu items toggle Vimperator options may be // into FF so having menu items toggle Vimperator options may be
// confusing. --djk // confusing. --djk
if (window.getMarkupDocumentViewer().authorStyleDisabled) if (getBrowser().markupDocumentViewer.authorStyleDisabled)
{ {
let css = []; let css = [];
// FIXME: Broken for imgspans. // FIXME: Broken for imgspans.

View File

@@ -121,7 +121,7 @@ function IO() //{{{
} }
catch (e) catch (e)
{ {
return { exists: function () false, __noSuchMethod__: function () { throw e } }; return { exists: function () false, __noSuchMethod__: function () { throw e; } };
} }
return path; return path;
} }

View File

@@ -98,7 +98,6 @@ const liberator = (function () //{{{
"Allow reading of an RC file in the current directory", "Allow reading of an RC file in the current directory",
"boolean", false); "boolean", false);
const groups = { const groups = {
config: { config: {
opts: config.guioptions, opts: config.guioptions,

View File

@@ -22,6 +22,7 @@ BUGS:
(recent CVS regressions): (recent CVS regressions):
- visual caret mode is broken - visual caret mode is broken
- BookmarkAdd is fired once for each bookmark periodically i.e. not in response to adding a bookmark
FEATURES: FEATURES:
9 fix local options 9 fix local options