From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Milliken Newsgroups: gmane.emacs.bugs Subject: Apparent problem with looking-at? Date: Tue, 18 Jun 2002 09:39:16 +1000 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <9E217BAD4019CE4095869023168429A9CCF918@vulture.corp.resmed.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: main.gmane.org 1024357329 15114 127.0.0.1 (17 Jun 2002 23:42:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Jun 2002 23:42:09 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17K68O-0003vf-00 for ; Tue, 18 Jun 2002 01:42:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17K68R-0001go-00; Mon, 17 Jun 2002 19:42:11 -0400 Original-Received: from www.resmed.com.au ([203.15.64.16] helo=waikato.corp.resmed.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17K65u-0001RP-00 for ; Mon, 17 Jun 2002 19:39:34 -0400 Original-Received: from mail pickup service by waikato.corp.resmed.org with Microsoft SMTPSVC; Tue, 18 Jun 2002 09:39:25 +1000 Original-Received: from falcon.corp.resmed.org ([172.16.2.141]) by waikato.corp.resmed.org with Microsoft SMTPSVC(5.0.2195.4453); Tue, 18 Jun 2002 09:39:22 +1000 Original-Received: by falcon.corp.resmed.org with Internet Mail Service (5.5.2654.89) id ; Tue, 18 Jun 2002 09:39:22 +1000 Original-To: "'bug-gnu-emacs@gnu.org'" X-Mailer: Internet Mail Service (5.5.2654.89) X-OriginalArrivalTime: 17 Jun 2002 23:39:22.0396 (UTC) FILETIME=[351F1DC0:01C21658] Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2104 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2104 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. /* */ 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. /* */ 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