emacs-pretest-bug
[Top][All Lists]
Advanced

[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>




reply via email to

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