emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Keyboard macro and org-mode
@ 2014-05-05  4:47 Alan Tyree
  2014-05-05  7:29 ` Suvayu Ali
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Tyree @ 2014-05-05  4:47 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

I was trying to build a keyboard macro to remove targets of the form

<<sec:some_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?

Thanks,
Alan

emacs version: 24.3.1 on Ubuntu 14.04

org version: 8.2.6

-- 
Alan L Tyree
http://austlii.edu.au/~alan<http://www2.austlii.edu.au/~alan>
Tel:  04 2748 6206            sip:typhoon@iptel.org

[-- Attachment #2: Type: text/html, Size: 900 bytes --]

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

* Re: Keyboard macro and org-mode
  2014-05-05  4:47 Keyboard macro and org-mode Alan Tyree
@ 2014-05-05  7:29 ` Suvayu Ali
       [not found]   ` <CAGMsgMw=H24-eyfNtE2Get2bc1H1rH8_wDqqk9o_WDWaTFqZ4g@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Suvayu Ali @ 2014-05-05  7:29 UTC (permalink / raw)
  To: emacs-orgmode

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
> 
> <<sec:some_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?

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.

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

* Re: Keyboard macro and org-mode
       [not found]   ` <CAGMsgMw=H24-eyfNtE2Get2bc1H1rH8_wDqqk9o_WDWaTFqZ4g@mail.gmail.com>
@ 2014-05-05 22:14     ` Suvayu Ali
  0 siblings, 0 replies; 3+ messages in thread
From: Suvayu Ali @ 2014-05-05 22:14 UTC (permalink / raw)
  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 "<<ssec:"  (this is where emacs hangs when defining the macro)
> 
> 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.

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

end of thread, other threads:[~2014-05-05 22:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-05  4:47 Keyboard macro and org-mode Alan Tyree
2014-05-05  7:29 ` Suvayu Ali
     [not found]   ` <CAGMsgMw=H24-eyfNtE2Get2bc1H1rH8_wDqqk9o_WDWaTFqZ4g@mail.gmail.com>
2014-05-05 22:14     ` Suvayu Ali

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).