diff options
| author | Richard M. Stallman | 1998-01-02 23:37:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-01-02 23:37:19 +0000 |
| commit | 64dd36298286093d583b9d602d9fa2eead961fc4 (patch) | |
| tree | d1998df6cc6ce7a7293bad53cfe569b9b96ccf2b /src | |
| parent | f171f7c36369683dade05eea68c8207d0ccf1e66 (diff) | |
| download | emacs-64dd36298286093d583b9d602d9fa2eead961fc4.tar.gz emacs-64dd36298286093d583b9d602d9fa2eead961fc4.zip | |
(current_minor_maps):
If a variable has an entry in Vminor_mode_overriding_map_alist,
and also an entry in Vminor_mode_map_alist, ignore the latter.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keymap.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/keymap.c b/src/keymap.c index 0ba367d29f8..4137de08a57 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1077,6 +1077,16 @@ current_minor_maps (modeptr, mapptr) | |||
| 1077 | { | 1077 | { |
| 1078 | Lisp_Object temp; | 1078 | Lisp_Object temp; |
| 1079 | 1079 | ||
| 1080 | /* If a variable has an entry in Vminor_mode_overriding_map_alist, | ||
| 1081 | and also an entry in Vminor_mode_map_alist, | ||
| 1082 | ignore the latter. */ | ||
| 1083 | if (list_number == 1) | ||
| 1084 | { | ||
| 1085 | val = assq_no_quit (var, lists[0]); | ||
| 1086 | if (!NILP (val)) | ||
| 1087 | break; | ||
| 1088 | } | ||
| 1089 | |||
| 1080 | if (i >= cmm_size) | 1090 | if (i >= cmm_size) |
| 1081 | { | 1091 | { |
| 1082 | Lisp_Object *newmodes, *newmaps; | 1092 | Lisp_Object *newmodes, *newmaps; |