branch: externals/dash commit 9dfb01a593a7e3bfa089d42c7d6e04170f62b27a Author: Philippe Vaucher <philippe.vauc...@gmail.com> Commit: Philippe Vaucher <philippe.vauc...@gmail.com>
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. --- README.md | 2 +- dash-template.texi | 2 +- dash.el | 2 +- dash.info | 2 +- dash.texi | 2 +- readme-template.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2b69225..ad03d06 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ To get function combinators: Font lock of dash functions in emacs lisp buffers is now optional. 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 diff --git a/dash-template.texi b/dash-template.texi index fe6bcd4..fed63b7 100644 --- a/dash-template.texi +++ b/dash-template.texi @@ -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: @lisp -(eval-after-load "dash" '(dash-enable-font-lock)) +(eval-after-load 'dash '(dash-enable-font-lock)) @end lisp @node Functions diff --git a/dash.el b/dash.el index 4444a10..ce62b84 100644 --- a/dash.el +++ b/dash.el @@ -2353,7 +2353,7 @@ structure such as plist or alist." (defun dash-enable-font-lock () "Add syntax highlighting to dash functions, macros and magic values." - (eval-after-load "lisp-mode" + (eval-after-load 'lisp-mode '(progn (let ((new-keywords '( "-each" diff --git a/dash.info b/dash.info index f94cd19..6ab0667 100644 --- a/dash.info +++ b/dash.info @@ -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. 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 diff --git a/dash.texi b/dash.texi index 94d8ec9..78c8d44 100644 --- a/dash.texi +++ b/dash.texi @@ -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: @lisp -(eval-after-load "dash" '(dash-enable-font-lock)) +(eval-after-load 'dash '(dash-enable-font-lock)) @end lisp @node Functions diff --git a/readme-template.md b/readme-template.md index fec9979..337b3d9 100644 --- a/readme-template.md +++ b/readme-template.md @@ -37,7 +37,7 @@ To get function combinators: Font lock of dash functions in emacs lisp buffers is now optional. 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