From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: What does (looking-at "\\>") mean? Date: Mon, 26 Jan 2009 08:00:10 +0100 Message-ID: <87fxj6r1qd.fsf@tux.homenetwork> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232995052 18133 80.91.229.12 (26 Jan 2009 18:37:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2009 18:37:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 26 19:38:45 2009 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.50) id 1LRWLa-0003tQ-Di for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jan 2009 19:38:18 +0100 Original-Received: from localhost ([127.0.0.1]:37530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRWKI-0001YX-BG for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jan 2009 13:36:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRVZ5-0005JM-6l for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 12:48:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRVZ3-0005IN-3r for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 12:48:02 -0500 Original-Received: from [199.232.76.173] (port=56597 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRVZ2-0005IA-T8 for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 12:48:00 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:52586) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRVLk-0007B0-1N for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 12:34:16 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRLYe-0002Xr-9v for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 02:06:56 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LRLYa-00058W-JZ for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 07:06:52 +0000 Original-Received: from 137.77.197-77.rev.gaoland.net ([77.197.77.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jan 2009 07:06:52 +0000 Original-Received: from thierry.volpiatto by 137.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 Jan 2009 07:06:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 137.77.197-77.rev.gaoland.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:p2jUwCpfDEPKitoylhLAKfZw65o= X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:61661 Archived-At: Wang Lei writes: > I searched in elisp-info, but forgot emacs-info. :( Now, I got it. > Thanks for your all! > > On 1/25/09, weber wrote: >> From the emacs info on regexps: >> >> `\>' >> matches the empty string, but only at the end of a word. `\>' >> matches at the end of the buffer only if the contents end with a >> word-constituent character. >> >> HTH >> Hugo >> >> Wang Lei wrote: >>> Hi, all. >>> >>> I copied a piece of code like this: >>> >>> (defun my-indent-or-complete () >>> (interactive) >>> (if (looking-at "\\>") >>> (hippie-expand nil) >>> (indent-for-tab-command))) >>> >>> But, I can't figure out what this "\\>" means. Could someone give me a >>> explanation ? With this little function, you can understand what looking at does: Write a word in scratch buffer and leave point at end of word, then do M-x test-looking-at Then put the point at the beginning of word and run again test-looking-at ,---- | (defun test-looking-at () | (interactive) | (if (looking-at "\\>") | (message "There is nothing after point") | (message "there is something after point"))) `---- -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France