* Can't execute the keymacro in batch mode
@ 2006-05-02 19:27 Lee, Jinhyuk
2006-05-03 15:32 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Lee, Jinhyuk @ 2006-05-02 19:27 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
Dear,
I am using EMACS 21.3.1 in redhat machine.
In older version, 20.3.8.1, I could execute my keymacro in batch mode by call my function as following.
emacs -batch test.txt -l mykeymacro.el -f myfunction -f save-buffer
But, In new version , It doesn't support this. Emacs wait with the prompt , "M-x" when I run this.
Thx in advance
--
Jinhyuk Lee
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can't execute the keymacro in batch mode
2006-05-02 19:27 Can't execute the keymacro in batch mode Lee, Jinhyuk
@ 2006-05-03 15:32 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-05-03 15:32 UTC (permalink / raw)
Lee, Jinhyuk wrote:
> I am using EMACS 21.3.1 in redhat machine.
>
> In older version, 20.3.8.1, I could execute my keymacro in batch mode by call my function as following.
>
> emacs -batch test.txt -l mykeymacro.el -f myfunction -f save-buffer
>
> But, In new version , It doesn't support this. Emacs wait with the prompt , "M-x" when I run this.
Are you sure you're not using Emacs 22, from CVS? The etc/NEWS file says:
* Startup Changes in Emacs 22.1
...
** The -f option, used from the command line to call a function,
now reads arguments for the function interactively if it is
an interactively callable function.
But that feature seems to interact badly with -batch. Here's what I
put in in mykeymacro.el:
(fset 'myfunction (kbd "C-x C-f foo.bar RET"))
Invoking Emacs as you did causes it to hang with the "Find file: "
prompt; and if I redirect standard input from /dev/null it reports
"After 0 kbd macro iterations: Error reading from stdin"
--
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-03 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-02 19:27 Can't execute the keymacro in batch mode Lee, Jinhyuk
2006-05-03 15:32 ` Kevin Rodgers
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.