[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
command-line-args
- From: Katsumi Yamaoka <yamaoka@xxxxxxx>
- Date: Fri, 19 Sep 2003 08:43:41 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 05753
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 <yamaoka@jpl.org>