[Top][All Lists]

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

Apparent problem with looking-at?

From: Peter Milliken
Subject: Apparent problem with looking-at?
Date: Tue, 18 Jun 2002 09:39:16 +1000

Hi, I have some elisp that has been unchanged for several major versions of
EMacs now - it nolonger works in version 21.2.1. 

I am currently running Emacs 21.2.1 built using cygwin tools on a NT
platform. The situation is that I (normally) comment out lines in code files
I am working on and then wish to remove the comments later on i.e.

/* <some text> */

Note that the comment start (.c file) is located at the beginning of line.
The elisp code snippet looks like this:

   (if (looking-at comment-start)

The (looking-at comment-start) returns nil. I don't believe it should return
nil and never has in previous versions of Emacs. If I alter the code snippet
to (looking-at "/*") then it works (note the absence of the space after the
'*'). Also, if I place a space character at the start of the line i.e.

 /* <some text> */

and run the original code (testing for comment-start with point at the BOL)
then the test returns t.


Peter Milliken
Software Engineer
Phone: +61 2 9886-5059

reply via email to

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