From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Can't execute the keymacro in batch mode
Date: Wed, 03 May 2006 09:32:14 -0600 [thread overview]
Message-ID: <e3aieh$nrm$1@sea.gmane.org> (raw)
In-Reply-To: <001e01c66e1e$7abf9d10$0201a8c0@uni>
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
prev parent reply other threads:[~2006-05-03 15:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-02 19:27 Can't execute the keymacro in batch mode Lee, Jinhyuk
2006-05-03 15:32 ` Kevin Rodgers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='e3aieh$nrm$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.