From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Tyree Subject: Keyboard macro and org-mode Date: Mon, 5 May 2014 14:47:23 +1000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01182e3ece1d6c04f89fd32d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhAoI-0002DF-1k for emacs-orgmode@gnu.org; Mon, 05 May 2014 00:47:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhAoG-0001KK-V6 for emacs-orgmode@gnu.org; Mon, 05 May 2014 00:47:25 -0400 Received: from mail-ie0-x22f.google.com ([2607:f8b0:4001:c03::22f]:32994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhAoG-0001JD-PA for emacs-orgmode@gnu.org; Mon, 05 May 2014 00:47:24 -0400 Received: by mail-ie0-f175.google.com with SMTP id rl12so7314168iec.6 for ; Sun, 04 May 2014 21:47:23 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --089e01182e3ece1d6c04f89fd32d Content-Type: text/plain; charset=UTF-8 I was trying to build a keyboard macro to remove targets of the form <> When in org-mode, emacs hangs after C-s <. If I turn off org mode and use a simple text mode, the keyboard macro works ok. Is this a bug or am I doing something pretty dumb? Thanks, Alan emacs version: 24.3.1 on Ubuntu 14.04 org version: 8.2.6 -- Alan L Tyree http://austlii.edu.au/~alan Tel: 04 2748 6206 sip:typhoon@iptel.org --089e01182e3ece1d6c04f89fd32d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I was trying to build a= keyboard macro to remove targets of the form

<<sec:som= e_title>>

When in org-mode, emacs hangs after C-s <. = If I turn off org mode and use a simple text mode, the keyboard macro works= ok.

Is this a bug or am I doing something pretty dumb?

T= hanks,
Alan

emacs version: 24.3.1 on Ubuntu 14.04
=
org version: 8.2.6

--
Alan L Tyree=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://austlii.edu.au/~alan
Tel:= =C2=A0 04 2748 6206=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 s= ip:typhoon@iptel.org
--089e01182e3ece1d6c04f89fd32d-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Keyboard macro and org-mode Date: Mon, 5 May 2014 09:29:51 +0200 Message-ID: <20140505072951.GD7640@chitra.no-ip.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhDLh-000750-Hr for emacs-orgmode@gnu.org; Mon, 05 May 2014 03:30:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhDLY-0007Kc-Ip for emacs-orgmode@gnu.org; Mon, 05 May 2014 03:30:05 -0400 Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:62523) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhDLY-0007KR-BE for emacs-orgmode@gnu.org; Mon, 05 May 2014 03:29:56 -0400 Received: by mail-ee0-f41.google.com with SMTP id t10so1408696eei.0 for ; Mon, 05 May 2014 00:29:55 -0700 (PDT) Received: from chitra.no-ip.org (sd44012d5.adsl.online.nl. [212.64.18.213]) by mx.google.com with ESMTPSA id 44sm27219437eek.30.2014.05.05.00.29.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 May 2014 00:29:53 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Mon, May 05, 2014 at 02:47:23PM +1000, Alan Tyree wrote: > I was trying to build a keyboard macro to remove targets of the form > > <> > > When in org-mode, emacs hangs after C-s <. If I turn off org mode and use a > simple text mode, the keyboard macro works ok. > > Is this a bug or am I doing something pretty dumb? Would help if you shared the macro. Some ideas for troubleshooting: 1. you can inspect and re-edit the macro by calling `edit-last-kbd-macro', 2. you can name the last macro with `name-last-kbd-macro', you can then get the lisp source and save it in .emacs with `insert-kbd-macro' (see: (info "(emacs) Save Keyboard Macro")). Hope this helps, -- Suvayu Open source is the future. It sets us free. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Keyboard macro and org-mode Date: Tue, 6 May 2014 00:14:11 +0200 Message-ID: <20140505221411.GA2284@chitra.no-ip.org> References: <20140505072951.GD7640@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhR9V-00038L-8i for emacs-orgmode@gnu.org; Mon, 05 May 2014 18:14:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhR9M-0002cQ-7w for emacs-orgmode@gnu.org; Mon, 05 May 2014 18:14:25 -0400 Received: from mail-ee0-x231.google.com ([2a00:1450:4013:c00::231]:41115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhR9M-0002bP-1r for emacs-orgmode@gnu.org; Mon, 05 May 2014 18:14:16 -0400 Received: by mail-ee0-f49.google.com with SMTP id e53so5824146eek.8 for ; Mon, 05 May 2014 15:14:14 -0700 (PDT) Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Alan Tyree Cc: Emacs Org mode Hi Alan, You forgot to cc the list! On Tue, May 06, 2014 at 05:19:05AM +1000, Alan Tyree wrote: > Can't do it since I could never get past the first step of the macro. It > was intended to be a dead simple throw away: > > Search for "< > Go to beginning of line > > Delete line. > > (All of the <<>> targets are on a single line). > > Emacs hangs like it is searching, the little circle thingie just keeps > going. I can kill the process with multiple punches of C-g. > Do you have lots of minor-modes enabled? Maybe one of them is interfering. Is your file very big? Can you replicate with an ECM? Does it have source blocks? Have you tried turning off font-lock-mode; does it succeed then? Just some questions that I could think of. Maybe the answer is lurking here. > As I said, no problem in a normal text-mode file. Another nice test would be to record and save the keyboard macro from text-mode and try executing it from org-mode. Hope this helps, -- Suvayu Open source is the future. It sets us free.