An `open-line' command.
commit3fdc14e47c7b1a1bb5b0d93eb617faed42254737
authorDavid House <dmhouse@gmail.com>
Thu, 28 Aug 2008 19:32:45 +0000 (28 20:32 +0100)
committerJohn Foerch <jjfoerch@earthlink.net>
Mon, 1 Sep 2008 16:04:26 +0000 (1 12:04 -0400)
treedb5bc335b7c45df16e5d359a413d40711e10f905
parentd7c708da05af233c5c676e8d27b62cff6a4fdba4
An `open-line' command.

/**
 * Replace the current region with modifier(selection). Deactivates region and
 * sets point to the end of the inserted text, unless keep_point is true, in
 * which case the point will be left at the beginning of the inserted text.
 */
function modify_region(field, modifier, keep_point) {

/**
 * Given a callback func and an interactive context I, call func, passing either
 * a focused field, or the minibuffer's input element if the minibuffer is
 * active. Afterward, call `ensure_index_is_visible' on the field. See
 * `paste_x_primary_selection' and `open_line' for examples.
 */
function call_on_focused_field(I, func) {
modules/bindings/default/content-buffer/textarea.js
modules/commands.js