From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wang Lei Newsgroups: gmane.emacs.help Subject: Re: What does (looking-at "\\>") mean? Date: Tue, 27 Jan 2009 10:20:47 +0800 Message-ID: References: <87fxj6r1qd.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233022884 11181 80.91.229.12 (27 Jan 2009 02:21:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2009 02:21:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 03:22:38 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 1LRdb1-0000Xf-Km for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2009 03:22:35 +0100 Original-Received: from localhost ([127.0.0.1]:49787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRdZj-0003Pg-FO for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jan 2009 21:21:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRdZN-0003Pb-NC for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 21:20:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRdZK-0003PP-BZ for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 21:20:52 -0500 Original-Received: from [199.232.76.173] (port=37649 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRdZK-0003PM-4y for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 21:20:50 -0500 Original-Received: from rv-out-0708.google.com ([209.85.198.247]:18709) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LRdZJ-0004k6-T5 for help-gnu-emacs@gnu.org; Mon, 26 Jan 2009 21:20:50 -0500 Original-Received: by rv-out-0708.google.com with SMTP id k29so7270945rvb.6 for ; Mon, 26 Jan 2009 18:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=zT9RsCpRryLC9HGqG0IURB6JVmR5Ijyl9kLcBTVH03k=; b=NKSJdl95k/C0/v1zs6vxX1uU2K6LsDCMWFAe8adpLkiKUEJwTU1hDPTwOKz9EjDHph EvUmRJaEoN5k4a1jVzHEqDNubXO02/kW9kSTnUMTuAtFgBncIUa/hOnZtVtEAtNAXpC3 QziL6uLujyeKlr068v7V2+KwnycFXINNq/1zM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=tMlBsLzYkBitaI6Gx3izoKFo7eCBOyUKtoMtC9lluNJO8Eo7Vo5rT6tvanELVXHPfg l+hNBoVVxSi7MWSrVIoLZrNen9faBuKo8KoFbW0azNBzSlVU5djU+c1IWewawSRuI79t hY7uwkREuS1DmT9FHBNPLf47iufL7FZDt7RYQ= Original-Received: by 10.140.144.1 with SMTP id r1mr2520730rvd.0.1233022847394; Mon, 26 Jan 2009 18:20:47 -0800 (PST) In-Reply-To: <87fxj6r1qd.fsf@tux.homenetwork> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:61677 Archived-At: On 1/26/09, Thierry Volpiatto wrote: > > 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"))) > `---- Problem is solved.:) But, I'll remember this trick. Helpfull! Thanks! > > > > -- > A + Thierry Volpiatto > Location: Saint-Cyr-Sur-Mer - France > > > > -- Regards Lei