]> git.eshelyaron.com Git - emacs.git/commitdiff
In doc/, use add-hook rather than setq for hooks
authorGlenn Morris <rgm@gnu.org>
Tue, 25 Feb 2014 03:11:11 +0000 (22:11 -0500)
committerGlenn Morris <rgm@gnu.org>
Tue, 25 Feb 2014 03:11:11 +0000 (22:11 -0500)
* doc/lispintro/emacs-lisp-intro.texi (X11 Colors):
* doc/misc/efaq-w32.texi (Bash): Don't use setq with hooks.

doc/lispintro/ChangeLog
doc/lispintro/emacs-lisp-intro.texi
doc/misc/ChangeLog
doc/misc/efaq-w32.texi

index 6646637c642ed88060d1f25d5a4e261d902acc32..6ca9eb4c93f147b6d8852914b4b490402823bd9d 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-25  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp-intro.texi (X11 Colors): Don't use setq with hooks.
+
 2014-02-06  Glenn Morris  <rgm@gnu.org>
 
        * emacs-lisp-intro.texi (Recursive Patterns):
index 74ea8e26e63467ca72fb424ff4dfd450a7a8fd4c..f181569ca75074aa39ac1db29bb728203db1acb7 100644 (file)
@@ -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")
index af7716e358de43b502af0af25daa1566f7689a8e..39ae01e86ecc80454898b36354010c1df955c68d 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-25  Glenn Morris  <rgm@gnu.org>
+
+       * efaq-w32.texi (Bash): Don't use setq with hooks.
+
 2014-02-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        * texinfo.tex: Update from gnulib.
index 17f1af61200683cc47f795abd7af8df99682ca9e..314aa8db36e1287cafd166d9e64f53946279d46a 100644 (file)
@@ -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