all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Keyboard Macros
@ 2007-01-14 21:18 Russell Adams
  2007-01-15  6:54 ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Russell Adams @ 2007-01-14 21:18 UTC (permalink / raw)
  To: emacs-orgmode

I've just noticed that I cannot use recorded keyboard macros in any
org file when it crosses a header or invokes an org function.

For instance, I hit C-x ( to start recording, and C-a, type "* TODO ",
C-n, C-a, C-x ). This should be recorded and allow me to turn a list
of items into TODO's using C-x e.

Instead, every time it throws an error.

Has anyone else seen this? I can get a copy of the error...

Thanks.

------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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

* Re: Keyboard Macros
  2007-01-14 21:18 Keyboard Macros Russell Adams
@ 2007-01-15  6:54 ` Bastien
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2007-01-15  6:54 UTC (permalink / raw)
  To: emacs-orgmode

Russell Adams <RLAdams@AdamsInfoServ.Com> writes:

> I've just noticed that I cannot use recorded keyboard macros in any
> org file when it crosses a header or invokes an org function.
>
> Has anyone else seen this? I can get a copy of the error...

I can't reproduce this here, neither by using kmacro-start-macro nor
kmacro-start-macro-or-insert-counter.  

I tried to add the "TODO" sequence manually or by completing "T", but
both were correctly replicated by calling C-x e.

Maybe you should be more explicit about the context ?

Regards,

-- 
Bastien

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

* Keyboard Macros
@ 2021-05-20 11:08 technically.eludible
  2021-05-20 13:31 ` Robert Pluim
  0 siblings, 1 reply; 4+ messages in thread
From: technically.eludible @ 2021-05-20 11:08 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Hello everyone,

I've been playing around with Keyboard Macros lately and ran into a
problem:

I tried to permanently save my macro into a file using M-x
insert-kbd-macro Enter <name> Enter

Doing this the macro that got inserted looked something like this:

(fset 'transpose-names

     (kmacro-lambda-form [?\C-a ?æ ?, ?ø ?\C-n] 0 "%d"  ))

It looked a little strange to me from the start, and trying to execute
it didn't exactly do what i wanted it to. In Essence it added the
characters "æ" and "ø" with a "," in between.


Here's what i wanted it to do:

I tried to set up a macro that transposes names in the form

First Name Last Name

to the form

Last Name, First Name


The keystrokes that i actually used were the following:

C-x (        Start recording

C-a          Move to start of line

M-f          Move forward a word

,              Insert ,

M-t          Transpose words

C-n          Move to next line

C-x )        Stop recording

(Maybe someone recognizes that example, it's taken from the book
"Learning GNU Emacs" published by O'Reilly)


I have absolutely no idea, why the macros doesn't get saved correctly.

Does anyone have any idea what went wrong there?






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

* Re: Keyboard Macros
  2021-05-20 11:08 technically.eludible
@ 2021-05-20 13:31 ` Robert Pluim
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Pluim @ 2021-05-20 13:31 UTC (permalink / raw)
  To: technically.eludible; +Cc: help-gnu-emacs@gnu.org

>>>>> On Thu, 20 May 2021 11:08:09 -0000, technically.eludible@aleeas.com said:

    technically> Hello everyone,
    technically> I've been playing around with Keyboard Macros lately and ran into a
    technically> problem:

    technically> I tried to permanently save my macro into a file using M-x
    technically> insert-kbd-macro Enter <name> Enter

    technically> Doing this the macro that got inserted looked something like this:

    technically> (fset 'transpose-names

    technically>     (kmacro-lambda-form [?\C-a ?æ ?, ?ø ?\C-n] 0 "%d"  ))

    technically> It looked a little strange to me from the start, and trying to execute
    technically> it didn't exactly do what i wanted it to. In Essence it added the
    technically> characters "æ" and "ø" with a "," in between.

Works fine for me here with emacs-27. Which version of emacs are you
using? Does it behave the same with 'emacs -Q'?

Robert
-- 



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

end of thread, other threads:[~2021-05-20 13:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-14 21:18 Keyboard Macros Russell Adams
2007-01-15  6:54 ` Bastien
  -- strict thread matches above, loose matches on Subject: below --
2021-05-20 11:08 technically.eludible
2021-05-20 13:31 ` Robert Pluim

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.