File: 05_emacsen.diff

package info (click to toggle)
gnu-smalltalk 3.2.5-1.3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 32,272 kB
  • sloc: ansic: 87,539; sh: 23,443; asm: 8,465; perl: 4,497; cpp: 3,548; xml: 1,671; awk: 1,582; yacc: 1,357; makefile: 1,220; lisp: 988; lex: 843; sed: 258; objc: 124
file content (31 lines) | stat: -rw-r--r-- 1,057 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/smalltalk-mode-init.el.in b/smalltalk-mode-init.el.in
index 4c7c041..88f16e1 100644
--- a/smalltalk-mode-init.el.in
+++ b/smalltalk-mode-init.el.in
@@ -1,5 +1,8 @@
 ;; Autoload file for smalltalk-mode
 
+(if (not (file-exists-p "/usr/share/emacs/site-lisp/gnu-smalltalk-el"))
+    (message "gnu-smalltalk-el removed but not purged, skipping setup")
+
 ;; duplicate zip files' setup for star files or fall back on
 ;; archive-mode, which scans file contents to determine type so is
 ;; safe to use
@@ -13,8 +16,14 @@
 
 (push '("\\.st\\'" . smalltalk-mode) auto-mode-alist)
 
-(push "\\.star\\'" inhibit-first-line-modes-regexps)
+(push "\\.star\\'" inhibit-local-variables-regexps)
 
-(autoload 'smalltalk-mode "@lispdir@/smalltalk-mode.elc" "" t)
-@WITH_EMACS_COMINT_TRUE@(autoload 'gst "@lispdir@/gst-mode.elc" "" t)
+(autoload 'smalltalk-mode "smalltalk-mode" "" t)
+(autoload 'gst-mode "gst-mode" "" t)
 
+(debian-pkg-add-load-path-item 
+	(concat "/usr/share/"
+		(symbol-name debian-emacs-flavor)
+		"/site-lisp/gnu-smalltalk-el")
+	)
+)