At 10:05 AM 3/16/99 +1030, Dan Glastonbury wrote:
G'Day,
I'm having a problem with package management and Shell-script mode with
font-lock-mode.
Firstly to the Shell-script mode problem. If I load a shell script, say my
.bashrc file, and then try turning on font-locking, the following message
appears in the mini buffer:
No match 2 in highlight (2 font-lock-comment-face t)
This occurs if I start xemacs with xemacs, xemacs -vanilla, xemacs -q
-no-site-file.
Does this patch fix your problem?
andy
--- sh-script.el~ Wed Dec 09 21:35:49 1998
+++ sh-script.el Mon May 31 15:15:32 1999
@@ -857,7 +857,10 @@
(lambda (x) (eq (cdr x) 'sh-mode)))
(eq executable-query 'function)
t))
- (setq sh-shell (intern (file-name-nondirectory shell))
+ ;; XEmacs change: we need to strip the extension in case we
+ ;; are running under mswindows
+ (setq sh-shell (intern (file-name-sans-extension
+ (file-name-nondirectory shell)))
sh-shell (or (cdr (assq sh-shell sh-alias-alist))
sh-shell))
(setq sh-shell-file (executable-set-magic shell (sh-feature sh-shell-arg)))