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, 13 Mar 2015 18:11:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> This patch always opens `initial-buffer-choice', but displays the file
> buffer if emacs is given a file as a command line argument.

IIUC the problem you're trying to fix is specific to
initial-buffer-choice and does not happen to the default *scratch*.
Right?

> -     (switch-to-buffer
> -      (if (buffer-live-p buf) buf (get-buffer-create "*scratch*"))
> -      'norecord)))
> +        (unless (> file-count 0)
> +          (switch-to-buffer
> +           (if (buffer-live-p buf) buf (get-buffer-create "*scratch*"))
> +           'norecord))))
 
So I don't understand why this patch applies to a part of the code that
handles initial-buffer-choice and *scratch* in a similar way.


        Stefan



reply via email to

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