[Top][All Lists]

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

RE: Quitting Emacs for buffer unassociated with file

From: Drew Adams
Subject: RE: Quitting Emacs for buffer unassociated with file
Date: Sat, 30 Sep 2006 17:32:15 -0700

        emacs -Q
        C-x f toto

    Do you mean C-x C-f?


        You get this menu (numbered here):

        Save file toto?
        1 Yes
        2 No
        3 View This File
        4 View Changes In File
        5 Save This Buffer But No More
        6 No For All

        3 and 4 make no sense in this context - they should be dimmed.

    #3 makes sense, but you actually view the buffer.
    #4 makes sense, though it would be sort of trivial,
    since the whole contents would appear as an insertion.

    Maybe I should just change "file" to "buffer".

That wouldn't hurt (buffers are what get saved, not files), but it misses
the point of the bug report.

If a buffer has never been saved, there is no file to compare with it (and,
a fortiori, no need for a comparison). The only options that make sense then
are 1 and 2, and possibly 5 and 6.

You are already viewing the buffer (view mode is irrelevant here - if this
is not about view mode, then use "Show", not "View"), and you are already
viewing the "changes" since the last save (which never occurred). Options 3
and 4 give you nothing useful in this context - they only confuse users. Wrt
this buffer, all you can want to do is save it or toss it.

        What does "No For All" mean? Unclear. Reword to make clear that it
        means do not save this buffer and don't ask about saving any others.

    It is hard to do this.

The names for 5 and 6 should show a) that they are parallel to each other
and 2) they are versions of 1 and 2 that apply to all modified buffers. For
(a), their text should be similar; for (b), their text should be similar to
that of 1 and 2.

5. "Yes, but save no others"
6. "No, and save no others"

If there are no other modified buffers, then 5 and 6 should be dimmed. In
the case above, only 1 and 2 should be active (undimmed) - they are the only
options that make sense.

5 and 6 don't actually reply to the question posed, except in so far as they
say "Yes" and "No" (same as 1 and 2). The other part of their meaning is
really outside the scope of the question, so it should be in parens or after
a comma.

reply via email to

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