🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189505

Retrieving what is currently displayed in the minibuffer

#189505
From: Glen Whitney
Date: Thu, 31 Jan 1991 05:10
13 lines
1476 bytes
I occasionally find myself wanting to insert in a file the string that 
currently appears in the minibuffer, or at least in the minibuffer area. 
For example, I have just saved a file, and it reads "Wrote
/mydir/bar/foo/newfile", and in a diary of what I am doing, I would like
to include that file name. So I thought I would write a Lisp function to
insert the minibuffer contents in the current buffer.
   However, I could find no way to access that information from within Emacs.
(I could get the #<buffer> structure which was the minibuffer, but taking 
"buffer-substring"s of it never returned anything.)
   Is this possible in current Gnu Emacs, or is that information actually
already forgotten by emacs by the time I see it?
   Thanks for any help,
        Glen Whitney
Technical Details
Message-ID: <1026@kaos.MATH.UCLA.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!agate!ucbvax!ucsd!swrinde!elroy.jpl.nasa.gov!usc!ucla-cs!math.ucla.edu!iapetus.math.ucla.edu!gwhitney

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,2a7282024198ccb1,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-01-30 22:30:09 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!agate!ucbvax!ucsd!swrinde!elroy.jpl.nasa.gov!usc!ucla-cs!math.ucla.edu!iapetus.math.ucla.edu!gwhitney
From: gwhitney@iapetus.math.ucla.edu (Glen Whitney)
Newsgroups: gnu.emacs.help
Subject: Retrieving what is currently displayed in the minibuffer
Keywords: minibuf
Message-ID: <1026@kaos.MATH.UCLA.EDU>
Date: 31 Jan 91 05:10:25 GMT
Sender: news@MATH.UCLA.EDU
Reply-To: gwhitney@iapetus.math.ucla.edu (Glen Whitney)
Organization: Math Department, UCLA
Lines: 13