Correct use of eval-after-load

With a symbol, only the file providing the feature triggers the
eval-after-load. With a string, any file named the same way triggers
it. This is problematic for custom configurations named after
packages.
master
Philippe Vaucher 9 years ago
parent ff323e0fda
commit 9dfb01a593
  1. 2
      README.md
  2. 2
      dash-template.texi
  3. 2
      dash.el
  4. 2
      dash.info
  5. 2
      dash.texi
  6. 2
      readme-template.md

@ -37,7 +37,7 @@ To get function combinators:
Font lock of dash functions in emacs lisp buffers is now optional. Font lock of dash functions in emacs lisp buffers is now optional.
Include this in your emacs settings to get syntax highlighting: Include this in your emacs settings to get syntax highlighting:
(eval-after-load "dash" '(dash-enable-font-lock)) (eval-after-load 'dash '(dash-enable-font-lock))
## Functions ## Functions

@ -125,7 +125,7 @@ Font lock of dash functions in emacs lisp buffers is now optional.
Include this in your emacs settings to get syntax highlighting: Include this in your emacs settings to get syntax highlighting:
@lisp @lisp
(eval-after-load "dash" '(dash-enable-font-lock)) (eval-after-load 'dash '(dash-enable-font-lock))
@end lisp @end lisp
@node Functions @node Functions

@ -2353,7 +2353,7 @@ structure such as plist or alist."
(defun dash-enable-font-lock () (defun dash-enable-font-lock ()
"Add syntax highlighting to dash functions, macros and magic values." "Add syntax highlighting to dash functions, macros and magic values."
(eval-after-load "lisp-mode" (eval-after-load 'lisp-mode
'(progn '(progn
(let ((new-keywords '( (let ((new-keywords '(
"-each" "-each"

@ -131,7 +131,7 @@ File: dash.info, Node: Syntax highlighting of dash functions, Prev: Using in a
Font lock of dash functions in emacs lisp buffers is now optional. Font lock of dash functions in emacs lisp buffers is now optional.
Include this in your emacs settings to get syntax highlighting: Include this in your emacs settings to get syntax highlighting:
(eval-after-load "dash" '(dash-enable-font-lock)) (eval-after-load 'dash '(dash-enable-font-lock))
 
File: dash.info, Node: Functions, Next: Development, Prev: Installation, Up: Top File: dash.info, Node: Functions, Next: Development, Prev: Installation, Up: Top

@ -140,7 +140,7 @@ Font lock of dash functions in emacs lisp buffers is now optional.
Include this in your emacs settings to get syntax highlighting: Include this in your emacs settings to get syntax highlighting:
@lisp @lisp
(eval-after-load "dash" '(dash-enable-font-lock)) (eval-after-load 'dash '(dash-enable-font-lock))
@end lisp @end lisp
@node Functions @node Functions

@ -37,7 +37,7 @@ To get function combinators:
Font lock of dash functions in emacs lisp buffers is now optional. Font lock of dash functions in emacs lisp buffers is now optional.
Include this in your emacs settings to get syntax highlighting: Include this in your emacs settings to get syntax highlighting:
(eval-after-load "dash" '(dash-enable-font-lock)) (eval-after-load 'dash '(dash-enable-font-lock))
## Functions ## Functions

Loading…
Cancel
Save