aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLute Kamstra2005-06-16 12:40:54 +0000
committerLute Kamstra2005-06-16 12:40:54 +0000
commit521677279bd0409b78ed77f35a1ec36ca57d62a6 (patch)
tree1e1da384f3a5c219cfe363241fda53d171abc128
parent04cedb114c12744d971900c528758d650526ed0a (diff)
downloademacs-521677279bd0409b78ed77f35a1ec36ca57d62a6.tar.gz
emacs-521677279bd0409b78ed77f35a1ec36ca57d62a6.zip
(fundamental-mode): Run after-change-major-mode-hook conditionally.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/simple.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 82ee1698d33..8b81afbe376 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-06-16 Lute Kamstra <lute@gnu.org>
2
3 * simple.el (fundamental-mode): Run after-change-major-mode-hook
4 conditionally.
5
12005-06-16 Juanma Barranquero <lekktu@gmail.com> 62005-06-16 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * tooltip.el (tooltip-start-delayed-tip, tooltip-timeout) 8 * tooltip.el (tooltip-start-delayed-tip, tooltip-timeout)
diff --git a/lisp/simple.el b/lisp/simple.el
index ba661e54a19..0ba6c424a4a 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -327,7 +327,8 @@ location."
327Other major modes are defined by comparison with this one." 327Other major modes are defined by comparison with this one."
328 (interactive) 328 (interactive)
329 (kill-all-local-variables) 329 (kill-all-local-variables)
330 (run-hooks 'after-change-major-mode-hook)) 330 (unless delay-mode-hooks
331 (run-hooks 'after-change-major-mode-hook)))
331 332
332;; Making and deleting lines. 333;; Making and deleting lines.
333 334
@@ -4842,7 +4843,7 @@ of the differing parts is, by contrast, slightly highlighted."
4842 (if (minibufferp mainbuf) 4843 (if (minibufferp mainbuf)
4843 (if (and (symbolp minibuffer-completion-table) 4844 (if (and (symbolp minibuffer-completion-table)
4844 (get minibuffer-completion-table 'completion-base-size-function)) 4845 (get minibuffer-completion-table 'completion-base-size-function))
4845 (setq completion-base-size 4846 (setq completion-base-size
4846 (funcall (get minibuffer-completion-table 'completion-base-size-function))) 4847 (funcall (get minibuffer-completion-table 'completion-base-size-function)))
4847 (setq completion-base-size 0)))) 4848 (setq completion-base-size 0))))
4848 ;; Put faces on first uncommon characters and common parts. 4849 ;; Put faces on first uncommon characters and common parts.