From: Heime via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Printing list to buffer
Date: Fri, 21 Oct 2022 22:20:13 +0000 [thread overview]
Message-ID: <hiG-yfkOcpOnB3cQyE4os4Wkv_YWS0FIpEHNGWgtiyphY7m-wzQ3QZowUHUgS1QtAeGnzJQSgtjVZCVYG87ouVwIumhDrtVGitBc88YCGZ0=@protonmail.com> (raw)
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))
next reply other threads:[~2022-10-21 22:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-21 22:20 Heime via Users list for the GNU Emacs text editor [this message]
2022-10-22 6:48 ` Printing list to buffer Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hiG-yfkOcpOnB3cQyE4os4Wkv_YWS0FIpEHNGWgtiyphY7m-wzQ3QZowUHUgS1QtAeGnzJQSgtjVZCVYG87ouVwIumhDrtVGitBc88YCGZ0=@protonmail.com' \
--to=help-gnu-emacs@gnu.org \
--cc=heimeborgia@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).