* 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


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to