From: Edi Weitz <edi@agharta.de>
Subject: Re: Output in Emacs
Date: Sun, 02 Nov 2003 20:26:02 +0100 [thread overview]
Message-ID: <87ad7e7et1.fsf@bird.agharta.de> (raw)
In-Reply-To: bo3l52$nte$07$1@news.t-online.com
On Sun, 02 Nov 2003 20:15:45 +0100, Dirk Joos <dirkjoos@t-online.de> wrote:
> I'm working with GNU-Emacs and I want to know how I can print the
> content of a variable in the current buffer of emacs. What is the
> command?
>
> Here an example:
>
> (defun zahl()
> (interactive)
> (let ( (k 1) )
> ;at this place I want to print the content
> ;of the variable k in the actual buffer at the current
> ;cursorposition. In emacs the result should be 1 on the screen
> )
> )
I think you're looking for 'insert':
(defun foo ()
(interactive)
(let ((k 1))
(insert (format "%d" k))))
You should adhere to the usual conventions for intending Lisp
code. This'll help other people to read it.
Edi.
next prev parent reply other threads:[~2003-11-02 19:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-02 19:15 Output in Emacs Dirk Joos
2003-11-02 19:26 ` Edi Weitz [this message]
2003-11-03 22:01 ` Johannes Quint
2003-11-06 21:24 ` LEE Sau Dan
2003-11-08 0:00 ` Michael M Mason
2003-11-02 19:32 ` Edward Dodge
[not found] <mailman.3057.1067896989.21628.help-gnu-emacs@gnu.org>
2003-11-03 22:25 ` Barry Margolin
2003-11-03 23:36 ` Johan Bockgård
2003-11-03 23:38 ` Kevin Rodgers
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=87ad7e7et1.fsf@bird.agharta.de \
--to=edi@agharta.de \
/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).