GNU bug report logs - #6463
"prepend" font-locking not working when an sh-mode buffer is opened for the first time

Previous Next

Package: emacs;

Reported by: Ken Hori <fplemma <at> gmail.com>

Date: Sat, 19 Jun 2010 04:54:01 UTC

Severity: normal

Tags: moreinfo

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6463 in the body.
You can then email your comments to 6463 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6463; Package emacs. (Sat, 19 Jun 2010 04:54:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ken Hori <fplemma <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 19 Jun 2010 04:54:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ken Hori <fplemma <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: "prepend" font-locking not working when an sh-mode buffer is opened 
	for the first time
Date: Fri, 18 Jun 2010 21:53:41 -0700
"prepend" font-lock keyword entries for sh-mode don't render as they
are intended
when I open an sh-mode buffer for the first time.

If I close the buffer and open it again, everything works fine.

Example:
("##+ \\(.+\\)$" 1 some-face prepend)
won't render correctly.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6463; Package emacs. (Sat, 19 Jun 2010 06:12:02 GMT) Full text and rfc822 format available.

Message #8 received at 6463 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Ken Hori <fplemma <at> gmail.com>
Cc: 6463 <at> debbugs.gnu.org
Subject: Re: bug#6463: "prepend" font-locking not working when an sh-mode
	buffer is opened for the first time
Date: Sat, 19 Jun 2010 02:11:53 -0400
Ken Hori wrote:

> "prepend" font-lock keyword entries for sh-mode don't render as they
> are intended when I open an sh-mode buffer for the first time.
>
> If I close the buffer and open it again, everything works fine.
>
> Example:
> ("##+ \\(.+\\)$" 1 some-face prepend)
> won't render correctly.

Please provide a _complete_ example starting from emacs -Q, and state
what version of Emacs you are using.

The following works for me in 22.3, 23.1, 23.2, emacs-23 branch, and trunk:

cat 1.el:

(font-lock-add-keywords 'sh-mode
                        '(("##+ \\(.+\\)$" 1 'underline prepend)))

cat foo.sh:

# single
## double


emacs -Q -l ./1.el ./foo.sh 

"double" is underlined and red.





Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 29 Jun 2010 16:21:01 GMT) Full text and rfc822 format available.

Notification sent to Ken Hori <fplemma <at> gmail.com>:
bug acknowledged by developer. (Tue, 29 Jun 2010 16:21:02 GMT) Full text and rfc822 format available.

Message #13 received at 6463-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 6463-done <at> debbugs.gnu.org
Subject: Re: bug#6463: "prepend" font-locking not working when an sh-mode
	buffer is opened for the first time
Date: Tue, 29 Jun 2010 12:20:46 -0400
Since I cannot reproduce this and no further information has been
provided, I am closing this.

Please do respond if you have a recipe for reproducing it.

You can reply any time in the next 28 days (or indeed after that if
you follow the instructions about unarchiving bugs.)




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 28 Jul 2010 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.