diff options
| author | Gerd Moellmann | 2000-05-11 09:28:06 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-05-11 09:28:06 +0000 |
| commit | 739f26728c43202851a9d4d6fbe792e09be65ff4 (patch) | |
| tree | f7f19b784e535a564e28e19d650107a25165c2a9 | |
| parent | 2d0600a3d85fd1b0cab38ac280f435510b2abc08 (diff) | |
| download | emacs-739f26728c43202851a9d4d6fbe792e09be65ff4.tar.gz emacs-739f26728c43202851a9d4d6fbe792e09be65ff4.zip | |
(substitute-key-definition): Add comment describing
the meaning of PREFIX.
| -rw-r--r-- | lisp/subr.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 1d37402f22d..d99153bf8cd 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -228,6 +228,13 @@ but optional second arg NODIGITS non-nil treats them like other chars." | |||
| 228 | In other words, OLDDEF is replaced with NEWDEF where ever it appears. | 228 | In other words, OLDDEF is replaced with NEWDEF where ever it appears. |
| 229 | Alternatively, if optional fourth argument OLDMAP is specified, we redefine | 229 | Alternatively, if optional fourth argument OLDMAP is specified, we redefine |
| 230 | in KEYMAP as NEWDEF those chars which are defined as OLDDEF in OLDMAP." | 230 | in KEYMAP as NEWDEF those chars which are defined as OLDDEF in OLDMAP." |
| 231 | ;; Don't document PREFIX in the doc string because we don't want to | ||
| 232 | ;; advertise it. It's meant for recursive calls only. Here's its | ||
| 233 | ;; meaning | ||
| 234 | |||
| 235 | ;; If optional argument PREFIX is specified, it should be a key | ||
| 236 | ;; prefix, a string. Redefined bindings will then be bound to the | ||
| 237 | ;; original key, with PREFIX added at the front. | ||
| 231 | (or prefix (setq prefix "")) | 238 | (or prefix (setq prefix "")) |
| 232 | (let* ((scan (or oldmap keymap)) | 239 | (let* ((scan (or oldmap keymap)) |
| 233 | (vec1 (vector nil)) | 240 | (vec1 (vector nil)) |