From: Swami Tota Ram Shankar <tota_ram@india.com>
To: bug-gnu-emacs@gnu.org
Subject: Macro aborts even though regexp instance exists
Date: Mon, 22 Oct 2012 13:39:00 -0700 (PDT) [thread overview]
Message-ID: <78ea1d8e-420f-411c-a793-fd69eb049489@3g2000yqn.googlegroups.com> (raw)
Hi emacs users,
I write a simple macro which works, however, it fails in a particular
case.
C-s
M-r
to get into isearch-forward-regexp
and give a regexp like
ONE\|TWO
It works for every TWO and ONE as long as there is a ONE ahead of TWO.
In the last instance, no ONE exists after TWO and it fails.
\| <=> OR or disjunction.
Any solutions?
This is such a fundamental issue that I think its a bug. When the C-s
M-r is used outside the macro definition, the cursor gladly returns
to the original position when OR is entered and proceeds forward from
there, but perhaps, the macro aborts.
I guess, this can lead to a lot of confusion and time wastage, if the
user is unaware of this and most likely to neglect it because its
contrary to normal usage.
next reply other threads:[~2012-10-22 20:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-22 20:39 Swami Tota Ram Shankar [this message]
2012-10-24 15:23 ` Macro aborts even though regexp instance exists Stefan Monnier
2012-10-24 16:00 ` bug#12722: " Andreas Schwab
2012-10-24 16:17 ` Glenn Morris
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=78ea1d8e-420f-411c-a793-fd69eb049489@3g2000yqn.googlegroups.com \
--to=tota_ram@india.com \
--cc=bug-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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).