[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sh-mode-syntax-table is no longer a syntax table
From: |
Klaus Zeitler |
Subject: |
sh-mode-syntax-table is no longer a syntax table |
Date: |
Fri, 19 Sep 2003 16:04:08 +0200 (MEST) |
Symptoms:
when I try to modify entries in sh-script modes syntax table, with e.g.
(modify-syntax-entry 36 "." sh-mode-syntax-table), I get the following error:
"wrong-type-argument syntax-table-p".
I suggest a change allong the lines:
(defvar sh-mode-syntax-table nil
"Syntax-table used in Shell-Script mode.")
(defvar sh-mode-syntax-table-input
'((sh eval sh-mode-syntax-table ()
?\# "<"
?\n ">#"
?\" "\"\""
?\' "\"'"
?\` "\"`"
?! "_"
?% "_"
?: "_"
?. "_"
?^ "_"
?~ "_"
?, "_"
?< "."
?> ".")
(csh eval identity sh)
(rc eval identity sh))
"Used to generate the syntax table in `sh-feature'.")
and in sh-set-shell
(setq sh-mode-syntax-table (or (sh-feature sh-mode-syntax-table-input)
(standard-syntax-table)))
(set-syntax-table sh-mode-syntax-table)
instead of:
(set-syntax-table (or (sh-feature sh-mode-syntax-table)
(standard-syntax-table)))
In GNU Emacs 21.3.50.7 (sparc-sun-solaris2.8, Motif Version 2.1.0)
of 2003-09-10 on sfsws4
configured using `configure '--with-gcc'
'--prefix=/vol/freeware/SunOS-5.8/emacs/cvs'
'--sharedstatedir=/vol/freeware/SunOS-5.8/emacs/cvs/share'
'--with-x-toolkit=motif'
'--x-includes=/usr/openwin/include:/usr/local/gnu/include'
'--x-libraries=/usr/openwin/lib:/usr/local/gnu/lib' '--with-pop' 'CC=gcc''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: C
locale-coding-system: nil
default-enable-multibyte-characters: t
Recent input:
<down-mouse-1> <mouse-1> C-x C-f C-a C-k ~ / t s t
C-g <escape> x l o a d - l i b SPC <return> <help-echo>
<down-mouse-2> <mouse-2> <return> C-x C-f C-a C-k ~
/ t s t / x . s h <return> <help-echo> <help-echo>
M-: <help-echo> <down-mouse-2> <mouse-2> <return> <help-echo>
q <help-echo> <help-echo> <menu-bar> <help-menu> <
report-emacs-bug>
Recent messages:
Setting up indent for shell type bash
Loading regexp-opt...done
setting up indent stuff
Indentation variable are now local.
Indentation setup for shell type bash
Loading debug...done
Entering debugger...
Loading help-mode...done
Back to top level.
Loading emacsbug...done
- sh-mode-syntax-table is no longer a syntax table,
Klaus Zeitler <=