emacs-devel
[Top][All Lists]
Advanced

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

Re: 2 annoying questions for `find-alternate-file`


From: Juri Linkov
Subject: Re: 2 annoying questions for `find-alternate-file`
Date: Fri, 20 Jul 2012 13:09:01 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu)

> -    (if (yes-or-no-p (format "Buffer %s is modified; save it first? "
> +    (unless (yes-or-no-p (format "Buffer %s is modified; are you sure you 
> want to continue? "
>                            (buffer-name)))
> -        (save-buffer)
> -      (unless (yes-or-no-p "Kill and replace the buffer without saving it? ")

Please state clearly in the question what the command is going to do.
So instead of

"Buffer %s is modified; are you sure you want to continue? "

use something like

"Buffer %s is modified; kill and replace it without saving? "



reply via email to

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