emacs-devel
[Top][All Lists]
Advanced

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

Re: Scratch buffer annoyance


From: Juri Linkov
Subject: Re: Scratch buffer annoyance
Date: Fri, 03 Aug 2007 21:16:07 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> I recommend defining the value this way:
>
> A string is a file name to visit.

Then there is no distinction between file and directory names, but maybe
this is not needed provided that this string is always used as an argument
of `find-file'.

> A symbol that's a command is an initial major mode for *scratch*.

There is already a user option `initial-major-mode' that defines
an initial major mode for *scratch*.  Using two user options
for the same setting would be confusing.

> nil means keep the splash screen.
>
> It does what we want and it is clear.

Neither a string or a major mode makes it clear what the value is used for.
And I don't know what a variable name would be suitable for this option.

If an idea of setting this option to a function call like
(switch-to-buffer "*scratch*") is not acceptable (maybe this fits
better to adding such a funcall to a hook variable), then what is wrong
with using self-explanatory values like (buffer "foo") or (file "~/bar")?

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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