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

Re: command-line-args



>>>>> In [emacs-w3m : No.05768] 
>>>>>	Miles Bader <miles@gnu.org> wrote:

>>> Because of this behavior, I can't use the following:
>>> emacs -f w3m http://some.news.site/daily-news.html&;

> The only way this bug report makes sense to me is if w3m was already
> special casing for command-line arguments, i.e., if it had code like
> this:

>    (defun w3m (&optional url ...)
>      (interactive ...)
>      (when (null url)
>        ...try to get command-line args...))

> Right?

Excactly.  Now I know the way to change that function in order
to fit it to the new Emacs as well.  I'm not opposed to Emacs
evolving, however we lost the way to call non-interactively the
interactive commands.  I think it's a major change considering
that it has been done for only gdb.
-- 
Katsumi Yamaoka <yamaoka@jpl.org>