From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: roy@panix.com (Roy Smith) Newsgroups: gmane.emacs.help Subject: How to indent on LOCK(); macro??? Date: 30 Aug 2005 16:51:20 -0400 Organization: PANIX -- Public Access Networks Corp. Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1125435498 32353 80.91.229.2 (30 Aug 2005 20:58:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Aug 2005 20:58:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 30 22:58:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EAD9I-00074M-Rf for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Aug 2005 22:56:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EADDS-0003xU-3V for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Aug 2005 17:00:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!newsread.com!newsprint.newsread.com!panix!panix2.panix.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-NNTP-Posting-Host: panix2.panix.com Original-X-Trace: reader2.panix.com 1125435080 9899 166.84.1.2 (30 Aug 2005 20:51:20 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 30 Aug 2005 20:51:20 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:133569 Original-To: help-gnu-emacs@gnu.org 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:29105 Archived-At: I'm working on a project which uses a LOCK/END_LOCK macro pair for mutex locking in C++ source files. A typical section of code would look like: LOCK (myDataLock) myData = foo; END_LOCK How can I convince the indenting engine to treat the LOCK and END_LOCK lines as beginning and ending blocks? I'm running GNU Emacs 21.3.1.