emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] switch to file buffer from command line args regardless of `


From: Stefan Monnier
Subject: Re: [PATCH] switch to file buffer from command line args regardless of `initial-buffer-choice'
Date: Fri, 07 Aug 2015 11:33:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> -               (buf (find-file-noselect file)))
> +                           ;; Call `find-file' instead of 
> `find-file-noselect'
> +                           ;; so that the file buffer can be used with 
> "--eval".
> +                           (buf (find-file file)))

Using find-file means the buffer is not only selected as current-buffer
but is also *displayed* in the selected window (which can have all kinds
of undesirable side-effects).

Why do you think it's better?  I can't seem to find the description of
the problem this is trying to solve.


        Stefan



reply via email to

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