[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File menu changes (suggestions)
From: |
Miles Bader |
Subject: |
Re: File menu changes (suggestions) |
Date: |
Thu, 30 Jun 2005 08:46:08 +0900 |
2005/6/30, Eli Zaretskii <address@hidden>:
> > This seems to work already if you save a buffer with no associated filename.
>
> True; but what about if you kill Emacs? IIRC, a buffer that has no
> associated file will not cause Emacs to prompt for saving it, right?
> That's why I suggested to pick some mundane file name automatically.
I don't think we should be creating random filenames, and I think we
should treat such "new" buffers more like (though not entirely like)
scratch buffers than normal file-visiting buffers.
However, if someone creates a buffer with a "New File" menu item, it
is actually somewhat more likely that they intended to save it.
So I can envision a "New File" menu item that would (1) keep the
buffer-file-name `nil', but (2) turn on auto-save mode, and (3) mark
the buffer specially so that exit-emacs asks about saving it (and if
you answer `y', asks you for a filename).
[Of course scratch buffers created the old-fashioned way should
continue to be not saved by default; that's far too ingrained to
change I think. Maybe a non-menu user would want to use "M-x
new-file" sometimes though...]
-Miles
--
Do not taunt Happy Fun Ball.
- Re: File menu changes (suggestions), (continued)
- RE: File menu changes (suggestions), Drew Adams, 2005/06/28
- Re: File menu changes (suggestions), Lennart Borgman, 2005/06/28
- Re: File menu changes (suggestions), Eli Zaretskii, 2005/06/28
- Re: File menu changes (suggestions), Miles Bader, 2005/06/28
- Re: File menu changes (suggestions), Stefan Monnier, 2005/06/29
- Re: File menu changes (suggestions), Miles Bader, 2005/06/29
- Re: File menu changes (suggestions), Eli Zaretskii, 2005/06/29
- Re: File menu changes (suggestions),
Miles Bader <=
- Re: File menu changes (suggestions), Richard M. Stallman, 2005/06/29
- Re: File menu changes (suggestions), David Kastrup, 2005/06/30
- Re: File menu changes (suggestions), Richard M. Stallman, 2005/06/29
- Re: File menu changes (suggestions), David Kastrup, 2005/06/30
- Re: File menu changes (suggestions), Miles Bader, 2005/06/30
- Re: File menu changes (suggestions), public, 2005/06/30
Re: File menu changes (suggestions), David Reitter, 2005/06/26
Re: File menu changes (suggestions), LENNART BORGMAN, 2005/06/27