🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189047

want "no-undo-boundary"

#189047
From: W. H. Caplinger
Date: Fri, 03 May 1991 22:45
28 lines
1295 bytes
Occasionally I find that Undo takes many steps when I want a single step.

For example, I write:

(defun remove-substrings-region (regexp beg end)
  "Remove any substrings matching REGEXP with the current REGION."
  (interactive "*sRegexp: \nr")
  (save-restriction
    (narrow-to-region beg end)
    (goto-char beg)
    (replace-regexp regexp "" nil)
    ))

Undo of this (unfortunately) treats each repacement sub-step separately.

I tried expanding the penultimate line to:
    (perform-replace regexp "" nil t nil)
with no improvement.

Perhaps this is wishlist, but I would like an elisp inverse of "undo-boundary",
to place several successive steps within one undo increment.

Thanks,
--
|------
| Wayne H. Caplinger			WCaplinger@tcs.com
| Teknekron Communications Systems
| 2121 Allston Way, Berkeley, CA 94704	415-649-3802	fax: 649-3600
Technical Details
Message-ID: <2150@godzilla.tcs.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!godzilla!wayne

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,4f3af2fdefff947d,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-05-09 15:40:06 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!godzilla!wayne
From: wayne@tcs.com (W. H. Caplinger)
Newsgroups: gnu.emacs.help
Subject: want "no-undo-boundary"
Message-ID: <2150@godzilla.tcs.com>
Date: 3 May 91 22:45:51 GMT
Sender: root@tcs.com
Lines: 28