GNU bug report logs - #14504
lisp-mode-shared-map does not derive from prog-mode-map

Previous Next

Package: emacs;

Reported by: Sebastian Wiesner <lunaryorn <at> gmail.com>

Date: Wed, 29 May 2013 15:12:01 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14504 in the body.
You can then email your comments to 14504 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#14504; Package emacs. (Wed, 29 May 2013 15:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sebastian Wiesner <lunaryorn <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 29 May 2013 15:12:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Wiesner <lunaryorn <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: lisp-mode-shared-map does not derive from prog-mode-map
Date: Wed, 29 May 2013 15:27:09 +0200
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Reply sent to Stefan Monnier <monnier <at> IRO.UMontreal.CA>:
You have taken responsibility. (Wed, 29 May 2013 19:35:02 GMT) Full text and rfc822 format available.

Notification sent to Sebastian Wiesner <lunaryorn <at> gmail.com>:
bug acknowledged by developer. (Wed, 29 May 2013 19:35:02 GMT) Full text and rfc822 format available.

Message #10 received at 14504-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Sebastian Wiesner <lunaryorn <at> gmail.com>
Cc: 14504-done <at> debbugs.gnu.org
Subject: Re: bug#14504: lisp-mode-shared-map does not derive from prog-mode-map
Date: Wed, 29 May 2013 15:33:30 -0400
> 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





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 27 Jun 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 56 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.