unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "spamfilteraccount@gmail.com" <spamfilteraccount@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Keyboard macro and regexp syntax search
Date: Thu, 20 Dec 2007 12:44:10 -0800 (PST)	[thread overview]
Message-ID: <8e0f9a74-6582-441f-b16a-0ae62af0e142@s12g2000prg.googlegroups.com> (raw)

Here's a key sequence which searches a whitespace character with a non-
whitespace character after it and moves right to terminate the search
there (just an example):

M-C-s	\s-\S- <right>


According to the macro editor it is recorded like this:

;; Keyboard Macro Editor.  Press C-c C-c to finish; press C-x k RET to
cancel.
;; Original keys: M-C-s \ s \ S <right>

Command: last-kbd-macro
Key: none

Macro:

M-C-s			;; isearch-forward-regexp
\			;; self-insert-command
s			;; self-insert-command
\			;; self-insert-command
S			;; self-insert-command
<right>			;; forward-char-nomark



The dash (-) character is missing after the syntax matcher (\s and
\S), so the macro doesn't work at playback. Is it a bug?

GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE

             reply	other threads:[~2007-12-20 20:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-20 20:44 spamfilteraccount [this message]
2007-12-20 21:20 ` Keyboard macro and regexp syntax search Tyler Smith
2007-12-20 21:40   ` spamfilteraccount
2007-12-20 21:45 ` Lennart Borgman (gmail)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e0f9a74-6582-441f-b16a-0ae62af0e142@s12g2000prg.googlegroups.com \
    --to=spamfilteraccount@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).