[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
command-line-args
From: |
Katsumi Yamaoka |
Subject: |
command-line-args |
Date: |
Fri, 19 Sep 2003 08:43:41 +0900 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
Hi,
There's a strange behavior that the recent Emacs calls a
FUNCTION interactively when the command line arguments
-f FUNCTION
are given. How to reproduce it is:
Fill the ~/.emacs file only with the following function:
(defun testing (&optional str)
(interactive (list (read-string "What? ")))
(insert (format "%s\n%s\n"
str
(prog1
command-line-args-left
(setq command-line-args-left nil)))))
Type the following command in the terminal emulator:
emacs -f testing foo bar baz
Emacs 21.3 does only insertion of text in the *scratch* buffer,
but 21.3.50 prompts user for a string. Is it a bug or a feature?
Because of this behavior, I can't use the following:
emacs -f w3m http://some.news.site/daily-news.html&
Where w3m is yet another web browser command which has the
interactive spec for prompting a url.
Regards,
--
Katsumi Yamaoka <address@hidden>
- command-line-args,
Katsumi Yamaoka <=
- Re: command-line-args, Stefan Monnier, 2003/09/19
- Re: command-line-args, Richard Stallman, 2003/09/20
- Re: command-line-args, Luc Teirlinck, 2003/09/20
- Re: command-line-args, Katsumi Yamaoka, 2003/09/21
- Re: command-line-args, Richard Stallman, 2003/09/21