From: David Reitter <david.reitter@gmail.com>
To: Jason Rumney <jasonr@gnu.org>
Cc: emacs- devel <emacs-devel@gnu.org>
Subject: Re: *scratch* buffer (was: A wish, a plea)
Date: Fri, 22 Jun 2007 15:17:54 +0100 [thread overview]
Message-ID: <E535C2D8-AA79-4D8F-973D-EED94BE9D8EA@gmail.com> (raw)
In-Reply-To: <467BB924.3080909@gnu.org>
On 22 Jun 2007, at 12:57, Jason Rumney wrote:
> David Reitter wrote:
>> I am also intending to make the *scratch* buffer persistent across
>> sessions.
>> That way, users will not be bothered to give it a name and to
>> explicitly save it. But they will retain its contents across crashes
>> and intentional restarts.
>
> That might be a good idea if there is a simple and obvious command to
> clear it when the user wants to start afresh.
I was thinking of mark-whole-buffer, then delete (whatever keys are
bound to that). That seems obvious to me.
Giving *scratch* the right buffer-file-name and turning on auto-save-
mode is easy enough. If the file exists, its contents are loaded at
startup and saved upon quit without user interaction.
One could generalize that mechanism with a customization variable:
persistent-buffers:
(("*scratch*" . "~/.emacs.scratch"))
so that the user can add further persistent buffers or remove the
*scratch* buffer to turn of persistency.
I'm not sure about how useful this would be -?
next prev parent reply other threads:[~2007-06-22 14:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-22 10:48 *scratch* buffer (was: A wish, a plea) David Reitter
2007-06-22 11:57 ` Jason Rumney
2007-06-22 14:17 ` David Reitter [this message]
2007-06-22 14:58 ` Juanma Barranquero
2007-06-28 1:07 ` Davis Herring
2007-06-28 9:58 ` David House
2007-06-28 15:04 ` Davis Herring
2007-06-22 21:53 ` Richard Stallman
2007-06-28 1:06 ` Davis Herring
2007-06-29 16:42 ` *scratch* buffer Juri Linkov
2007-07-02 16:16 ` Davis Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E535C2D8-AA79-4D8F-973D-EED94BE9D8EA@gmail.com \
--to=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=jasonr@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.