From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: cc-mode adds newlines Date: Mon, 22 Nov 2004 12:20:03 -0700 Message-ID: References: <20041121122629.GE20436@apps.cwi.nl> <86r7mntd5d.fsf@ketchup.de.uu.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1101151978 16512 80.91.229.6 (22 Nov 2004 19:32:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2004 19:32:58 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 22 20:32:49 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CWJvd-0004S1-00 for ; Mon, 22 Nov 2004 20:32:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWK4h-0004pk-0l for ged-emacs-devel@m.gmane.org; Mon, 22 Nov 2004 14:42:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWK3q-0004PM-1K for emacs-devel@gnu.org; Mon, 22 Nov 2004 14:41:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWK3n-0004O4-Ef for emacs-devel@gnu.org; Mon, 22 Nov 2004 14:41:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWK3n-0004Nj-63 for emacs-devel@gnu.org; Mon, 22 Nov 2004 14:41:15 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CWJtk-0002zr-TS for emacs-devel@gnu.org; Mon, 22 Nov 2004 14:30:53 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CWJtj-00016X-00 for ; Mon, 22 Nov 2004 20:30:51 +0100 Original-Received: from 170.207.1.200 ([170.207.1.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Nov 2004 20:30:51 +0100 Original-Received: from ihs_4664 by 170.207.1.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Nov 2004 20:30:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 170.207.1.200 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <86r7mntd5d.fsf@ketchup.de.uu.net> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30265 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30265 Kai Grossjohann wrote: > Perhaps it would be useful if there was an easy way to set > require-final-newline buffer-locally. What is not easy about (add-hook 'c-mode-hook (lambda () (set (make-local-variable 'require-final-newline) nil))) > That would work for other variables as well, and it would work for > other modes. Indeed it does. > What do people think about a "mode specific variables" feature where > users can customize that they want the variable foo to have the value > bar in quux-mode? What do you think about Stefan's custom-based proposal (later in the thread) and my response? -- Kevin Rodgers