diff options
author | Ulrich Müller <ulm@gentoo.org> | 2022-05-07 18:24:12 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2022-05-07 18:24:12 +0200 |
commit | 2d711eecb6712729fdbe5de00fa659446eb00874 (patch) | |
tree | 2a77fca10fb822e4e22dcd3b77bdc48183134c19 | |
parent | Use eval-when-compile for function definition (diff) | |
download | ebuild-mode-2d711eecb6712729fdbe5de00fa659446eb00874.tar.gz ebuild-mode-2d711eecb6712729fdbe5de00fa659446eb00874.tar.bz2 ebuild-mode-2d711eecb6712729fdbe5de00fa659446eb00874.zip |
Provide ebuild-mode-keywords as feature
* ebuild-mode-keywords.el (ebuild-mode-keywords): Provide feature.
* ebuild-mode.el (ebuild-mode-keywords): Require it.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ebuild-mode-keywords.el | 2 | ||||
-rw-r--r-- | ebuild-mode.el | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2022-05-07 Ulrich Müller <ulm@gentoo.org> + * ebuild-mode-keywords.el (ebuild-mode-keywords): Provide feature. + * ebuild-mode.el (ebuild-mode-keywords): Require it. + * ebuild-mode.el (ebuild-mode-collect-equal-cdrs): Evaluate with eval-when-compile instead of eval-and-compile. diff --git a/ebuild-mode-keywords.el b/ebuild-mode-keywords.el index 9e8f586..3dec47d 100644 --- a/ebuild-mode-keywords.el +++ b/ebuild-mode-keywords.el @@ -827,6 +827,8 @@ font-lock-type-face))) ;; @@KEYWORDS-END@@ +(provide 'ebuild-mode-keywords) + ;; Local Variables: ;; coding: utf-8 ;; fill-column: 78 diff --git a/ebuild-mode.el b/ebuild-mode.el index 6dc5d54..b4c3a39 100644 --- a/ebuild-mode.el +++ b/ebuild-mode.el @@ -252,7 +252,7 @@ Optional argument LIMIT restarts collection after that number of elements." (setcar e (append (car e) (car c))) (setq dst (cons (copy-sequence c) dst)))))) - (load "ebuild-mode-keywords" nil t)) + (require 'ebuild-mode-keywords)) (defvar ebuild-mode-font-lock-keywords (eval-when-compile |