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: james
Subject: Re: When my c++ mode hook is run, I want to print the value of some variables
Date: 2 Apr 2007 12:34:28 -0700
User-agent: G2/1.0

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.



reply via email to

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