Next: , Previous: Drei Command Tables, Up: Defining Drei Commands


18.5.2 Numeric Argument In Drei

The numeric argument state is currently not directly accessible from within commands. However, Drei uses ESA's numeric argument processing code, Drei commands can thus be provided with numeric arguments in the same way as ESA commands can. When using set-key to setup keybindings, provide the value of *numeric-argument-marker* as an argument to have the command processing code automatically insert the value of the numeric argument whenever the keybinding is invoked. You can also use *numeric-argument-p* to have a boolean value, stating whether or not a numeric argument has been provided by the user, inserted. Note that you must write your commands to accept arguments before you can do this (see Examples Of Defining Drei Commands).