diff options
| author | Karl Heuer | 1997-10-16 18:46:36 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-16 18:46:36 +0000 |
| commit | 7b33b170cd6d431f6c307e075d3554538ea4a2b2 (patch) | |
| tree | 6fe175267e517f43eb63975738476cb65aecd326 | |
| parent | e8955f1d904454bc424d1446b1a0299c558e7aad (diff) | |
| download | emacs-7b33b170cd6d431f6c307e075d3554538ea4a2b2.tar.gz emacs-7b33b170cd6d431f6c307e075d3554538ea4a2b2.zip | |
Removed changelog comment section.
(double): New group.
(double-map): Add customize support.
(double-prefix-only): Ditto.
| -rw-r--r-- | lisp/double.el | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/lisp/double.el b/lisp/double.el index 14b2a58606d..a494c6585be 100644 --- a/lisp/double.el +++ b/lisp/double.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; double.el --- Support for keyboard remapping with double clicking | 1 | ;;; double.el --- Support for keyboard remapping with double clicking |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994,1997 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> | 5 | ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> |
| 6 | ;; Keywords: i18n | 6 | ;; Keywords: i18n |
| @@ -49,18 +49,13 @@ | |||
| 49 | ;; of such mappings, and just supporting the most common would | 49 | ;; of such mappings, and just supporting the most common would |
| 50 | ;; increase the size of this nice small file manyfold. | 50 | ;; increase the size of this nice small file manyfold. |
| 51 | 51 | ||
| 52 | ;;; ChangeLog: | ||
| 53 | |||
| 54 | ;; * 1994-06-21 Per Abrahamsen | ||
| 55 | ;; Added `double-prefix-only'. | ||
| 56 | ;; * 1994-02-28 Per Abrahamsen | ||
| 57 | ;; Use 127 instead of 'delete to delete a character. | ||
| 58 | ;; * 1994-02-03 Per Abrahamsen | ||
| 59 | ;; Created. | ||
| 60 | |||
| 61 | ;;; Code: | 52 | ;;; Code: |
| 62 | 53 | ||
| 63 | (defvar double-map | 54 | (defgroup double nil |
| 55 | "Remap keyboard, but get original by typing the same key twice." | ||
| 56 | :group 'i18n) | ||
| 57 | |||
| 58 | (defcustom double-map | ||
| 64 | '((?\; "\346" ";") | 59 | '((?\; "\346" ";") |
| 65 | (?\' "\370" "'") | 60 | (?\' "\370" "'") |
| 66 | (?\[ "\345" "[") | 61 | (?\[ "\345" "[") |
| @@ -72,12 +67,18 @@ | |||
| 72 | Each entry is a list with three elements: | 67 | Each entry is a list with three elements: |
| 73 | 1. The key activating the translation. | 68 | 1. The key activating the translation. |
| 74 | 2. The string to be inserted when the key is pressed once. | 69 | 2. The string to be inserted when the key is pressed once. |
| 75 | 3. The string to be inserted when the key is pressed twice.") | 70 | 3. The string to be inserted when the key is pressed twice." |
| 71 | :group 'double | ||
| 72 | :type '(repeat (list (character :tag "Key") | ||
| 73 | (string :tag "Once") | ||
| 74 | (string :tag "Twice")))) | ||
| 76 | 75 | ||
| 77 | (defvar double-prefix-only t | 76 | (defcustom double-prefix-only t |
| 78 | "*Non-nil means that Double mode mapping only works for prefix keys. | 77 | "*Non-nil means that Double mode mapping only works for prefix keys. |
| 79 | That is, for any key `X' in `double-map', `X' alone will be mapped | 78 | That is, for any key `X' in `double-map', `X' alone will be mapped |
| 80 | but not `C-u X' or `ESC X' since the X is not the prefix key.") | 79 | but not `C-u X' or `ESC X' since the X is not the prefix key." |
| 80 | :group 'double | ||
| 81 | :type 'boolean) | ||
| 81 | 82 | ||
| 82 | ;;; Read Event | 83 | ;;; Read Event |
| 83 | 84 | ||