diff options
| author | Martin Rudalics | 2011-09-29 10:16:15 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2011-09-29 10:16:15 +0200 |
| commit | b5516bbd83019a2bf549991f1a73afe754cfc439 (patch) | |
| tree | 36894c6eb89fd05975a5e3bad73874dad422493b | |
| parent | 52aa0014e753e81ec0ed1d6fcd7cf25c01dd0071 (diff) | |
| download | emacs-b5516bbd83019a2bf549991f1a73afe754cfc439.tar.gz emacs-b5516bbd83019a2bf549991f1a73afe754cfc439.zip | |
In command-line-1 insert initial-scratch-message before markers (Bug#9605).
* startup.el (command-line-1): Use insert-before-markers when
inserting initial-scratch-message. (Bug#9605)
* help.el (help-window): Remove variable.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/help.el | 11 | ||||
| -rw-r--r-- | lisp/startup.el | 5 |
3 files changed, 10 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c8db50ac3bd..a5d048247a7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-09-29 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * startup.el (command-line-1): Use insert-before-markers when | ||
| 4 | inserting initial-scratch-message. (Bug#9605) | ||
| 5 | * help.el (help-window): Remove variable. | ||
| 6 | |||
| 1 | 2011-09-29 Glenn Morris <rgm@gnu.org> | 7 | 2011-09-29 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * pcmpl-cvs.el (pcomplete/cvs): Add "status" handler. | 9 | * pcmpl-cvs.el (pcomplete/cvs): Add "status" handler. |
diff --git a/lisp/help.el b/lisp/help.el index f4338c28ffb..e2af0759a65 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -37,17 +37,6 @@ | |||
| 37 | (add-hook 'temp-buffer-setup-hook 'help-mode-setup) | 37 | (add-hook 'temp-buffer-setup-hook 'help-mode-setup) |
| 38 | (add-hook 'temp-buffer-show-hook 'help-mode-finish) | 38 | (add-hook 'temp-buffer-show-hook 'help-mode-finish) |
| 39 | 39 | ||
| 40 | ;; The variable `help-window' below is used by `help-mode-finish' to | ||
| 41 | ;; communicate the window displaying help (the "help window") to the | ||
| 42 | ;; macro `with-help-window'. The latter sets `help-window' to t before | ||
| 43 | ;; invoking `with-output-to-temp-buffer'. If and only if `help-window' | ||
| 44 | ;; is eq to t, `help-mode-finish' (called by `temp-buffer-setup-hook') | ||
| 45 | ;; sets `help-window' to the window selected by `display-buffer'. | ||
| 46 | ;; Exiting `with-help-window' and calling `help-print-return-message' | ||
| 47 | ;; reset `help-window' to nil. | ||
| 48 | (defvar help-window nil | ||
| 49 | "Window chosen for displaying help.") | ||
| 50 | |||
| 51 | ;; `help-window-point-marker' is a marker you can move to a valid | 40 | ;; `help-window-point-marker' is a marker you can move to a valid |
| 52 | ;; position of the buffer shown in the help window in order to override | 41 | ;; position of the buffer shown in the help window in order to override |
| 53 | ;; the standard positioning mechanism (`point-min') chosen by | 42 | ;; the standard positioning mechanism (`point-min') chosen by |
diff --git a/lisp/startup.el b/lisp/startup.el index 6c3bb397e9a..4e6f0af0368 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -2318,7 +2318,10 @@ A fancy display is used on graphic displays, normal otherwise." | |||
| 2318 | (get-buffer "*scratch*") | 2318 | (get-buffer "*scratch*") |
| 2319 | (with-current-buffer "*scratch*" | 2319 | (with-current-buffer "*scratch*" |
| 2320 | (when (zerop (buffer-size)) | 2320 | (when (zerop (buffer-size)) |
| 2321 | (insert initial-scratch-message) | 2321 | ;; Insert before markers to make sure that window-point |
| 2322 | ;; appears at end of buffer when *scratch* is displayed | ||
| 2323 | ;; (Bug#9605). | ||
| 2324 | (insert-before-markers initial-scratch-message) | ||
| 2322 | (set-buffer-modified-p nil)))) | 2325 | (set-buffer-modified-p nil)))) |
| 2323 | 2326 | ||
| 2324 | (if (or inhibit-startup-screen | 2327 | (if (or inhibit-startup-screen |