From: Tom Capey <tom.capey@edina.co.uk>
Subject: Re: How to protect a buffer from being deleted by accident?
Date: 05 Dec 2002 15:36:19 +0000 [thread overview]
Message-ID: <ubs407a18.fsf@edina.co.uk> (raw)
In-Reply-To: ypfqr8cwip18.fsf@yew.hl.siemens.de
* Adalbert Perbandt <adalbert.perbandt@infineon.com> writes:
> Hi there,
> At my site we're using clearcase mode (clearcase.el) for a long time
> with very few problems. Some time ago one of our users deleted the
> buffer "*clearcase*" inadvertently.
> Now I'd like to provide a simple mechanism which disallows for
> deletion of this buffer. I think, it would not be too complex to
> implement this but I don't know any simple method to get it
> done. Maybe there is a posibility to mark a specific buffer as
> "undeletable" or so.
(require 'emacs-lock)
`toggle-emacs-lock'
or within code somewhere
(let ((buffer (get-buffer "*clearcase*")))
(when buffer
(set-buffer buffer)
(setq emacs-lock-from-exiting nil)))
something along those lines.
/Tom
--
"...and so, as the plastic duck of destiny has been sunk by the loofah
of fate, and Old Father Time has gone wrinkly in the bath water of
eternity, it must be time to pick out the short hairs of hope from the
plug hole of infinity." -- Humph
next prev parent reply other threads:[~2002-12-05 15:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-05 13:16 How to protect a buffer from being deleted by accident? Adalbert Perbandt
2002-12-05 13:58 ` Phillip Lord
2002-12-05 14:38 ` Colin Marquardt
2002-12-05 15:22 ` Jesper Harder
2002-12-05 15:36 ` Tom Capey [this message]
2002-12-06 19:43 ` Jeffery B. Rancier
[not found] ` <mailman.1039203908.24681.help-gnu-emacs@gnu.org>
2002-12-11 17:48 ` Adalbert Perbandt
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=ubs407a18.fsf@edina.co.uk \
--to=tom.capey@edina.co.uk \
/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).