all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Printing list to buffer
@ 2022-10-21 22:20 Heime via Users list for the GNU Emacs text editor
  2022-10-22  6:48 ` Jean Louis
  0 siblings, 1 reply; 2+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2022-10-21 22:20 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

I am using the function to print a lisp object to a buffer, but the printing is not happening.

I set a list

(defvar names '("Paul" "Peter"))

(viewer names)

--------------------

(defun viewer (bufrn obj)

"Prints object obj to a buffer."
(with-current-buffer (get-buffer-create bufrn)

(org-mode) (princ obj))

(pop-to-buffer bufrn))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-22  6:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-21 22:20 Printing list to buffer Heime via Users list for the GNU Emacs text editor
2022-10-22  6:48 ` Jean Louis

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.