all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bad coloring in shell script mode
@ 2003-06-05  0:02 Joe Corneli
  2003-06-16 20:26 ` Dan Jacobson
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Corneli @ 2003-06-05  0:02 UTC (permalink / 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.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-22 on raven, modified by Debian
configured using `configure  i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif'
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: nil

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

This line

    grep "<<$SF>>" $HOME/.todo/$TODOLIST > $HOME/p

causes everything after it to be in Sh Heredoc Face....
well, everything until a similar line is encountered
later on in the code, then normal fontlock behaviour begins
again.

Specifically, the line

   grep -v "<\*>" $HOME/.todo/$TODOLIST | grep "<<.*>>" - > $HOME/b

turns font lock back on.

The intervening line

   sed -e "s/^\($SF:\)\(.*<<\)\(.*\)\(>>\)$/\3/"`

doesn't have any effect.

Note that this behaviour is not present in XEmacs 21.5.

Recent input:
RET C-s r a t p o i C-s C-s C-s C-s C-s C-s C-s C-s 
ESC s C-x o C-s C-g ESC O B ESC O B C-s r e p o r t 
C-s C-s C-s C-s C-s ESC O D ESC x r e p o r t - e m 
a c s - b u g RET b a d SPC c o l o r i n g SPC i n 
C-x o C-x C-f C-g C-x C-f t o d o RET ESC x r e p TAB 
o TAB r TAB RET

Recent messages:
Loading rxvt (source)...done
Loading /home/jcorneli/.emacs.elc...done
ratpoison: command not found
isearch-abort: Quit
Mark saved where search started
Loading emacsbug...done
ratpoison: command not found
byte-code: Command attempted to use minibuffer while in minibuffer
keyboard-quit: Quit
Making completion list... [2 times]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bad coloring in shell script mode
  2003-06-05  0:02 bad coloring in shell script mode Joe Corneli
@ 2003-06-16 20:26 ` Dan Jacobson
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Jacobson @ 2003-06-16 20:26 UTC (permalink / raw)


Joe> This line
Joe>     grep "<<$SF>>" $HOME/.todo/$TODOLIST > $HOME/p
Joe> causes everything after it to be in Sh Heredoc Face....

For me, the first line ruins everything after it too, so I had to add
one space, spoiling my Spartan image.
test "x$1" = x--help && { cat<<\EOF; exit;}
test "x$1" = x--help && { cat<<\EOF ; exit;}
By the way, are we sure the 'here document' should be specially
colored?  Often I do su proxy <<\EndofEverything for 90% of a script.
OK, and if you're gonna same-color the whole script, then remember to
make the $vars and `backquote commands` otherly colored, unless one
has used <<\ and not <<.
By the way, two wrongs make a right, so I can turn the different
colors back on in that 90% with
false && { cat<<\EOF; exit;}
colors off here
EOF
su ${wwwoffle_user?} <<\EOeverything
colors back on here, good.
Indeed, one can even comment that su line and it still works.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-16 20:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-05  0:02 bad coloring in shell script mode Joe Corneli
2003-06-16 20:26 ` Dan Jacobson

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.