help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cannot run a special macro


From: Drew Adams
Subject: RE: cannot run a special macro
Date: Sun, 5 Oct 2008 09:57:56 -0700

        I have recorded a macro and saved it in my .emacs-file.
        But, unfortunately, if I run this macro, I get:
        "Symbol's function definition is void: kmacro-exec-ring-item"
        What is the meaning of this?
        
[Please use plain-text messages for this mailing list.] 

What happens when you do `C-h f kmacro-exec-ring-item RET'?

It should display something like this:

,----
| kmacro-exec-ring-item is an autoloaded Lisp function in `kmacro'.
| (kmacro-exec-ring-item item arg)
| 
| Execute item item from the macro ring.
`----

This function was added in Emacs 22, I believe. If you defined your macro with
Emacs 22 or 23, and then tried to execute it with Emacs 20 or 21, that might be
the problem. Dunno.

If not, then try, before executing the macro, `M-x load-library kmacro'. Does
that help? 

`kmacro-exec-ring-item' seems not to have been autoloaded by executing your
macro. It should be loaded automatically - it works for me. Which Emacs release
are you using, how did you define your macro, and so on? Do you get the same
result when you start with `emacs -q' (or `emacs -Q', if you have a recent Emacs
release)? If not, something in your init file (.emacs) is causing a problem.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]