From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#6871: Please make linum-mode per buffer, not per major mode Date: Tue, 17 Aug 2010 19:47:22 -0400 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 1282090145 25454 80.91.229.12 (18 Aug 2010 00:09:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2010 00:09:05 +0000 (UTC) To: 6871@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 18 02:09:04 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 1OlWDH-0003hp-UC for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Aug 2010 02:09:04 +0200 Original-Received: from localhost ([127.0.0.1]:46488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlWDG-000054-Tg for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Aug 2010 20:09:02 -0400 Original-Received: from [140.186.70.92] (port=51041 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlWD9-0008VN-9u for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 20:08:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlWD8-0002i5-2Y for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 20:08:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43107) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlWD7-0002i1-Vw for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 20:08:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OlVrx-0002io-MI; Tue, 17 Aug 2010 19:47:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Aug 2010 23:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6871 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6871-submit@debbugs.gnu.org id=B6871.128208878210451 (code B ref 6871); Tue, 17 Aug 2010 23:47:01 +0000 Original-Received: (at 6871) by debbugs.gnu.org; 17 Aug 2010 23:46:22 +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 1OlVrK-0002iW-KS for submit@debbugs.gnu.org; Tue, 17 Aug 2010 19:46:22 -0400 Original-Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlVrI-0002iP-3Z for 6871@debbugs.gnu.org; Tue, 17 Aug 2010 19:46:20 -0400 Original-Received: by ewy22 with SMTP id 22so7980ewy.3 for <6871@debbugs.gnu.org>; Tue, 17 Aug 2010 16:47:22 -0700 (PDT) Original-Received: by 10.216.165.77 with SMTP id d55mr6387058wel.23.1282088842514; Tue, 17 Aug 2010 16:47:22 -0700 (PDT) Original-Received: by 10.216.65.140 with HTTP; Tue, 17 Aug 2010 16:47:22 -0700 (PDT) X-Google-Sender-Auth: eXwoNcOk3xM9dN0zU6dWThjFFkI X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 17 Aug 2010 19:47:01 -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:39590 Archived-At: > I think such a change is acceptable (although the motivation of > multi-major-mode buffers might not be that compelling, since it > tends to lead to the idea that most/all minor-modes should be made > permanent-local), but we need a proper patch for it. Thats potentially a lot of overlays to persist in buffers which: - may not always be visible - may be visible but don't need the linum minor-mode behaviour automatically persisted Will such a change negatively impact redisplay elsewhere? I ask because of this comment here from linum.el: ,---- | | (add-hook 'window-configuration-change-hook | ;; FIXME: If the buffer is shown in N windows, this | ;; will be called N times rather than once. We should use | ;; something like linum-update-window instead. | 'linum-update-current nil t) | `---- Also, linum-mode activation already sets timers when linum-eager is non-nil... will these timers now persist as well on major-mode changes? If so how will they impact redisplay? More concretely, how many (more) permanent-locals does Lennart need in order to attain mumamo.el bliss? And, while your giving permanent-locals away so freely can maybe you spare a few for the slime guys? Or the geiser/quack/scheme guys I'm sure they could use some too... :-P -- /s_P\