aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-04-10 14:48:42 +0000
committerGerd Moellmann2001-04-10 14:48:42 +0000
commitc8d6d636a89caa3646d4ca55e9910c4c31f52806 (patch)
tree00c1a1191fec2088fbba9df33be3363b17d6e161
parent2a52f40ea4f51cb6a8589d9662c2ff2ea4b80bdd (diff)
downloademacs-c8d6d636a89caa3646d4ca55e9910c4c31f52806.tar.gz
emacs-c8d6d636a89caa3646d4ca55e9910c4c31f52806.zip
(completion-list-mode-finish): New function.
(toplevel): Add completion-list-mode-finish to temp-buffer-show-hook.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el8
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index abe4be937b2..c41630731d4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12001-04-10 Gerd Moellmann <gerd@gnu.org> 12001-04-10 Gerd Moellmann <gerd@gnu.org>
2 2
3 * simple.el (completion-list-mode-finish): New function.
4 (toplevel): Add completion-list-mode-finish to
5 temp-buffer-show-hook.
6
3 * language/european.el ("Polish"): Change sample text. 7 * language/european.el ("Polish"): Change sample text.
4 From: jsbien@mimuw.edu.pl (Janusz S. Bie,Bq(B). 8 From: jsbien@mimuw.edu.pl (Janusz S. Bie,Bq(B).
5 9
diff --git a/lisp/simple.el b/lisp/simple.el
index 9d2d78a8f44..367bc2465fe 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3720,6 +3720,14 @@ Use \\<completion-list-mode-map>\\[mouse-choose-completion] to select one\
3720 (setq completion-base-size nil) 3720 (setq completion-base-size nil)
3721 (run-hooks 'completion-list-mode-hook)) 3721 (run-hooks 'completion-list-mode-hook))
3722 3722
3723(defun completion-list-mode-finish ()
3724 "Finish setup of the completions buffer.
3725Called from `temp-buffer-show-hook'."
3726 (when (eq major-mode 'completion-list-mode)
3727 (toggle-read-only 1)))
3728
3729(add-hook 'temp-buffer-show-hook 'completion-list-mode-finish)
3730
3723(defvar completion-setup-hook nil 3731(defvar completion-setup-hook nil
3724 "Normal hook run at the end of setting up a completion list buffer. 3732 "Normal hook run at the end of setting up a completion list buffer.
3725When this hook is run, the current buffer is the one in which the 3733When this hook is run, the current buffer is the one in which the