emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font-lock-comment-delimiter-face


From: Ralf Angeli
Subject: Re: font-lock-comment-delimiter-face
Date: Mon, 16 May 2005 10:16:36 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

* Richard Stallman (2005-05-16) writes:

>     As your fix does not concern regular expression matching, does this
>     mean it is correct for `(looking-at comment-start-skip)' in Lisp mode
>     to return different values in case of single and multiple semicolons?
>
> I don't understand that question.

Okay, here are two examples:

(with-temp-buffer
  (insert " ;")
  (backward-char)
  (looking-at "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *"))

(with-temp-buffer
  (insert " ;;")
  (backward-char 2)
  (looking-at "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *"))

Shouldn't both examples return the same value?  It looks like a bug to
me that the first example returns nil and the second t.

-- 
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]