[Top][All Lists]

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

-f/--funcall and --batch and keyboard macros

From: Kevin Rodgers
Subject: -f/--funcall and --batch and keyboard macros
Date: Wed, 03 May 2006 13:42:12 -0600
User-agent: Thunderbird (Windows/20060308)

etc/NEWS 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.

1. Should a command's arguments be read interactively (presumably from
   standard input) when emacs is invoked with --batch?  That seems to be
   what Emacs does.

2. When the function/command is actually a keyboard macro, the commands
   it runs are called interactively even though the keyboard macro
   specifies its arguments.  For example, evaluating this (via --eval or

        (fset 'myfunction (kbd "C-x C-f foo.bar RET"))

   followed by --funcall myfunction causes Emacs to prompt with
   "Find file: " when --batch is also specified (but when --batch
   isn't specified, Emacs visits foo.bar as expected).

Kevin Rodgers

reply via email to

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