Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 29352431FB6 for ; Thu, 25 Nov 2010 03:08:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3foqTPRP6oBC for ; Thu, 25 Nov 2010 03:08:28 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 0A8D7431FB5 for ; Thu, 25 Nov 2010 03:08:28 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 27C8219F3355; Thu, 25 Nov 2010 12:08:27 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id sY4DBwKZbJvZ; Thu, 25 Nov 2010 12:08:25 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id CEF8319F3337; Thu, 25 Nov 2010 12:08:25 +0100 (CET) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id D997B15C027; Thu, 25 Nov 2010 12:08:25 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1PLZgf-0000zt-GS; Thu, 25 Nov 2010 12:08:25 +0100 From: Michal Sojka To: Daniel Kahn Gillmor , notmuch Subject: Re: C coding conventions for notmuch In-Reply-To: <4CED8987.6040805@fifthhorseman.net> References: <4CEC0C88.5030304@fifthhorseman.net> <87pqtubej1.fsf@steelpick.2x.cz> <4CED8987.6040805@fifthhorseman.net> User-Agent: Notmuch/0.5-11-g48b5e00 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Thu, 25 Nov 2010 12:08:25 +0100 Message-ID: <87hbf5aceu.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2010 11:08:30 -0000 On Wed, 24 Nov 2010, Daniel Kahn Gillmor wrote: > On 11/24/2010 04:25 PM, Michal Sojka wrote: > > (c-cleanup-list . (space-before-funcall)) > > This line makes my emacs prompt that it "may not be safe" -- it seems > impolite to ask users just opening up the code within emacs to execute > arbitrary emacs macros. Hmm. I have this settings in .emacs instead of .dir-locals.el so I didn't noticed that. This is the relevant piece of my .emacs if somebody is interested in it: (defconst cworth-c-style `((c-basic-offset . 4) (c-cleanup-list . (space-before-funcall))) "Carl Worth's C/C++ Programming Style") (c-add-style "cworth" cworth-c-style) (dir-locals-set-class-variables 'notmuch '((c-mode . ((c-file-style . "cworth"))) (c++-mode . ((c-file-style . "cworth"))))) (dir-locals-set-directory-class "~/src/notmuch" 'notmuch) -Michal