branch: elpa/geiser-kawa commit 6cb682695f779ec050de6098f8dce715a1761aab Author: spellcard199 <spellcard...@protonmail.com> Commit: spellcard199 <spellcard...@protonmail.com>
melpa/melpa#6858 - Change regex in geiser-impl--add-to-alist to respect convention --- elisp/geiser-kawa.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/elisp/geiser-kawa.el b/elisp/geiser-kawa.el index c27b4ad..b7ff480 100644 --- a/elisp/geiser-kawa.el +++ b/elisp/geiser-kawa.el @@ -136,8 +136,13 @@ Argument MSG is passed by Geiser." (case-sensitive nil) (external-help geiser-kawa-manual--look-up)) -(geiser-impl--add-to-alist 'regexp "\\.scm$" 'kawa t) -(geiser-impl--add-to-alist 'regexp "\\.sld$" 'kawa t) +;; > usually when you add to auto-mode-alists the regular expression +;; > should resemble, e.g., \\.scm\\' rather than \\.scm$ by +;; > convention. +;; Source: +;; https://github.com/melpa/melpa/pull/6858#issuecomment-621596527 +(geiser-impl--add-to-alist 'regexp "\\.scm\\'" 'kawa t) +(geiser-impl--add-to-alist 'regexp "\\.sld\\'" 'kawa t) ;; Check for kawa-geiser jar each time `run-kawa' is called.