From a038bd8769ec54ecf7d7241ccef8decc0dc712b5 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 24 Feb 2014 22:11:11 -0500 Subject: [PATCH] In doc/, use add-hook rather than setq for hooks * doc/lispintro/emacs-lisp-intro.texi (X11 Colors): * doc/misc/efaq-w32.texi (Bash): Don't use setq with hooks. --- doc/lispintro/ChangeLog | 4 ++++ doc/lispintro/emacs-lisp-intro.texi | 2 +- doc/misc/ChangeLog | 4 ++++ doc/misc/efaq-w32.texi | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog index 6646637c642..6ca9eb4c93f 100644 --- a/doc/lispintro/ChangeLog +++ b/doc/lispintro/ChangeLog @@ -1,3 +1,7 @@ +2014-02-25 Glenn Morris + + * emacs-lisp-intro.texi (X11 Colors): Don't use setq with hooks. + 2014-02-06 Glenn Morris * emacs-lisp-intro.texi (Recursive Patterns): diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index 74ea8e26e63..f181569ca75 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi @@ -17755,7 +17755,7 @@ file that set values: @group ;; Set calendar highlighting colors -(setq calendar-load-hook +(add-hook 'calendar-load-hook (lambda () (set-face-foreground 'diary-face "skyblue") (set-face-background 'holiday-face "slate blue") diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index af7716e358d..39ae01e86ec 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog @@ -1,3 +1,7 @@ +2014-02-25 Glenn Morris + + * efaq-w32.texi (Bash): Don't use setq with hooks. + 2014-02-24 Paul Eggert * texinfo.tex: Update from gnulib. diff --git a/doc/misc/efaq-w32.texi b/doc/misc/efaq-w32.texi index 17f1af61200..314aa8db36e 100644 --- a/doc/misc/efaq-w32.texi +++ b/doc/misc/efaq-w32.texi @@ -1464,7 +1464,7 @@ default shell in Emacs, you can place the following in your init file: (setq comint-eol-on-send t) (setq w32-quote-process-args ?\") -(setq shell-mode-hook 'my-shell-setup) +(add-hook 'shell-mode-hook 'my-shell-setup) @end example If you find that you are having trouble with Emacs tracking drive -- 2.39.2