Debian package: Add support for xulrunner 18
[conkeror.git] / modules / quote.js
bloba8decad0b70e73ba701f65c22bb07dc5912bba21
1 /**
2  * (C) Copyright 2007-2008 Jeremy Maitin-Shepard
3  * (C) Copyright 2008-2010 John J. Foerch
4  *
5  * Use, modification, and distribution are subject to the terms specified in the
6  * COPYING file.
7 **/
9 define_buffer_mode("quote-next-mode",
10     function enable (buffer) {
11         buffer.override_keymaps([quote_next_keymap]);
12     },
13     function disable (buffer) {
14         buffer.override_keymaps();
15     },
16     $display_name = "QUOTE-NEXT",
17     $doc = "This mode sends the next key combo to the buffer, bypassing "+
18         "normal key handling.  It disengages after one key combo.");
20 interactive("quote-next-mode-disable",
21     "Disable quote-next-mode.",
22     function (I) {
23         quote_next_mode.disable(I.buffer);
24         I.buffer.set_input_mode();
25     });
28 define_buffer_mode("quote-mode",
29     function enable (buffer) {
30         buffer.override_keymaps([quote_keymap]);
31     },
32     function disable (buffer) {
33         buffer.override_keymaps();
34     },
35     $display_name = "QUOTE",
36     $doc = "This mode sends all key combos to the buffer, "+
37         "bypassing normal key handling, until the escape "+
38         "key is pressed.");
41 interactive("quote-mode-disable",
42     "Disable quote-mode.",
43     function (I) {
44         quote_mode.disable(I.buffer);
45         I.buffer.set_input_mode();
46     });
49 provide("quote");