all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Print message to buffer unless 'halt is encountered
@ 2022-10-16 18:51 Heime via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; only message in thread
From: Heime via Users list for the GNU Emacs text editor @ 2022-10-16 18:51 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Would like to print to buffer BUFR if provided, otherwise to buffer name "Gundit".

Furthermore, I want to halt printing when actm matches 'halt

Have begun with this function that sort of does what I want, but I am not there yet.

(defun gundit-message (mesg &optional bufr actm)

"Display message except on 'halt symbol."

(when (not (eq 'halt actm))

(if bufr

(with-current-buffer (get-buffer-create bufr)

(org-mode)

(insert mesg))

(princ mesg (get-buffer "Gundit")) )) )

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-16 18:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-16 18:51 Print message to buffer unless 'halt is encountered Heime via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.