Cleanup definition of builtin cmd_ commands, support negative prefix argument
commitbb625877464f196a9eba0b56e38318e1c9f9ca44
authorJeremy Maitin-Shepard <jeremy@jeremyms.com>
Wed, 9 Jan 2008 17:12:53 +0000 (9 12:12 -0500)
committerJeremy Maitin-Shepard <jeremy@jeremyms.com>
Wed, 9 Jan 2008 17:14:03 +0000 (9 12:14 -0500)
treeacb761a0b762e37f948024eda23e1f8b5f0afd18
parent2a5b63927826b7391b6be8a7b99e2ecebfcc67e6
Cleanup definition of builtin cmd_ commands, support negative prefix argument

The array of strings `builtin_commands' in utils.js defines the names
of builtin commands that do not accept a count argument.  The array
`builtin_commands_with_count' (also in utils.js) defines the names of
builtin commands that accept a prefix argument.  If an element of the
array is a string, it defines a command that accepts only a positive
count; otherwise, the element must itself be a two-element array of
strings, specifying a pair of opposite command names.
modules/commands.js
modules/minibuffer.js
modules/utils.js