From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Re: looking-at function behaviour Date: Sun, 06 Jun 2010 18:42:19 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275842593 3463 80.91.229.12 (6 Jun 2010 16:43:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Jun 2010 16:43:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 06 18:43:11 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OLIwI-0000Az-RG for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jun 2010 18:43:11 +0200 Original-Received: from localhost ([127.0.0.1]:59849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLIwH-0003lC-Ul for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jun 2010 12:43:10 -0400 Original-Received: from [140.186.70.92] (port=59896 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLIve-0003jz-Lw for help-gnu-emacs@gnu.org; Sun, 06 Jun 2010 12:42:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLIvd-0005DJ-OZ for help-gnu-emacs@gnu.org; Sun, 06 Jun 2010 12:42:30 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:53813) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLIvd-0005D2-Iv for help-gnu-emacs@gnu.org; Sun, 06 Jun 2010 12:42:29 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OLIvb-0008A7-Tv for help-gnu-emacs@gnu.org; Sun, 06 Jun 2010 18:42:27 +0200 Original-Received: from p508a786c.dip.t-dialin.net ([80.138.120.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Jun 2010 18:42:27 +0200 Original-Received: from andrea.crotti.0 by p508a786c.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Jun 2010 18:42:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ connect(): No such file or directory Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p508a786c.dip.t-dialin.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin) Cancel-Lock: sha1:BaMprYm1R3dAL4S830fTMywohAk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73836 Archived-At: Lennart Borgman writes: > On Sun, Jun 6, 2010 at 4:59 PM, Andrea Crotti wrote: >> I don't understand how I should use the looking-at function, from what I >> see in the doc is not what I see happening. > > looking-at takes a regexp as argument. Is not that clear from the doc > (i.e. describe-function)? > > You probably want to use char-after instead here. Uhm no it looks like that char-after is not caring about the end of line... But maybe I should change my definition, since it's a string not a char --8<---------------cut here---------------start------------->8--- (defconst default-closing-char ";" "default closing char, change in newline-force-close-alist if needed") --8<---------------cut here---------------end--------------->8--- Or maybe I can just need something "string"->"regexp" corresponding, which is even better