emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/smalltalk-mode d7f4421 28/34: emacs: Fix the smalltalk-


From: Stefan Monnier
Subject: [elpa] externals/smalltalk-mode d7f4421 28/34: emacs: Fix the smalltalk-mode mode for emacs 24.2 and later
Date: Tue, 9 Apr 2019 22:30:46 -0400 (EDT)

branch: externals/smalltalk-mode
commit d7f4421ecbd4b09aa3c2d24168c98808e8dcb3c3
Author: Jochen Schmitt <address@hidden>
Commit: Holger Hans Peter Freyther <address@hidden>

    emacs: Fix the smalltalk-mode mode for emacs 24.2 and later
    
    In emacs-24.2 The inhibit-first-line-modes-regexps variable was
    renamed to inhibit-local-variables-regexps.
    
    2013-06-14  Jochen Schmitt  <address@hidden>
    
        * smalltalk-mode-init.el.in: Use inhibit-local-variables-regexps
        if it is available.
---
 smalltalk-mode-init.el.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/smalltalk-mode-init.el.in b/smalltalk-mode-init.el.in
index 4c7c041..0fc6321 100644
--- a/smalltalk-mode-init.el.in
+++ b/smalltalk-mode-init.el.in
@@ -13,7 +13,9 @@
 
 (push '("\\.st\\'" . smalltalk-mode) auto-mode-alist)
 
-(push "\\.star\\'" inhibit-first-line-modes-regexps)
+(if (boundp 'inhibit-local-variables-regexps)
+    (push "\\.star\\'" inhibit-local-variables-regexps)
+    (push "\\.star\\'" inhibit-first-line-modes-regexp))
 
 (autoload 'smalltalk-mode "@lispdir@/smalltalk-mode.elc" "" t)
 @WITH_EMACS_COMINT_TRUE@(autoload 'gst "@lispdir@/gst-mode.elc" "" t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]