aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov2005-04-07 15:16:39 +0000
committerJuri Linkov2005-04-07 15:16:39 +0000
commit34d86208a3f9039d8cfa75922ed8f66d18247a29 (patch)
treef84be74bcc8db9794eaa9c4d5b91d252042e5330 /lisp
parent6a1cdc5bee322596240622770180e642ac28a34f (diff)
downloademacs-34d86208a3f9039d8cfa75922ed8f66d18247a29.tar.gz
emacs-34d86208a3f9039d8cfa75922ed8f66d18247a29.zip
(Info-mode): Add `Info-kill-buffer' to `kill-buffer-hook'
locally instead of adding it to the global hook. (Info-kill-buffer): Move up.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/info.el18
2 files changed, 26 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d9433c4f496..4fabd9cf65c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
12005-04-07 Juri Linkov <juri@jurta.org>
2
3 * simple.el (next-error-overlay-arrow-position): New defvar.
4 Put "=>" on its property `overlay-arrow-string'. Add it to
5 `overlay-arrow-variable-list'.
6
7 * progmodes/compile.el (compilation-setup):
8 Set `next-error-overlay-arrow-position' to nil. Also set it to
9 nil in the local hook `kill-buffer-hook'. Make local variable
10 `overlay-arrow-string' and set it to "=>".
11 (compilation-goto-locus): Set BOL position to
12 `next-error-overlay-arrow-position' instead of
13 `overlay-arrow-position'.
14
15 * info.el (Info-mode): Add `Info-kill-buffer' to `kill-buffer-hook'
16 locally instead of adding it to the global hook.
17 (Info-kill-buffer): Move up.
18
12005-04-06 Dan Nicolaescu <dann@ics.uci.edu> 192005-04-06 Dan Nicolaescu <dann@ics.uci.edu>
2 20
3 * term/xterm.el (xterm-standard-colors): Update color values from 21 * term/xterm.el (xterm-standard-colors): Update color values from
diff --git a/lisp/info.el b/lisp/info.el
index cefe603a400..e44de75072e 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -3240,6 +3240,7 @@ Advanced commands:
3240 (setq line-move-ignore-invisible t) 3240 (setq line-move-ignore-invisible t)
3241 (make-local-variable 'desktop-save-buffer) 3241 (make-local-variable 'desktop-save-buffer)
3242 (setq desktop-save-buffer 'Info-desktop-buffer-misc-data) 3242 (setq desktop-save-buffer 'Info-desktop-buffer-misc-data)
3243 (add-hook 'kill-buffer-hook 'Info-kill-buffer nil t)
3243 (add-hook 'clone-buffer-hook 'Info-clone-buffer-hook nil t) 3244 (add-hook 'clone-buffer-hook 'Info-clone-buffer-hook nil t)
3244 (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) 3245 (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)
3245 (add-hook 'isearch-mode-hook 'Info-isearch-start nil t) 3246 (add-hook 'isearch-mode-hook 'Info-isearch-start nil t)
@@ -3254,6 +3255,13 @@ Advanced commands:
3254 (Info-set-mode-line) 3255 (Info-set-mode-line)
3255 (run-hooks 'Info-mode-hook)) 3256 (run-hooks 'Info-mode-hook))
3256 3257
3258;; When an Info buffer is killed, make sure the associated tags buffer
3259;; is killed too.
3260(defun Info-kill-buffer ()
3261 (and (eq major-mode 'Info-mode)
3262 Info-tag-table-buffer
3263 (kill-buffer Info-tag-table-buffer)))
3264
3257(defun Info-clone-buffer-hook () 3265(defun Info-clone-buffer-hook ()
3258 (when (bufferp Info-tag-table-buffer) 3266 (when (bufferp Info-tag-table-buffer)
3259 (setq Info-tag-table-buffer 3267 (setq Info-tag-table-buffer
@@ -3887,16 +3895,6 @@ Preserve text properties."
3887 3895
3888 (set-buffer-modified-p nil)))) 3896 (set-buffer-modified-p nil))))
3889 3897
3890
3891;; When an Info buffer is killed, make sure the associated tags buffer
3892;; is killed too.
3893(defun Info-kill-buffer ()
3894 (and (eq major-mode 'Info-mode)
3895 Info-tag-table-buffer
3896 (kill-buffer Info-tag-table-buffer)))
3897
3898(add-hook 'kill-buffer-hook 'Info-kill-buffer)
3899
3900;;; Speedbar support: 3898;;; Speedbar support:
3901;; These functions permit speedbar to display the "tags" in the 3899;; These functions permit speedbar to display the "tags" in the
3902;; current info node. 3900;; current info node.