From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Swami Tota Ram Shankar Newsgroups: gmane.emacs.bugs Subject: Macro aborts even though regexp instance exists - Serious Bug Date: Mon, 22 Oct 2012 13:40:42 -0700 (PDT) Message-ID: <08df09b8-18cc-4d23-9f2e-b1187f4cfdec@g8g2000yqp.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1350938709 1828 80.91.229.3 (22 Oct 2012 20:45:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2012 20:45:09 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 22 22:45:17 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TQOs8-0007ap-HK for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Oct 2012 22:45:16 +0200 Original-Received: from localhost ([::1]:41707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQOs1-0004cM-2z for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Oct 2012 16:45:09 -0400 Original-Received: by 10.224.193.72 with SMTP id dt8mr6536721qab.7.1350938442660; Mon, 22 Oct 2012 13:40:42 -0700 (PDT) Original-Received: by 10.236.110.67 with SMTP id t43mr1020347yhg.6.1350938442607; Mon, 22 Oct 2012 13:40:42 -0700 (PDT) Original-Path: usenet.stanford.edu!x14no4580833qar.0!news-out.google.com!r17ni57592152qap.0!nntp.google.com!x14no4768039qar.0!postnews.google.com!g8g2000yqp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help, comp.emacs, gnu.emacs.bug, gnu.emacs.gnus, comp.unix.shell Complaints-To: groups-abuse@google.com Injection-Info: g8g2000yqp.googlegroups.com; posting-host=99.42.76.81; posting-account=dlefMQoAAABzowG6c0cULB8igkwPchCd Original-NNTP-Posting-Host: 99.42.76.81 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0,gzip(gfe) Injection-Date: Mon, 22 Oct 2012 20:40:42 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:195039 comp.emacs:102644 gnu.emacs.bug:92252 gnu.emacs.gnus:87011 comp.unix.shell:256047 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:65875 Archived-At: 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.