From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: vb Newsgroups: gmane.emacs.help Subject: Re: Regular expression search Date: Wed, 1 Nov 2006 15:08:41 -0800 Message-ID: <200611011508.41282.help-gnu-emacs@vsbe.com> References: <200611011310.59710.help-gnu-emacs@vsbe.com> <863b927qmq.fsf@rakim.cfhp.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162422554 8962 80.91.229.2 (1 Nov 2006 23:09:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2006 23:09:14 +0000 (UTC) Cc: Edward O'Connor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 02 00:09:13 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GfPCi-0001fh-MJ for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Nov 2006 00:09:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfPCi-0001ul-0D for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Nov 2006 18:09:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GfPCS-0001qw-HU for help-gnu-emacs@gnu.org; Wed, 01 Nov 2006 18:08:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GfPCP-0001o1-Q1 for help-gnu-emacs@gnu.org; Wed, 01 Nov 2006 18:08:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GfPCP-0001nm-J0 for help-gnu-emacs@gnu.org; Wed, 01 Nov 2006 18:08:45 -0500 Original-Received: from [217.160.230.41] (helo=mout.perfora.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GfPCP-00006D-95 for help-gnu-emacs@gnu.org; Wed, 01 Nov 2006 18:08:45 -0500 Original-Received: from [66.17.149.13] (helo=dhcp-10-64-129-2.riverstonenet.com) by mrelay.perfora.net (node=mrelayus1) with ESMTP (Nemesis), id 0MKp2t-1GfPCM1UXX-0003wu; Wed, 01 Nov 2006 18:08:44 -0500 Original-To: help-gnu-emacs@gnu.org User-Agent: KMail/1.9.1 In-Reply-To: <863b927qmq.fsf@rakim.cfhp.org> Content-Disposition: inline X-Provags-ID: perfora.net abuse@perfora.net login:105503e63a43ed9a8b379992658ba53b 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:38476 Archived-At: On Wednesday 01 November 2006 14:23, Edward O'Connor wrote: > > (defun vb-first-printable () > > (interactive) > > (beginning-of-line) > > ( if (re-search-forward "\\S-" (line-end-position) 't) > > (backward-char) > > ) > > ) > > I wonder if you know about M-m? > This is a good question - no, I didn't! I suspected there was a command for that but did not find it in a brief search. But it was educational to figure out the emacs regexp search idiosyncrasy anyways :-) cheers, /vb > ,----[ C-h k M-m ] > > | M-m runs the command back-to-indentation > | which is an interactive compiled Lisp function in `simple'. > | (back-to-indentation) > | > | Move point to the first non-whitespace character on this line. > > `----