all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Adding messages to the *Message* buffer?
Date: Tue, 25 Oct 2022 05:58:47 +0200	[thread overview]
Message-ID: <87sfjceeq0.fsf@dataswamp.org> (raw)
In-Reply-To: SJ0PR03MB54550C0C31B585DE24E6CEFBA2319@SJ0PR03MB5455.namprd03.prod.outlook.com

David Masterson wrote:

>>> Is there a simple command I could add to my .emacs that
>>> would allow me to print a message to the *Message* buffer?
>>> I want to use it to help me debug my .emacs -- basically,
>>> tell me what step in startup Emacs is at by sprinkling
>>> this command in my .emacs.
>>
>> (message "Val: %s" varstring)
>> (message "Number: %d" n)
>> (message "%S" symbol)
>
> Thank you

Actually you can use %s for "any object, with `princ'" as the
docstring for `format' says, all of that can also be used with
`message' ...

-- 
underground experts united
https://dataswamp.org/~incal




  reply	other threads:[~2022-10-25  3:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-24  3:39 Adding messages to the *Message* buffer? David Masterson
2022-10-24  4:58 ` Christopher Dimech
2022-10-25  3:38   ` David Masterson
2022-10-25  3:58     ` Emanuel Berg [this message]
2022-10-24  4:59 ` tomas
2022-10-24 21:01   ` Emanuel Berg
2022-10-25  9:37     ` tomas

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfjceeq0.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.