summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-10-06 16:22:52 -0700
committerGlenn Morris <rgm@gnu.org>2012-10-06 16:22:52 -0700
commit32939005d60a106798ebc8bdd3c4a6180e19902d (patch)
tree09154ea46cf3bbc25beb9416ced283f767dbcd68 /lisp
parentaddc11ed80db5e01c96ad587c4d848df0abc1cd2 (diff)
downloademacs-32939005d60a106798ebc8bdd3c4a6180e19902d.tar.gz
* lisp/ehelp.el (electric-help-map): Use button-buffer-map.
Fixes: debbugs:10917
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/ehelp.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c573b9de5b9..2453dc2177a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,8 @@
2012-10-06 Glenn Morris <rgm@gnu.org>
* ehelp.el (electric-help-mode): Use help-mode rather than
- non-existent mode `help'. (Bug#10917)
+ non-existent mode `help'.
+ (electric-help-map): Use button-buffer-map. (Bug#10917)
* textmodes/reftex-vars.el (reftex-create-bibtex-header)
(reftex-create-bibtex-footer): Fix custom types.
diff --git a/lisp/ehelp.el b/lisp/ehelp.el
index 52ac5434ce1..a1bd4d65385 100644
--- a/lisp/ehelp.el
+++ b/lisp/ehelp.el
@@ -61,6 +61,8 @@
(defvar electric-help-map
(let ((map (make-keymap)))
+ ;; FIXME fragile. Should derive from help-mode-map in a smarter way.
+ (set-keymap-parent map button-buffer-map)
;; allow all non-self-inserting keys - search, scroll, etc, but
;; let M-x and C-x exit ehelp mode and retain buffer:
(suppress-keymap map)