all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: (kill-buffer "*scratch*")
Date: Thu, 23 Sep 2004 13:45:08 -0700	[thread overview]
Message-ID: <FDELKNEBLPKKDCEBEJCBEEMBCHAA.drew.adams@oracle.com> (raw)
In-Reply-To: <81hdporegw.fsf@adboyd.com>

Just to make sure you also know these alternatives:

 - Instead of using buffer *scratch*, you can always use a different buffer
in Emacs Lisp mode. Find-file foo.el, for instance.

 - You can `write-file' buffer *scratch* into a file, to save its contents.

Buffer *scratch* is just a buffer in Emacs Lisp mode, more or less.




Kevin Rodgers <ihs_4664@yahoo.com> writes:

>  > I think I wrote it in the scratch buffer and closed emacs without
>  > saving it.
>  > Of course, emacs didn't asked me if I would like to save it.
>
> But it did tell you:
>
> ;; This buffer is for notes you don't want to save, and for Lisp
evaluation.
> ;; If you want to create a file, visit that file with C-x C-f,
> ;; then enter the text in that file's own buffer.
>
> Try adding this to your .emacs file:
>
> (save-excursion
>    (set-buffer "*scratch*")
>    (setq buffer-offer-save t))

Excellent idea.  I'm adding this to my .emacs right away, and thanks.

  reply	other threads:[~2004-09-23 20:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3743.1095944748.1998.help-gnu-emacs@gnu.org>
2004-09-23 15:38 ` (kill-buffer "*scratch*") Kevin Rodgers
2004-09-23 19:07   ` J. David Boyd
2004-09-23 20:45     ` Drew Adams [this message]
2004-09-23 19:48   ` Stefan Monnier
2004-09-23 12:59 Frederic Motte
2004-09-23 15:34 ` J. David Boyd

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=FDELKNEBLPKKDCEBEJCBEEMBCHAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    /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.