emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#14504: closed (lisp-mode-shared-map does not deriv


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14504: closed (lisp-mode-shared-map does not derive from prog-mode-map)
Date: Wed, 29 May 2013 19:35:02 +0000

Your message dated Wed, 29 May 2013 15:33:30 -0400
with message-id <address@hidden>
and subject line Re: bug#14504: lisp-mode-shared-map does not derive from 
prog-mode-map
has caused the debbugs.gnu.org bug report #14504,
regarding lisp-mode-shared-map does not derive from prog-mode-map
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14504: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14504
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: lisp-mode-shared-map does not derive from prog-mode-map Date: Wed, 29 May 2013 15:27:09 +0200
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

--- End Message ---
--- Begin Message --- Subject: Re: bug#14504: lisp-mode-shared-map does not derive from prog-mode-map Date: Wed, 29 May 2013 15:33:30 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
> 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



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]