From: Leo Liu Date: Thu, 7 Aug 2014 03:25:09 +0000 (+0800) Subject: * lisp/help.el (temp-buffer-setup-hook,temp-buffer-show-hook): Revert X-Git-Tag: emacs-25.0.90~2635^2~679^2~513 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=59e42442085d4cf2032324acf0f5467278554c74;p=emacs.git * lisp/help.el (temp-buffer-setup-hook,temp-buffer-show-hook): Revert change on 2014-03-22. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ae2fcc5d11c..d8eb7e7dc6c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,6 +1,11 @@ +2014-08-07 Leo Liu + + * help.el (temp-buffer-setup-hook,temp-buffer-show-hook): Revert + change on 2014-03-22. + 2014-08-06 Ulf Jasper - * calendar/icalendar.el (icalendar--diarytime-to-isotime): + * calendar/icalendar.el (icalendar--diarytime-to-isotime): (icalendar--convert-ordinary-to-ical): Allow for missing minutes (Bug#13750). 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