From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: C++ access label indentation. Date: Sat, 23 Mar 2013 21:55:41 +0100 Organization: Informatimago Message-ID: <878v5domya.fsf@kuiper.lan.informatimago.com> References: <87k3p0pia0.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364072395 26355 80.91.229.3 (23 Mar 2013 20:59:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Mar 2013 20:59:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 23 22:00:21 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UJVY5-0005Et-FJ for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Mar 2013 22:00:21 +0100 Original-Received: from localhost ([::1]:41203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJVXi-00018Z-0n for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Mar 2013 16:59:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJVXW-00018P-9I for help-gnu-emacs@gnu.org; Sat, 23 Mar 2013 16:59:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJVXV-0007xj-1Y for help-gnu-emacs@gnu.org; Sat, 23 Mar 2013 16:59:46 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJVXU-0007xd-Ry for help-gnu-emacs@gnu.org; Sat, 23 Mar 2013 16:59:44 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UJVXn-00054T-H3 for help-gnu-emacs@gnu.org; Sat, 23 Mar 2013 22:00:03 +0100 Original-Received: from amontsouris-651-1-93-50.w82-123.abo.wanadoo.fr ([82.123.216.50]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Mar 2013 22:00:03 +0100 Original-Received: from pjb by amontsouris-651-1-93-50.w82-123.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Mar 2013 22:00:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: amontsouris-651-1-93-50.w82-123.abo.wanadoo.fr Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:YjkzMDUxNDgxM2M5ZDBhMTg2Yjk5YWE5ZWJiMjRmODZmNjZjOGM4Yw== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89699 Archived-At: Alessio Giovanni Baroni writes: > If I set 'access-label to whatever, I indent only access labels. the > 'topmost-intro remains indented as before > (it's correct). If I indent 'inclass, the indentation is what I want > in the classes, but in the structures I obtain > double of indentation (I wrote (c-set-offset 'inclass '++)). What about: (c-set-offset 'inclass '++) (c-set-offset 'access-label '-) ? > I need only one thing: a way to express "set indentation of > access-label/topmost-intro if I am within an inclass". Otherwise, for such conditional (contextual) indenting, I guess you'll need to write your own indenting function (using the langelem parameter, or the c-syntactic-element variable). -- __Pascal Bourguignon__ http://www.informatimago.com/ A bad day in () is better than a good day in {}.