🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189486

Re: enable undo in minibuffers

#189486
From: Kyle Jones
Date: Tue, 29 Jan 1991 20:15
20 lines
1323 bytes
bard@cs.cornell.edu (Bard Bloom) writes:
 > I'd like to enable undoing in minibuffers.  The obvious way to do this is to
 > use the buffer-enable-undo function in the minibuffer.  However, I can't find
 > a minibuffer-creation-hook or anything like that, so there's no obvious time
 > to have this function get called.  Any idea, other than rewriting all the
 > minibuffer functions?

Cheat.  Create a bunch of minibuffers yourself, enable undoing in
them, and Emacs will use them without a complaint.  I.e.

(save-excursion
  (let ((i 9) buf)
    (while (>= i 0)
      (set-buffer (get-buffer-create (format " *Minibuf-%d*" i)))
      (buffer-enable-undo)
      (setq i (1- i)))))

But undoing in the minibuffer still won't do what you expect.  I
noticed a couple of strange behaviors.  Try it and see for
yourself.
Technical Details
Message-ID: <120551@uunet.UU.NET>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!kyle
References: <51324@cornell.UUCP>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,7de88bcfd1c004b2
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-01-29 19:07:57 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!kyle
From: kyle@uunet.UU.NET (Kyle Jones)
Newsgroups: gnu.emacs.help
Subject: Re: enable undo in minibuffers
Message-ID: <120551@uunet.UU.NET>
Date: 29 Jan 91 20:15:12 GMT
References: <51324@cornell.UUCP>
Organization: UUNET Communications Services, Falls Church, VA
Lines: 20