From: Thien-Thi Nguyen <ttn@glug.org>
Subject: Re: where is the scratch buffer
Date: Fri, 31 Mar 2006 16:44:26 +0200 [thread overview]
Message-ID: <7eirpuu111.fsf@ada2.unipv.it> (raw)
In-Reply-To: 87zmj7vuaz.fsf@ulm.malte.spiess
Malte Spiess <mail@malte-spiess.de> writes:
> But if you type in *scratch* there will be a new one.
> Makes no difference to the one you deleted.
below is source for a command you can bind to a key.
thi
___________________________________________
;;; give-me-a-scratch-buffer-now.el
;;;
;;; Rel:v-1-55
;;;
;;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998,2004 Thien-Thi Nguyen
;;; This file is part of ttn's personal elisp library, released under GNU
;;; GPL with ABSOLUTELY NO WARRANTY. See the file COPYING for details.
;;; Description: Find *scratch* buffer; put it in lisp-interaction-mode.
;;; Prefix arg guarantees new buffer.
;;;###autoload
(defun give-me-a-scratch-buffer-now (want-new)
"Bring up *scratch* or younger siblings if prefixed."
(interactive "P")
(switch-to-buffer
(if want-new
(generate-new-buffer "*scratch*")
"*scratch*"))
(lisp-interaction-mode))
(provide 'give-me-a-scratch-buffer-now)
;;; give-me-a-scratch-buffer-now.el ends here
next prev parent reply other threads:[~2006-03-31 14:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-01 0:45 where is the scratch buffer Gary Weselle
2006-03-31 6:58 ` Wolfram Kraus
2006-04-01 4:12 ` Gary Weselle
2006-03-31 9:26 ` Malte Spiess
2006-03-31 14:44 ` Thien-Thi Nguyen [this message]
2006-03-31 16:22 ` Kevin Rodgers
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7eirpuu111.fsf@ada2.unipv.it \
--to=ttn@glug.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).