From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Add file-locals and dir-locals Date: Sun, 19 Jul 2009 12:38:02 +0200 Message-ID: <4A62F78A.7030201@gmx.at> References: <20090712144137.GB2524@muc.de> <87hbxhony6.fsf@stupidchicken.com> <20090712180623.GA1009@muc.de> <4A5A2BE1.3050206@harpegolden.net> <87ab34p0o4.fsf_-_@mail.jurta.org> <4A602EF9.9070306@gmx.at> <87d47z3584.fsf@mail.jurta.org> <4A61D293.6020105@gmx.at> <87ocrhk53y.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247999916 14039 80.91.229.12 (19 Jul 2009 10:38:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jul 2009 10:38:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 19 12:38:23 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MSTmh-0003ED-Dk for ged-emacs-devel@m.gmane.org; Sun, 19 Jul 2009 12:38:23 +0200 Original-Received: from localhost ([127.0.0.1]:58047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSTmg-0006yI-Bl for ged-emacs-devel@m.gmane.org; Sun, 19 Jul 2009 06:38:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSTmY-0006xl-4y for emacs-devel@gnu.org; Sun, 19 Jul 2009 06:38:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSTmT-0006sA-5q for emacs-devel@gnu.org; Sun, 19 Jul 2009 06:38:13 -0400 Original-Received: from [199.232.76.173] (port=44859 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSTmS-0006rb-Po for emacs-devel@gnu.org; Sun, 19 Jul 2009 06:38:08 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:51712) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MSTmR-0008Bp-Bb for emacs-devel@gnu.org; Sun, 19 Jul 2009 06:38:07 -0400 Original-Received: (qmail invoked by alias); 19 Jul 2009 10:38:05 -0000 Original-Received: from 62-47-42-200.adsl.highway.telekom.at (EHLO [62.47.42.200]) [62.47.42.200] by mail.gmx.net (mp031) with SMTP; 19 Jul 2009 12:38:05 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+hYOJ5kLqhTFdFKps6cFOSiq0Tb9TO815Rpo44cd 9Uwww3hNDA1oqD User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87ocrhk53y.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.emacs.devel:112739 Archived-At: > But I think currently two operations are enough. So do I. > From the user's POV > there are two commands `add-file-local-variable' and > `delete-file-local-variable' that rely on the internal function > `modify-file-local-variable'. The user might want either add a new > variable instead of all its old settings or delete it. I don't quite catch the idea behind (and (search-backward "Local Variables:" nil t) (search-forward "Local Variables:" nil t))) Do you search the entire buffer here? Also I didn't find a functionality to remove the headers and trailers as soon as all settings have been removed. martin