From: Tyler Smith <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Keyboard macro and regexp syntax search
Date: 20 Dec 2007 21:20:16 GMT [thread overview]
Message-ID: <slrnfmln4h.hob.tyler.smith@blackbart.sedgenet> (raw)
In-Reply-To: 8e0f9a74-6582-441f-b16a-0ae62af0e142@s12g2000prg.googlegroups.com
On 2007-12-20, spamfilteraccount@gmail.com <spamfilteraccount@gmail.com> wrote:
> 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
It works as expected for me, running Emacs 22.1.1:
;; 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 * 2
\ ;; self-insert-command
S- ;; self-insert-command * 2
<right> ;; forward-char
Can you reproduce the problem when you launch Emacs with no init files
(i.e., emacs -Q)?
Tyler
next prev parent reply other threads:[~2007-12-20 21:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-20 20:44 Keyboard macro and regexp syntax search spamfilteraccount
2007-12-20 21:20 ` Tyler Smith [this message]
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=slrnfmln4h.hob.tyler.smith@blackbart.sedgenet \
--to=tyler.smith@mail.mcgill.ca \
--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).