From: Glenn Morris Date: Tue, 25 Feb 2014 03:11:11 +0000 (-0500) Subject: In doc/, use add-hook rather than setq for hooks X-Git-Tag: emacs-24.3.90~357^2~7^2~25 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a038bd8769ec54ecf7d7241ccef8decc0dc712b5;p=emacs.git 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. --- 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