From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6915: Please consider making left-margin-width etc buffer local instead of major mode local Date: Thu, 26 Aug 2010 14:40:05 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1282829200 2571 80.91.229.12 (26 Aug 2010 13:26:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Aug 2010 13:26:40 +0000 (UTC) Cc: MON KEY , 6915@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 26 15:26:38 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OocTV-0000V7-C8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Aug 2010 15:26:37 +0200 Original-Received: from localhost ([127.0.0.1]:48652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OocTU-0007KF-F8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Aug 2010 09:26:36 -0400 Original-Received: from [140.186.70.92] (port=50480 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OocRT-00067l-Us for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2010 09:24:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OocCv-0008Ky-7o for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2010 09:09:30 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60801) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OocCv-0008Ko-3F for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2010 09:09:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OobkR-0001fy-Dt; Thu, 26 Aug 2010 08:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2010 12:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6915-submit@debbugs.gnu.org id=B6915.12828263436420 (code B ref 6915); Thu, 26 Aug 2010 12:40:03 +0000 Original-Received: (at 6915) by debbugs.gnu.org; 26 Aug 2010 12:39:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OobjS-0001fV-30 for submit@debbugs.gnu.org; Thu, 26 Aug 2010 08:39:02 -0400 Original-Received: from mail-qw0-f44.google.com ([209.85.216.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OobjQ-0001f8-IU for 6915@debbugs.gnu.org; Thu, 26 Aug 2010 08:39:01 -0400 Original-Received: by qwc9 with SMTP id 9so1512843qwc.3 for <6915@debbugs.gnu.org>; Thu, 26 Aug 2010 05:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=t2g/UsUhBYh2399Lyd3hVWLJB/9nO7IueOgKIniUYVY=; b=uCE4pdu50uXb4B6kiXoiXHgRzJf3imkf5UwrR1HyVtmzDQYWrNtiYCWcOni4y8QmVq r3TfHQO3aT/U7Aq5hoc5n/O6MHqHwijiWETiZp6wd3N8bjKRSXrdtGyvjXU4gGdufQ6u Fq2jOwbRJToqkkeHZhHHEregTyNE6GwhxHGLM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=ZfYcx+CV0hHeocMq2ONCarIWBZrj5ENPyT71ZepToBLib5abwT/mX6xVw4xnUnkzgT KVQ6nbwVxwcSAQKHbX93j/D6uo9n3H0IrzotoI47SHjjN6QCgAmbh7w9azh793Bp2pIT krZT4Qp49yvU3LJWTy0OfGHPEOkZMf/MX22DI= Original-Received: by 10.224.73.209 with SMTP id r17mr6642447qaj.2.1282826425399; Thu, 26 Aug 2010 05:40:25 -0700 (PDT) Original-Received: by 10.229.20.139 with HTTP; Thu, 26 Aug 2010 05:40:05 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 26 Aug 2010 08:40:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39761 Archived-At: On Thu, Aug 26, 2010 at 2:16 PM, Juanma Barranquero wrote: > On Thu, Aug 26, 2010 at 11:19, Lennart Borgman > wrote: > >> If you do not have any serious answer then please stay out of this discussion. > > Why is that not a serious answer (other than the tone)? I found no logic in it. > Making variables permanent buffer-local has consequences, and frankly, > margins seem something more likely to depend on the major mode than > the buffer. If there is only one major mode in the buffer this is perhaps the case, yes. > If no one ever has asked for certain variables to be permanent > buffer-local, other than mumamo, why cannot mumamo handle them? > (Honest question, I don't know the answer.) Emacs was not very good prepared for several major modes in a buffer. I suppose this will change in the future, but we are not there yet. There are, as I see it several cases to take care of: - Major mode local variable. - Buffer local variables. - Emulator mode buffer local variable. - Modified state buffer local variables. ... I try to move this a bit forward by pointing to cases where a major mode local variable probably is seen by users more like something belonging to the buffer contents. Yes, of course mumamo can take care of these cases, but it comes at a cost. (And it definitively can not be taken care of the way that was suggested in the answer you are commenting on.)