From: "Eric Lilja" <mindcooler@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: When my c++ mode hook is run, I want to print the value of some variables
Date: 2 Apr 2007 16:53:13 -0700 [thread overview]
Message-ID: <1175557993.310361.319340@y80g2000hsf.googlegroups.com> (raw)
In-Reply-To: <1175542468.325090.164540@q75g2000hsh.googlegroups.com>
On 2 Apr, 21:34, "james" <james.kings...@gmail.com> wrote:
> On Apr 1, 12:18 pm, "Eric Lilja" <mindcoo...@gmail.com> wrote:
>
> > ; Say I want to print the value of access-label here, how? I can set
> > it with (c-set-offset 'access-label '-)
> > Is access-label even a variable? How do I print its value?
>
> Short answer:
> (print (assoc 'access-label c-offsets-alist))
>
> Then go look in *Messages* for the value
>
> Less-short answer:
> If you look at the docs for c-set-offset (C-h f, c-set-offset), you'll
> see that it changes the value associated with the symbol access-label
> in the associative list c-offsets-alist. That list is the actual
> variable that you are modifying.
Thank you, James, your information was very helpful!
- Eric
prev parent reply other threads:[~2007-04-02 23:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-01 17:18 When my c++ mode hook is run, I want to print the value of some variables Eric Lilja
2007-04-02 19:34 ` james
2007-04-02 23:53 ` Eric Lilja [this message]
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=1175557993.310361.319340@y80g2000hsf.googlegroups.com \
--to=mindcooler@gmail.com \
--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.
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).