unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marcin Borkowski <mbork@mbork.pl>
To: Samuel Wales <samologist@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: crash-proof emacs use
Date: Sat, 17 Sep 2022 16:22:39 +0200	[thread overview]
Message-ID: <87mtay5bdc.fsf@mbork.pl> (raw)
In-Reply-To: <CAJcAo8tkHtc-N-Z3w5bYkRJznVhvL-By8PrtJjcf4nnrDRh_JA@mail.gmail.com>


On 2022-09-15, at 04:49, Samuel Wales <samologist@gmail.com> wrote:

> thanks!

Here: http://mbork.pl/2022-09-17_Safe_killing_with_Emacs

Note: as mentioned in the mode docstring and in the blog post itself,
this is not really "safe" - you can still lose text in various ways when
using this code.  However, if you stick to the the basic kill/yank cycle
(so, no M-y, no undoing the yank...), you should be good.

I am convinced that making this code /really/ "safe" (read: make it
impossible to lose text) is impossible.  After all, sometimes deleting
is what you actually /want/. ;-)  Also, it seems not to like
`append-next-kill'.  Still, as a PoC it seems to work pretty nice.

Best,

--
Marcin Borkowski
http://mbork.pl



      reply	other threads:[~2022-09-17 14:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-12  2:13 crash-proof emacs use Samuel Wales
2022-09-12  3:26 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-09-12  6:08 ` Jean Louis
2022-09-12  6:32 ` Yuri Khan
2022-09-12  7:32 ` Marcin Borkowski
2022-09-15  2:49   ` Samuel Wales
2022-09-17 14:22     ` Marcin Borkowski [this message]

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=87mtay5bdc.fsf@mbork.pl \
    --to=mbork@mbork.pl \
    --cc=help-gnu-emacs@gnu.org \
    --cc=samologist@gmail.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.
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).