From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: cc-mode adds newlines Date: Wed, 24 Nov 2004 11:12:36 +0100 Message-ID: <86pt23k12j.fsf@ketchup.de.uu.net> 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=us-ascii X-Trace: sea.gmane.org 1101291926 20505 80.91.229.6 (24 Nov 2004 10:25:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2004 10:25:26 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 24 11:25:14 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 1CWuHZ-0005D3-00 for ; Wed, 24 Nov 2004 11:21:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWuQh-0002Gf-Ag for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2004 05:31:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWuIN-0000Ii-AU for emacs-devel@gnu.org; Wed, 24 Nov 2004 05:22:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWuIK-0000HB-Kq for emacs-devel@gnu.org; Wed, 24 Nov 2004 05:22:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWuIJ-0000GF-Ro for emacs-devel@gnu.org; Wed, 24 Nov 2004 05:22:40 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CWu8o-0002TH-S9 for emacs-devel@gnu.org; Wed, 24 Nov 2004 05:12:51 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CWu8o-00081M-00 for ; Wed, 24 Nov 2004 11:12:50 +0100 Original-Received: from ketchup.de.uu.net ([139.4.38.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Nov 2004 11:12:50 +0100 Original-Received: from kai by ketchup.de.uu.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Nov 2004 11:12:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ketchup.de.uu.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:H59mL64MuZJ0YFJLSSdKAT5iSvU= 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:30310 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30310 Kevin Rodgers writes: > 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))) I neglected to say "using Customize" somewhere. >> 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? Both are implementations of what I want, but I haven't looked at things in sufficient detail to figure out which of the implementations is better. Kai