+2008-09-18 Martin Rudalics <rudalics@gmx.at>
+
+ * help-macro.el (make-help-screen): Preserve key bindings
+ established in help-mode call when exiting this macro.
+
2008-09-17 Kenichi Handa <handa@m17n.org>
* language/burmese.el: Fix setting of composition-function-table.
;; sections, *excluding* where we switch buffers
;; and where we execute the chosen help command.
(local-map (make-sparse-keymap))
- (minor-mode-map-alist nil)
+ (new-minor-mode-map-alist minor-mode-map-alist)
(prev-frame (selected-frame))
config new-frame key char)
(if (string-match "%THIS-KEY%" help-screen)
(replace-match (key-description (substring (this-command-keys) 0 -1))
t t help-screen)))
(unwind-protect
- (progn
+ (let ((minor-mode-map-alist nil))
(setcdr local-map ,helped-map)
(define-key local-map [t] 'undefined)
;; Make the scroll bar keep working normally.
(let ((inhibit-read-only t))
(erase-buffer)
(insert help-screen))
- (help-mode)
+ (let ((minor-mode-map-alist new-minor-mode-map-alist))
+ (help-mode)
+ (setq new-minor-mode-map-alist minor-mode-map-alist))
(goto-char (point-min))
(while (or (memq char (append help-event-list
(cons help-char '(?? ?\C-v ?\s ?\177 delete backspace vertical-scroll-bar ?\M-v))))
(ding)))))
(if new-frame (iconify-frame new-frame))
(if config
- (set-window-configuration config))))))
- )))
+ (set-window-configuration config))
+ (setq minor-mode-map-alist new-minor-mode-map-alist))))))))
(provide 'help-macro)