* bug#14504: lisp-mode-shared-map does not derive from prog-mode-map
@ 2013-05-29 13:27 Sebastian Wiesner
2013-05-29 19:33 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Wiesner @ 2013-05-29 13:27 UTC (permalink / raw)
To: 14504
[-- Attachment #1: Type: text/plain, Size: 348 bytes --]
The parent keymap of "emacs-lisp-mode-map", "lisp-mode-shared-map" does
not inherit from "prog-mode-map", which has the odd effect, that though
"emacs-lisp-mode" derives from "prog-mode", "emacs-lisp-mode-map" does
not.
Hence, key bindings in "prog-mode-map" have no effect in
"emacs-lisp-mode-map", see http://stackoverflow.com/q/16801689/355252
[-- Attachment #2: Type: text/html, Size: 533 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#14504: lisp-mode-shared-map does not derive from prog-mode-map
2013-05-29 13:27 bug#14504: lisp-mode-shared-map does not derive from prog-mode-map Sebastian Wiesner
@ 2013-05-29 19:33 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-05-29 19:33 UTC (permalink / raw)
To: Sebastian Wiesner; +Cc: 14504-done
> The parent keymap of "emacs-lisp-mode-map", "lisp-mode-shared-map" does
> not inherit from "prog-mode-map", which has the odd effect, that though
> "emacs-lisp-mode" derives from "prog-mode", "emacs-lisp-mode-map" does
> not.
Thank you for the report. I installed the patch below which should fix
this oversight.
Stefan
=== modified file 'lisp/emacs-lisp/lisp-mode.el'
--- lisp/emacs-lisp/lisp-mode.el 2013-05-06 20:23:40 +0000
+++ lisp/emacs-lisp/lisp-mode.el 2013-05-29 17:56:08 +0000
@@ -266,6 +266,7 @@
(defvar lisp-mode-shared-map
(let ((map (make-sparse-keymap)))
+ (set-keymap-parent map prog-mode-map)
(define-key map "\e\C-q" 'indent-sexp)
(define-key map "\177" 'backward-delete-char-untabify)
;; This gets in the way when viewing a Lisp file in view-mode. As
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-29 19:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 13:27 bug#14504: lisp-mode-shared-map does not derive from prog-mode-map Sebastian Wiesner
2013-05-29 19:33 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).