[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regular expression search
From: |
vb |
Subject: |
Re: Regular expression search |
Date: |
Wed, 1 Nov 2006 15:08:41 -0800 |
User-agent: |
KMail/1.9.1 |
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.
>
> `----