1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 11:15:47 +01:00

Typo and consistency fixes.

This commit is contained in:
Štěpán Němec
2011-01-20 00:41:16 +01:00
parent d72bf559ee
commit 172c0058cf
9 changed files with 32 additions and 35 deletions

View File

@@ -43,7 +43,7 @@
string representation and all of their enumerable properties. string representation and all of their enumerable properties.
</p> </p>
<p>See also <ex>:javascript</ex></p> <p>See also <ex>:javascript</ex>.</p>
</description> </description>
</item> </item>

View File

@@ -625,35 +625,30 @@
describing the command's arguments. It should set the context's describing the command's arguments. It should set the context's
<tt>completions</tt> property to the list of completion results. <tt>completions</tt> property to the list of completion results.
Other influential properties include <tt>title</tt>, <tt>sort</tt>, Other influential properties include <tt>title</tt>, <tt>sort</tt>,
<tt>anthored</tt>, and <tt>filters</tt>, which are documented in the <tt>anchored</tt>, and <tt>filters</tt>, which are documented in the
<link topic="resource://dactyl/completion.jsm" <link topic="resource://dactyl/completion.jsm"
line="17" dactyl:command="buffer.viewSource">source code</link>. line="17" dactyl:command="buffer.viewSource">source code</link>.
</p> </p>
<p> <p>
<em>start</em> is the index into the word being completed at which the returned values <em>completions</em> is a two-dimensional array of the form:
should be applied and <em>completions</em> is a two-dimensional array of the form:
<tt>[[arg1, description1], [arg2, description2], …]</tt> <tt>[[arg1, description1], [arg2, description2], …]</tt>
</p> </p>
<p> <p>
Otherwise <a>thing</a> should be an array of the same form as the Otherwise <a>thing</a> should evaluate to an array of the same form
<tt>completions</tt> property of the context object. as the <tt>completions</tt> property of the context object.
</p> </p>
<p> <p>
Example: Example:
<code><ex>:command foo -nargs=<str>?</str> <code><ex>:command foo -nargs=<str>?</str> -complete custom,
\ -complete custom,<str delim="'"> \ <str delim="'">function (context) context.completions = [["arg1", "description1"], ["arg2", "description2"]]</str>
\ function (context) context.completions = [["arg1", "description1"], ["arg2", "description2"]]</str> \ <ex>:echo</ex> <str>Useless </str> + <em>&lt;q-args></em></ex>
\ <ex>:echo</ex> <str>Useless </str> + <em>&lt;q-args></em></ex>
<ex>:command foo -nargs=<str>?</str> <ex>:command foo -nargs=<str>?</str>
\ -complete custom,<str delim="'">[ \ -complete custom,<str delim="'">[["arg1", "description1"], ["arg2, "description2"]]</str>
\ ["arg1", "description1"], \ <ex>:echo</ex> <str>Same as above but simpler </str> + <em>&lt;q-args></em></ex></code>
\ ["arg2, "description2"]
\ ]</str>
\ <ex>:echo</ex> <str>Same as above but simpler </str> + <em>&lt;q-args></em></ex></code>
</p> </p>
<h3 tag="E177 E178 :command-count">Count handling</h3> <h3 tag="E177 E178 :command-count">Count handling</h3>

View File

@@ -1568,7 +1568,7 @@
load. load.
</p> </p>
<p>See also <ex>:contexts</ex></p> <p>See also <ex>:contexts</ex>.</p>
</description> </description>
</item> </item>

View File

@@ -156,7 +156,7 @@
extensions, with all hyphens stripped and any letter following a extensions, with all hyphens stripped and any letter following a
hyphen capitalized. So, the file hyphen capitalized. So, the file
<em>~/.&dactyl.name;/plugins/foo-bar.js</em> may be accessed as <em>~/.&dactyl.name;/plugins/foo-bar.js</em> may be accessed as
<em>plugins.fooBar</em>. See also <t>writing-plugins</t> <em>plugins.fooBar</em>. See also <t>writing-plugins</t>.
</p> </p>
<h3 tag=":source-ex">Ex commands</h3> <h3 tag=":source-ex">Ex commands</h3>

View File

@@ -125,7 +125,7 @@
<p> <p>
Every invocation completely replaces the styling of any previous Every invocation completely replaces the styling of any previous
invocation, unless <em>-append</em> (short option: <em>-a</em>) is invocation, unless <em>-append</em> (short name <em>-a</em>) is
provided, in which case <a>css</a> is appended to its current provided, in which case <a>css</a> is appended to its current
value. If <a>css</a> is not provided, any styles beginning with value. If <a>css</a> is not provided, any styles beginning with
<a>group</a> are listed. <a>group</a> are listed.
@@ -159,7 +159,7 @@
<dl> <dl>
<dt>-append</dt> <dt>-append</dt>
<dd>If provided along with <em>-name</em>, <oa>css</oa> and <dd>If provided along with <em>-name</em>, <oa>css</oa> and
<a>filter</a> are appended to its current value. (short name: <em>-a</em>)</dd> <a>filter</a> are appended to its current value. (short name <em>-a</em>)</dd>
<dt>-agent</dt> <dt>-agent</dt>
<dd>If provided, the style is installed as an Agent sheet, which <dd>If provided, the style is installed as an Agent sheet, which
@@ -167,8 +167,9 @@
elements. (short name <em>-A</em>)</dd> elements. (short name <em>-A</em>)</dd>
<dt>-name=<a>name</a></dt> <dt>-name=<a>name</a></dt>
<dd>If provided, any existing style with the same name is overridden, and the style may later be deleted using <a>name</a>. <dd>If provided, any existing style with the same name is
(short name <em>-n</em>)</dd> overridden, and the style may later be deleted using
<a>name</a>. (short name <em>-n</em>)</dd>
</dl> </dl>
@@ -191,9 +192,9 @@
<p>The available options are:</p> <p>The available options are:</p>
<dl> <dl>
<dt>-name</dt> <dd>The name provided to <ex>:style</ex> (short option: <em>-n</em>)</dd> <dt>-name</dt> <dd>The name provided to <ex>:style</ex> (short name <em>-n</em>)</dd>
<dt>-index</dt> <dd>For unnamed styles, the index listed by <ex>:style</ex> <dt>-index</dt> <dd>For unnamed styles, the index listed by <ex>:style</ex>
(short option: <em>-i</em>)</dd> (short name <em>-i</em>)</dd>
</dl> </dl>
</description> </description>
</item> </item>

View File

@@ -38,7 +38,7 @@
<p>Fake key events.</p> <p>Fake key events.</p>
<dl> <dl>
<dt>-mode</dt> <dd>The mode in which to feed the keys (short name: <em>-m</em>)</dd> <dt>-mode</dt> <dd>The mode in which to feed the keys (short name <em>-m</em>)</dd>
</dl> </dl>
</description> </description>
</item> </item>

View File

@@ -399,15 +399,16 @@ function isSubclass(targ, src) {
} }
/** /**
* Returns true if object is an instance or interfaces. If interfaces is an array, * Returns true if *object* is an instance of *interfaces*. If *interfaces* is
* returns true if object is an instance of any element of interfaces. If interfaces is * an array, returns true if *object* is an instance of any element of
* the object form of a primitive type, returns true if object is a * *interfaces*. If *interfaces* is the object form of a primitive type,
* non-boxed version of the type, i.e., if (typeof object == "string"), * returns true if *object* is a non-boxed version of the type, i.e., if
* isinstance(object, String) is true. Finally, if interfaces is a string, * (typeof object == "string"), isinstance(object, String) is true. Finally, if
* returns true if ({}.toString.call(object) == "[object <interfaces>]"). * *interfaces* is a string, returns true if ({}.toString.call(object) ==
* "[object <interfaces>]").
* *
* @param {object} object The object to check. * @param {object} object The object to check.
* @param {constructor|[constructor|string]} interfaces The types to check object against. * @param {constructor|[constructor|string]} interfaces The types to check *object* against.
* @returns {boolean} * @returns {boolean}
*/ */
var isinstance_types = { var isinstance_types = {

View File

@@ -63,7 +63,7 @@
:listoptions and :listcommands, providing more powerful and :listoptions and :listcommands, providing more powerful and
consistent interactive help facility (improvements include consistent interactive help facility (improvements include
listing keys for modes other than Normal, filtering the output listing keys for modes other than Normal, filtering the output
and linking to source locations). and linking to source code locations).
- :downloads now opens a download list in the multi-line output - :downloads now opens a download list in the multi-line output
buffer. buffer.
- Added :cookies command. - Added :cookies command.
@@ -120,7 +120,7 @@
no longer be split at quoted commas and the option name, no longer be split at quoted commas and the option name,
operators, and = sign may no longer be quoted. This will break operators, and = sign may no longer be quoted. This will break
certain automatically-generated configuration files. certain automatically-generated configuration files.
See :help stringlist See :help stringlist.
* Option changes: * Option changes:
- Added "bookmarks", "diverted", and "links" to 'activate' - Added "bookmarks", "diverted", and "links" to 'activate'
option. option.

View File

@@ -7,7 +7,7 @@
xmlns="&xmlns.dactyl;" xmlns="&xmlns.dactyl;"
xmlns:html="&xmlns.html;"> xmlns:html="&xmlns.html;">
<dl tag="autocommand-list" tag="autocommand-list" replace="autocommand-list"> <dl tag="autocommand-list" replace="autocommand-list">
<dt>BookmarkAdd</dt> <dd>Triggered after a page is bookmarked</dd> <dt>BookmarkAdd</dt> <dd>Triggered after a page is bookmarked</dd>
<dt>BookmarkChange</dt> <dd>Triggered after a page's bookmark is changed</dd> <dt>BookmarkChange</dt> <dd>Triggered after a page's bookmark is changed</dd>
<dt>BookmarkRemove</dt> <dd>Triggered after a page's bookmark is removed</dd> <dt>BookmarkRemove</dt> <dd>Triggered after a page's bookmark is removed</dd>
@@ -26,7 +26,7 @@
<dt>Leave</dt> <dd>Triggered before exiting &dactyl.host;</dd> <dt>Leave</dt> <dd>Triggered before exiting &dactyl.host;</dd>
</dl> </dl>
<dl tag="autocommand-args" tag="autocommand-args"replace="autocommand-args"> <dl tag="autocommand-args" replace="autocommand-args">
<dt>&lt;bookmark></dt> <dd>The JavaScript bookmark object. Only for <em>Bookmark*</em>.</dd> <dt>&lt;bookmark></dt> <dd>The JavaScript bookmark object. Only for <em>Bookmark*</em>.</dd>
<dt>&lt;changed></dt> <dd>The name of the property that has changed. Only for <em>BookmarkChange</em>.</dd> <dt>&lt;changed></dt> <dd>The name of the property that has changed. Only for <em>BookmarkChange</em>.</dd>
<dt>&lt;doc></dt> <dd>The document for which the event occurred. Only for <em>DOMLoad</em>, <em>PageLoad</em> and <em>PageLoadPre</em>.</dd> <dt>&lt;doc></dt> <dd>The document for which the event occurred. Only for <em>DOMLoad</em>, <em>PageLoad</em> and <em>PageLoadPre</em>.</dd>