unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [cvs] bug in font-lock and/or shell-script-mode
@ 2002-11-09  7:51 Karl Chen
  0 siblings, 0 replies; only message in thread
From: Karl Chen @ 2002-11-09  7:51 UTC (permalink / raw)


This bug exists in emacs HEAD 2002-11-08 and has for at least about a
month, but does not exist in 21.2.

SYnposis:

   emacs -q

   C-x C-f script.sh

   echo a#\* \* \* \* \)

   M-x font-lock-fontify-buffer

   M-x font-lock-fontify-buffer


The first fontify works fine, but the second one emits an error "Point
after end of properties". If the file was not modified (saved) before,
this will also set the modified flag for no apparent reason.  In my setup
this causes very annoying behaviour with my global-font-lock, version
control and after-rvert hooks.


I don't know what exactly about that line with the backslashes screws up
emacs' parser. For example removing one of the "\*" or changing the "\)"
will get rid of the bug. The example line given is as much as I could
reduce from a 'find' command line. This bug happens not unoften.

Regardless of whether the line is correct shell syntax or not, emacs
should not prevent you from fontifying or saving it.


-- 
Karl Chen / quarl@quarl.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-09  7:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-09  7:51 [cvs] bug in font-lock and/or shell-script-mode Karl Chen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).