From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Zimmen Gnauh Newsgroups: gmane.emacs.help Subject: which mode am I using? Date: Sat, 20 Sep 2003 19:15:19 GMT Organization: Optimum Online Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064086359 9955 80.91.224.253 (20 Sep 2003 19:32:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2003 19:32:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 20 21:32:36 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A0nTA-0004Sq-01 for ; Sat, 20 Sep 2003 21:32:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0nRA-00046I-Rr for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Sep 2003 15:30:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!newsfeed.telus.net!news3.optonline.net!news4.srv.hcvlny.cv.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 7 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 24.191.25.99 Original-X-Trace: news4.srv.hcvlny.cv.net 1064085319 24.191.25.99 (Sat, 20 Sep 2003 15:15:19 EDT) Original-NNTP-Posting-Date: Sat, 20 Sep 2003 15:15:19 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:116760 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12684 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12684 I need to test whether the current buffer is in c mode or not: (if (is-c-mode) (do-something)) How can this be done? Thanks for any input.