From: "Göran Uddeborg" <uddeborg@carmen.se>
Subject: Shell script mode does not re-color the buffer when changing shell
Date: Fri, 12 Aug 2005 16:32:38 +0200 [thread overview]
Message-ID: <200508121432.j7CEWcTZ019424@brockville.carmen.se> (raw)
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.
In GNU Emacs 21.3.1 (x86_64-redhat-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2005-02-04 on thor.perf.redhat.com
configured using `configure --build=x86_64-redhat-linux --host=x86_64-redhat-linux --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-pop --with-sound'
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: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
If I have a buffer in shell script mode which already has syntax
coloring on, and I change the shell, the syntax coloring is still from
the original shell.
Repeat by:
1. Invoke emacs with font lock enabled by default (and an otherwise
minimal environment):
env -i SHELL=/bin/tcsh DISPLAY=$DISPLAY HOME=$HOME emacs -q -f global-font-lock-mode
2. Visit file "apa.sh":
C-x C-f apa.sh
This buffer is following the rules for tcsh. If I type "foreach"
on a line, it is colored as a keyword, but if I type "for" it is
just black. So far so good.
3. Change shell to bash (for example):
C-c : /bin/bash
The mode line changes to bash, and indentation rules adapt. But
colorisation is still according to tcsh. "foreach" is still
colored, and "for" is not. This is true both for the already
existing occurrences, and if I enter the words again.
I would expect coloring to change together with other aspects of the
mode.
Recent input:
C-x C-f a p a . s h <return> f o r e a c h <return>
f o r <return> C-c : / b i n / b a s h <return> f o
r e a c h <return> f o r <return> M-x r e p o r t -
<return>
Recent messages:
Loading sh-script...
Loading easy-mmode...done
Loading sh-script...done
No indentation for this shell type.
Magic number changed to `#! /bin/bash'
Setting up indent for shell type bash
setting up indent stuff
Indentation variable are now local.
Indentation setup for shell type bash
Loading emacsbug...done
reply other threads:[~2005-08-12 14:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200508121432.j7CEWcTZ019424@brockville.carmen.se \
--to=uddeborg@carmen.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.