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#6871: Please make linum-mode per buffer, not per major mode Date: Wed, 18 Aug 2010 02:14:47 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1282091948 2990 80.91.229.12 (18 Aug 2010 00:39:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2010 00:39:08 +0000 (UTC) Cc: 6871@debbugs.gnu.org To: MON KEY Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 18 02:39:06 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 1OlWgM-0003lF-5V for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Aug 2010 02:39:06 +0200 Original-Received: from localhost ([127.0.0.1]:57089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlWgK-0002SX-Ue for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Aug 2010 20:39:04 -0400 Original-Received: from [140.186.70.92] (port=56698 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlWgC-0002SQ-1l for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 20:38:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlWgA-0005Qh-7g for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 20:38:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56035) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlWgA-0005Qc-3t for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 20:38:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OlWJ4-0002tP-NT; Tue, 17 Aug 2010 20:15:02 -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: Wed, 18 Aug 2010 00:15:02 +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.128209044611099 (code B ref 6871); Wed, 18 Aug 2010 00:15:02 +0000 Original-Received: (at 6871) by debbugs.gnu.org; 18 Aug 2010 00:14:06 +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 1OlWIA-0002sy-8o for submit@debbugs.gnu.org; Tue, 17 Aug 2010 20:14:06 -0400 Original-Received: from mail-qy0-f172.google.com ([209.85.216.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlWI8-0002sb-Em for 6871@debbugs.gnu.org; Tue, 17 Aug 2010 20:14:04 -0400 Original-Received: by qyk1 with SMTP id 1so1254769qyk.3 for <6871@debbugs.gnu.org>; Tue, 17 Aug 2010 17:15:07 -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 :content-transfer-encoding; bh=V1wczPYXrTZVzAmf8ZweZEDqWZLiMujiaG6C3s6Ga+o=; b=wzsetExI6evIfjcCW8zNkpNbjWWikreYVHJTLpMkf7qmnwNeKnaQSP3UNpKBBY5+9G kk462fc9ztCqQNolcM5sm0LLyVp2tYHv8EIB0WgBL07DRKiNsLs0jynyBMlx/QbRIHpm TuoBJ+Q6SaHn5hHl/+JvDEdcezzT/ysB7gGU8= 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:content-transfer-encoding; b=CP5geww2Goa9VB2Mc8S5bfumWGBKzwzbRDZTMfZyykkSqMZK8cqS7iYku5Ztlv9HBP pBQjCnQbNvaeLYA4S25mtEe7AdOWJ9Dn4681272FzdAD+t2DhsACEsXuVF4Vi9tmzQX0 L9MjCN17Az+GpWiPv5cFz08CS+lhz+aY9hL9M= Original-Received: by 10.224.47.4 with SMTP id l4mr4881814qaf.157.1282090507245; Tue, 17 Aug 2010 17:15:07 -0700 (PDT) Original-Received: by 10.229.54.80 with HTTP; Tue, 17 Aug 2010 17:14:47 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 17 Aug 2010 20:15:02 -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:39591 Archived-At: On Wed, Aug 18, 2010 at 1:47 AM, MON KEY wrote: >> 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 > =C2=A0automatically 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 > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; FIXME: If the buffer is shown in N windo= ws, this > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; will be called N times rather than once.= =C2=A0We should use > | =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; something like linum-update-window inste= ad. > | =C2=A0'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? Those things are not related.