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: Emanuel Berg
Subject: Re: Using key q to quit temporary buffer window
Date: Wed, 24 Aug 2022 08:23:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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) )

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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