emacs-devel
[Top][All Lists]
Advanced

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

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


From: Richard Stallman
Subject: Re: -f/--funcall and --batch and keyboard macros
Date: Thu, 04 May 2006 10:16:56 -0400

    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.

It does in fact work to read the arguments from stdin.  And if the
command needs to read arguments, it needs to read them _somehow_ in
this case.

Overall I think that it is correct to read the arguments from stdin.

    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
        --load)

            (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).

That case is clearly a bug.  I think I have fixed it.





reply via email to

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