From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric Lilja" Newsgroups: gmane.emacs.help Subject: When my c++ mode hook is run, I want to print the value of some variables Date: 1 Apr 2007 10:18:59 -0700 Organization: http://groups.google.com Message-ID: <1175447939.407197.88300@q75g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1175449088 31133 80.91.229.12 (1 Apr 2007 17:38:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2007 17:38:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 01 19:38:03 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HY408-00050w-CO for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Apr 2007 19:38:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HY434-0004Lr-Gs for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Apr 2007 13:41:02 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!q75g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 85.194.49.108 Original-X-Trace: posting.google.com 1175447940 25621 127.0.0.1 (1 Apr 2007 17:19:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 1 Apr 2007 17:19:00 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q75g2000hsh.googlegroups.com; posting-host=85.194.49.108; posting-account=VhnPwg0AAAB7O5OQRS5Hs376X47qoQdE Original-Xref: shelby.stanford.edu gnu.emacs.help:146739 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42343 Archived-At: How do I do that? (defun my-cpp-mode-hook () (message "Running my-cpp-mode-hook") (c-set-style "ellemtel") ; Say I want to print the value of access-label here, how? I can set it with (c-set-offset 'access-label '-) ) (add-hook 'c++-mode-hook 'my-cpp-mode-hook) Is access-label even a variable? How do I print its value? I'm running GNU Emacs 22.0.93.1 (i386-mingw-nt5.1.2600) of 2007-02-20 on MINDCOOLER I know about the command C-c C-o btw... - Eric