[Top][All Lists]

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

Re: command-line-args

From: Miles Bader
Subject: Re: command-line-args
Date: Sat, 20 Sep 2003 19:29:39 -0400
User-agent: Mutt/1.3.28i

On Sat, Sep 20, 2003 at 06:07:34PM -0500, Luc Teirlinck wrote:
>    But if it is easy for users to adapt to the current behavior,
>    then let's not make this change.
> I believe the difficulty can be at most the (I believe relatively
> small) inconvenience of using:
> emacs --eval "(my-function)"

I think it's only the very few functions that specifically pay attention to
command-line arguments that are `adversely' affected by using
command-execute, and it's easy for those functions to get both cases right,
even without making a special command-line version of the function.  The code
that detects the command-line case just has to be put in the interactive form
too, e.g.:

    (if command-line-args-left
        (list (pop command-line-args-left))
      ...normal interactive processing...))

Occam's razor split hairs so well, I bought the whole argument!

reply via email to

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