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: RE: Apparent problem with looking-at? Date: Wed, 19 Jun 2002 15:17:58 +1000 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <9E217BAD4019CE4095869023168429A9CCF91B@vulture.corp.resmed.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1024464068 14699 127.0.0.1 (19 Jun 2002 05:21:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Jun 2002 05:21:08 +0000 (UTC) Cc: Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17KXu0-0003oy-00 for ; Wed, 19 Jun 2002 07:21: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 17KXu4-0003NK-00; Wed, 19 Jun 2002 01:21:12 -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 17KXrA-00035H-00 for ; Wed, 19 Jun 2002 01:18:12 -0400 Original-Received: from mail pickup service by waikato.corp.resmed.org with Microsoft SMTPSVC; Wed, 19 Jun 2002 15:18:06 +1000 x-gfisavedcharset: iso-8859-1 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Original-Received: from falcon.corp.resmed.org ([172.16.2.141]) by waikato.corp.resmed.org with Microsoft SMTPSVC(5.0.2195.4453); Wed, 19 Jun 2002 15:18:04 +1000 Original-Received: by falcon.corp.resmed.org with Internet Mail Service (5.5.2654.89) id ; Wed, 19 Jun 2002 15:18:04 +1000 Original-To: X-Mailer: Internet Mail Service (5.5.2654.89) X-OriginalArrivalTime: 19 Jun 2002 05:18:04.0304 (UTC) FILETIME=[B055F100:01C21750] 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:2136 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2136 Richard, I believe the problem was that when I originally coded this defun (some years ago now) I had an incomplete and faulty understanding of some of the elisp defuns I was using - in this case, it was looking-at :-). The code should have been (As Kim Storm kindly pointed out in gnu.emacs.bugs): (looking-at (regexp-quote comment-start)) using this works perfectly well (and was what I originally intended :-)). I suspect that the "bug" has existed in my code all of this time because I rarely code in C and thus the particular fact that a C comment-start is actually a regular expression meant that I never noticed the problem i.e. I normally use this code snippet with other languages and thus other comment-start definitions and was thusly (falsely) under the impression that this code had only failed with Emacs 21.2.1 - my apologies :-). Thankyou for your help, I fixed "my" problem :-) Regards, Peter -----Original Message----- From: Richard Stallman [mailto:rms@gnu.org] Sent: Wednesday, June 19, 2002 12:24 PM To: Peter Milliken Cc: bug-gnu-emacs@gnu.org Subject: Re: Apparent problem with looking-at? Would you please provide a complete self-contained test case so that we can reproduce the problem and debug it? 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. Note that "/*" is a regexp that matches zero or more slashes. Warning: Copyright ResMed. Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient. This communication is confidential and may contain legally privileged information. By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal privilege in,the content of the email and of any attachments. If the recipient of this message is not the intended addressee, please call ResMed immediately on (02) 9886 5000 Sydney, Australia.