unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).