summaryrefslogtreecommitdiff
path: root/lisp/help.el
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2014-08-07 11:25:09 +0800
committerLeo Liu <sdl.web@gmail.com>2014-08-07 11:25:09 +0800
commit59e42442085d4cf2032324acf0f5467278554c74 (patch)
tree893d85a05e2c1fda0a6d40036e6159cb69ddcbe5 /lisp/help.el
parent92ae66ae3f3bd94445144aeed593cb8b3de5bef0 (diff)
downloademacs-59e42442085d4cf2032324acf0f5467278554c74.tar.gz
* lisp/help.el (temp-buffer-setup-hook,temp-buffer-show-hook): Revert
change on 2014-03-22.
Diffstat (limited to 'lisp/help.el')
-rw-r--r--lisp/help.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/help.el b/lisp/help.el
index 63a658f391c..2da43d3ed48 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -32,6 +32,10 @@
;; or run interpreted, but not when the compiled code is loaded.
(eval-when-compile (require 'help-macro))
+;; This makes `with-output-to-temp-buffer' buffers use `help-mode'.
+(add-hook 'temp-buffer-setup-hook 'help-mode-setup)
+(add-hook 'temp-buffer-show-hook 'help-mode-finish)
+
;; `help-window-point-marker' is a marker you can move to a valid
;; position of the buffer shown in the help window in order to override
;; the standard positioning mechanism (`point-min') chosen by