help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using key q to quit temporary buffer window


From: uzibalqa
Subject: Re: Using key q to quit temporary buffer window
Date: Wed, 24 Aug 2022 06:30:29 +0000

------- Original Message -------
On Wednesday, August 24th, 2022 at 6:23 AM, Emanuel Berg <incal@dataswamp.org> 
wrote:


> uzibalqa wrote:
> 
> > Have done
> > 
> > (defun help-show (bfname msg)
> > "Display the output of MSG"
> > 
> > (let ( (bfr (get-buffer-create bfname)) )
> > 
> > (when (stringp msg)
> > (with-current-buffer bfr
> > (print msg)
> > (pop-to-buffer bfr))) ))
> 
> 
> (let ((buf (get-buffer-create "Test Buffer")))
> (with-current-buffer buf
> (insert "Lamers 'R Us\n") )
> (pop-to-buffer buf) )

Lastly I need the buffer to quit by hitting `q'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]