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 Date: Mon, 22 Oct 2012 13:39:00 -0700 (PDT) Message-ID: <78ea1d8e-420f-411c-a793-fd69eb049489@3g2000yqn.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 1350938412 31611 80.91.229.3 (22 Oct 2012 20:40:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2012 20:40:12 +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:40:20 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 1TQOnM-0004Wy-3u for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Oct 2012 22:40:20 +0200 Original-Received: from localhost ([::1]:40556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQOnE-0003kK-53 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Oct 2012 16:40:12 -0400 Original-Received: by 10.224.180.141 with SMTP id bu13mr2570853qab.2.1350938340637; Mon, 22 Oct 2012 13:39:00 -0700 (PDT) Original-Received: by 10.236.79.7 with SMTP id h7mr1003536yhe.2.1350938340608; Mon, 22 Oct 2012 13:39:00 -0700 (PDT) Original-Path: usenet.stanford.edu!x14no4766498qar.0!news-out.google.com!r17ni57592152qap.0!nntp.google.com!x14no4766488qar.0!postnews.google.com!3g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs,gnu.emacs.bug Complaints-To: groups-abuse@google.com Injection-Info: 3g2000yqn.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:39:00 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:195038 comp.emacs:102643 gnu.emacs.bug:92250 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:65873 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.