all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Macro aborts even though regexp instance exists - Serious Bug
@ 2012-10-22 20:40 Swami Tota Ram Shankar
  2012-10-24  3:54 ` Kevin Rodgers
       [not found] ` <mailman.11579.1351050855.855.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Swami Tota Ram Shankar @ 2012-10-22 20:40 UTC (permalink / raw)
  To: help-gnu-emacs

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.

I include more newsgroups because of the seriousness of this bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Macro aborts even though regexp instance exists - Serious Bug
@ 2012-10-22 20:40 Swami Tota Ram Shankar
  0 siblings, 0 replies; 8+ messages in thread
From: Swami Tota Ram Shankar @ 2012-10-22 20:40 UTC (permalink / raw)
  To: bug-gnu-emacs

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.

I include more newsgroups because of the seriousness of this bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-12-03 16:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22 20:40 Macro aborts even though regexp instance exists - Serious Bug Swami Tota Ram Shankar
2012-10-24  3:54 ` Kevin Rodgers
     [not found] ` <mailman.11579.1351050855.855.help-gnu-emacs@gnu.org>
2012-10-25  2:55   ` gnuist007
2012-11-30 21:57   ` David Combs
2012-11-30 22:55     ` Dan Espen
2012-12-03 14:33       ` Doug Lewan
     [not found]       ` <mailman.14392.1354545130.855.help-gnu-emacs@gnu.org>
2012-12-03 16:22         ` Dan Espen
  -- strict thread matches above, loose matches on Subject: below --
2012-10-22 20:40 Swami Tota Ram Shankar

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.