From: Peter Milliken <PeterM@resmed.com.au>
Subject: Apparent problem with looking-at?
Date: Tue, 18 Jun 2002 09:39:16 +1000 [thread overview]
Message-ID: <9E217BAD4019CE4095869023168429A9CCF918@vulture.corp.resmed.org> (raw)
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:
(beginning-of-line)
(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.
Thanks
Peter
Peter Milliken
Software Engineer
ResMed
Phone: +61 2 9886-5059
next reply other threads:[~2002-06-17 23:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-17 23:39 Peter Milliken [this message]
2002-06-18 9:42 ` Apparent problem with looking-at? Kim F. Storm
2002-06-19 2:24 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2002-06-19 5:17 Peter Milliken
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9E217BAD4019CE4095869023168429A9CCF918@vulture.corp.resmed.org \
--to=peterm@resmed.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).