unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* eLisp: Print variable content to message buffer
@ 2008-01-04 15:48 Will
  2008-01-04 16:25 ` Joost Kremers
  2008-01-04 17:10 ` Peter Dyballa
  0 siblings, 2 replies; 3+ messages in thread
From: Will @ 2008-01-04 15:48 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

after looking around in the web without finding a solution, I still 
wonder how one can print the content of a variable to the *message* 
buffer. Specifically, I'd like to have an output like this in my 
*message* buffer after starting Emacs:

"This is my Emacs Exec-Path:"
<exec-path>

Thanks in advance,

Will

PS: What reference for eLisp would you recommend
(apart from those included in Emacs)?

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

* Re: eLisp: Print variable content to message buffer
  2008-01-04 15:48 eLisp: Print variable content to message buffer Will
@ 2008-01-04 16:25 ` Joost Kremers
  2008-01-04 17:10 ` Peter Dyballa
  1 sibling, 0 replies; 3+ messages in thread
From: Joost Kremers @ 2008-01-04 16:25 UTC (permalink / raw)
  To: help-gnu-emacs

Will wrote:
> after looking around in the web without finding a solution, I still 
> wonder how one can print the content of a variable to the *message* 
> buffer. Specifically, I'd like to have an output like this in my 
> *message* buffer after starting Emacs:
>
> "This is my Emacs Exec-Path:"
> <exec-path>
>
> Thanks in advance,
>
> Will
>
> PS: What reference for eLisp would you recommend
> (apart from those included in Emacs)?

none. at least i've never used any other reference material. i started out
with the emacs lisp intro, and from there on only used the elisp reference
manual that comes with emacs.

as a first step toward solving your problem, do:

C-h i m elisp RET m index RET m message RET

or alternatively, put your cursor directly after the following line and
type C-x C-e (in emacs, of course):

(info "(elisp)Displaying Messages")

HTH

-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)

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

* Re: eLisp: Print variable content to message buffer
  2008-01-04 15:48 eLisp: Print variable content to message buffer Will
  2008-01-04 16:25 ` Joost Kremers
@ 2008-01-04 17:10 ` Peter Dyballa
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2008-01-04 17:10 UTC (permalink / raw)
  To: Will; +Cc: help-gnu-emacs


Am 04.01.2008 um 16:48 schrieb Will:

> I'd like to have an output like this in my *message* buffer after  
> starting Emacs:

Have you never seen a line of code like this one?

	(message "This is the value of my %s: %s" 'exec-path exec-path)

--
Greetings

   Pete

I hope to die before I *have* to use Microsoft Word.
			- Donald E. Knuth, 2001-10-02 in Tübingen.

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

end of thread, other threads:[~2008-01-04 17:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-04 15:48 eLisp: Print variable content to message buffer Will
2008-01-04 16:25 ` Joost Kremers
2008-01-04 17:10 ` Peter Dyballa

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