help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When my c++ mode hook is run, I want to print the value of some vari


From: Eric Lilja
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
User-agent: G2/1.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]