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

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

Printing list to buffer


From: Heime
Subject: Printing list to buffer
Date: Fri, 21 Oct 2022 22:20:13 +0000

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

reply via email to

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