emacs-devel
[Top][All Lists]
Advanced

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

Re: delete-file default to buffer-file-name if non-nil


From: Stefan Monnier
Subject: Re: delete-file default to buffer-file-name if non-nil
Date: Mon, 17 May 2010 09:51:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> The argument INITIAL-CONTENTS is obsolete and should not be used.
>> It's possible to insert the default value to the minibuffer
>> with `M-n'.
> So it is.  But I happen to disagree that it should be obsolete. ;-)

You're wrong, of course.

> A better approach is to let the user decide the behavior.
> I have this option (FWIW):
> | When the default value argument to functions such as
> | `completing-read', `read-file-name', `read-from-minibuffer', and
> | `read-string' is non-nil and the initial-input argument is nil or
> | "", the default value can be added to the prompt as a hint or
> | inserted into the minibuffer as the initial input.

IIUC this is not using the initial-contents argument (more to the
point, it's only active if this arg is nil, i.e. if the caller properly
treats it a deprecated).
So this is perfectly compatible with initial-contents's obsolescence.


        Stefan



reply via email to

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