On Wed, May 29, 2013 at 11:21:49PM +0200, Paolo Bonzini wrote:

> We should check which is available and try the right one.

Ok, here a more enhanced version of the patch attached on this mail.

Best Regards:

Jochen Schmitt

diff -up smalltalk-3.2.5/smalltalk-mode-init.el.in.emx 
smalltalk-3.2.5/smalltalk-mode-init.el.in
--- smalltalk-3.2.5/smalltalk-mode-init.el.in.emx       2013-03-23 
20:56:26.000000000 +0100
+++ smalltalk-3.2.5/smalltalk-mode-init.el.in   2013-05-31 15:32:37.416661184 
+0200
@@ -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)

_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to