GNU bug report logs - #17787
Redundant runs of window-scroll-functions

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Keith David Bershatsky <esq@HIDDEN>; dated Sun, 15 Jun 2014 19:13:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 17787 <at> debbugs.gnu.org:


Received: (at 17787) by debbugs.gnu.org; 17 Jun 2014 00:46:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 16 20:46:22 2014
Received: from localhost ([127.0.0.1]:49752 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WwhXZ-0004CH-Rl
	for submit <at> debbugs.gnu.org; Mon, 16 Jun 2014 20:46:22 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:25330)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1WwhXX-0004Bx-C8
 for 17787 <at> debbugs.gnu.org; Mon, 16 Jun 2014 20:46:19 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArkGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgwQBCYEXF3SCJQEBAQECAVYjEAsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoFxgVsh
X-IPAS-Result: ArkGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgwQBCYEXF3SCJQEBAQECAVYjEAsOJhIUGA0kiAQI0hkXjnoHhDgEqRmBaoFxgVsh
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="67052150"
Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home)
 ([75.119.224.253])
 by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
 16 Jun 2014 20:46:13 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 750F960B51; Mon, 16 Jun 2014 20:46:13 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Juanma Barranquero <lekktu@HIDDEN>
Subject: Re: bug#17787: 24.4.50;
 Making `linum-mode` more efficient -- no need to run multiple times.
Message-ID: <jwvlhsw749f.fsf-monnier+emacsbugs@HIDDEN>
References: <m2bntuq96v.wl%esq@HIDDEN> <83mwdeuewi.fsf@HIDDEN>
 <CAAeL0SQgcJ9PswA-feeRc0HA9aQs1o2tHQ9BNSzdzcZBVS8D_Q@HIDDEN>
 <83lhsxvazu.fsf@HIDDEN>
 <CAAeL0SQ9f8gzO-5+vVqyXoziQ2jHqJRuJhKpPu1d-P-ynLu31w@HIDDEN>
Date: Mon, 16 Jun 2014 20:46:13 -0400
In-Reply-To: <CAAeL0SQ9f8gzO-5+vVqyXoziQ2jHqJRuJhKpPu1d-P-ynLu31w@HIDDEN>
 (Juanma Barranquero's message of "Mon, 16 Jun 2014 08:51:08 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 17787
Cc: Eli Zaretskii <eliz@HIDDEN>, esq@HIDDEN, 17787 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

>> If the missing features in nlinum matter,
> They do, to me.

BTW, Juanma, could you add those in a "Todo" list of some sort in
nlinum.el?


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17787; Package emacs. Full text available.
Changed bug title to 'Redundant runs of window-scroll-functions' from '24.4.50; Making `linum-mode` more efficient -- no need to run multiple times.' Request was from Stefan Monnier <monnier@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 17787 <at> debbugs.gnu.org:


Received: (at 17787) by debbugs.gnu.org; 17 Jun 2014 00:43:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 16 20:43:18 2014
Received: from localhost ([127.0.0.1]:49744 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WwhUZ-0002wM-Cl
	for submit <at> debbugs.gnu.org; Mon, 16 Jun 2014 20:43:15 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:32198)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>)
 id 1WwhUW-0002w3-Ez; Mon, 16 Jun 2014 20:43:13 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJDGHUwjSGReOI1cHhDgEqRmBaoFxgVshgS0
X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJDGHUwjSGReOI1cHhDgEqRmBaoFxgVshgS0
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="67052016"
Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home)
 ([75.119.224.253])
 by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
 16 Jun 2014 20:43:06 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 1426360B51; Mon, 16 Jun 2014 20:43:06 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Keith David Bershatsky <esq@HIDDEN>
Subject: Re: bug#17787: 24.4.50;
 Making `linum-mode` more efficient -- no need to run multiple times.
Message-ID: <jwvr42o74wb.fsf-monnier+emacsbugs@HIDDEN>
References: <m2bntuq96v.wl%esq@HIDDEN>
Date: Mon, 16 Jun 2014 20:43:06 -0400
In-Reply-To: <m2bntuq96v.wl%esq@HIDDEN> (Keith David Bershatsky's message
 of "Sun, 15 Jun 2014 12:11:52 -0700")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 17787
Cc: 17787 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

retitle 17787 Redundant runs of window-scroll-functions
thanks

> Here is a minor mode that can be used to test the `window-start` and
> `window-end` values.  A similar system can be used for `linum-mode` --
> i.e., use the `linum-update-window` from the `post-command-hook` when
> point stays within the visible window limits; and, when point moves
> outside those visible window limits, then use the
> `window-scroll-functions` hook -- however, limit `linum-update-window`
> so that it only runs when `(not (> (point) (window-end win t)))`.

As Eli explained, we're not very interested in improving linum-mode.
I'd rather focus on bringing nlinum-mode to feature-parity with linum-mode.
admittedly, for some uses of linum-mode, the technique used by
nlinum-mode has some inconvenients.

But your code sounds useful, indeed for uses of window-scroll-functions
which don't affect display very much (e.g. don't change window-start).
This said: even if (> (point) (window-end win t)) it may be that
window-scroll-functions won't be called again, because the current
window-scroll-functions may change something in the current buffer
(e.g. add `invisible' properties, shrink the margin, etc...) which cause
(window-end win t) to move past (point).


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17787; Package emacs. Full text available.

Message received at 17787 <at> debbugs.gnu.org:


Received: (at 17787) by debbugs.gnu.org; 16 Jun 2014 06:51:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 16 02:51:58 2014
Received: from localhost ([127.0.0.1]:48669 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WwQlp-0008K6-SF
	for submit <at> debbugs.gnu.org; Mon, 16 Jun 2014 02:51:58 -0400
Received: from mail-yk0-f171.google.com ([209.85.160.171]:41421)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <lekktu@HIDDEN>) id 1WwQlm-0008Jm-Lt
 for 17787 <at> debbugs.gnu.org; Mon, 16 Jun 2014 02:51:55 -0400
Received: by mail-yk0-f171.google.com with SMTP id 200so3838431ykr.30
 for <17787 <at> debbugs.gnu.org>; Sun, 15 Jun 2014 23:51:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc:content-type;
 bh=alyfOKk+CY2ZjZ8FBJi1dUsxBw/9aUz3VnX5L6PMlzw=;
 b=EPEt8DBysnIY5hikOVBZifg4/cOLLfn/zKMtuboKVGg72oOtVASfEAokfpn2l/X6mg
 /BrOXKSt3uJ7qKfdGn2pALMGi8r/DA+XNMR9+n/9B+KV2BLS2L5616rgQimJhx/vahfd
 oxCeMC1nBtbBUGay1ytM6FPAj/5RBUXMXIhITH3E3nQOGu+UwRWIVk7WxtK7clLWOF14
 P/+Q+vt7r8p07zIQiUI4ilRyhXK50pwKwWksBgSpyLLtWusROZB8w7G9Chc33pbKqwQw
 c7epHxqyiQNkvyXhXIpbkIgzhEjqaOILDF7Of7tCiNYNePbnZloYE0NoVwgdICIHLKTR
 w+zA==
X-Received: by 10.236.68.34 with SMTP id k22mr31792179yhd.90.1402901509057;
 Sun, 15 Jun 2014 23:51:49 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.170.95.9 with HTTP; Sun, 15 Jun 2014 23:51:08 -0700 (PDT)
In-Reply-To: <83lhsxvazu.fsf@HIDDEN>
References: <m2bntuq96v.wl%esq@HIDDEN> <83mwdeuewi.fsf@HIDDEN>
 <CAAeL0SQgcJ9PswA-feeRc0HA9aQs1o2tHQ9BNSzdzcZBVS8D_Q@HIDDEN>
 <83lhsxvazu.fsf@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Mon, 16 Jun 2014 08:51:08 +0200
Message-ID: <CAAeL0SQ9f8gzO-5+vVqyXoziQ2jHqJRuJhKpPu1d-P-ynLu31w@HIDDEN>
Subject: Re: bug#17787: 24.4.50; Making `linum-mode` more efficient -- no need
 to run multiple times.
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary=bcaec50b4b941a8b8804fbee76bd
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 17787
Cc: esq@HIDDEN, 17787 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--bcaec50b4b941a8b8804fbee76bd
Content-Type: text/plain; charset=UTF-8

On Mon, Jun 16, 2014 at 4:33 AM, Eli Zaretskii <eliz@HIDDEN> wrote:

> If the missing features in nlinum matter,

They do, to me.

> they should be added.

Yep. Not entirely trivial, though.

--bcaec50b4b941a8b8804fbee76bd
Content-Type: text/html; charset=UTF-8

<div dir="ltr"><br><div class="gmail_extra">On Mon, Jun 16, 2014 at 4:33 AM, Eli Zaretskii &lt;<a href="mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br><br>&gt; If the missing features in nlinum matter,<br><br></div><div class="gmail_extra">

They do, to me.<br></div><div class="gmail_extra"><br>&gt; they should be added.<br><br></div><div class="gmail_extra">Yep. Not entirely trivial, though.<br></div></div>

--bcaec50b4b941a8b8804fbee76bd--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17787; Package emacs. Full text available.

Message received at 17787 <at> debbugs.gnu.org:


Received: (at 17787) by debbugs.gnu.org; 16 Jun 2014 02:34:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 15 22:34:12 2014
Received: from localhost ([127.0.0.1]:48601 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WwMkO-0001fW-EO
	for submit <at> debbugs.gnu.org; Sun, 15 Jun 2014 22:34:12 -0400
Received: from mtaout22.012.net.il ([80.179.55.172]:61340)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1WwMkL-0001fH-JV
 for 17787 <at> debbugs.gnu.org; Sun, 15 Jun 2014 22:34:11 -0400
Received: from conversion-daemon.a-mtaout22.012.net.il by
 a-mtaout22.012.net.il (HyperSendmail v2007.08) id
 <0N7800900OU8VO00@HIDDEN> for 17787 <at> debbugs.gnu.org;
 Mon, 16 Jun 2014 05:34:02 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0N780094FPSPMB90@HIDDEN>;
 Mon, 16 Jun 2014 05:34:02 +0300 (IDT)
Date: Mon, 16 Jun 2014 05:33:57 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#17787: 24.4.50;
 Making `linum-mode` more efficient -- no need to run multiple times.
In-reply-to: <CAAeL0SQgcJ9PswA-feeRc0HA9aQs1o2tHQ9BNSzdzcZBVS8D_Q@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Juanma Barranquero <lekktu@HIDDEN>
Message-id: <83lhsxvazu.fsf@HIDDEN>
References: <m2bntuq96v.wl%esq@HIDDEN> <83mwdeuewi.fsf@HIDDEN>
 <CAAeL0SQgcJ9PswA-feeRc0HA9aQs1o2tHQ9BNSzdzcZBVS8D_Q@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 17787
Cc: esq@HIDDEN, 17787 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> From: Juanma Barranquero <lekktu@HIDDEN>
> Date: Mon, 16 Jun 2014 01:28:36 +0200
> Cc: Keith David Bershatsky <esq@HIDDEN>, 17787 <at> debbugs.gnu.org
> 
> On Sun, Jun 15, 2014 at 9:54 PM, Eli Zaretskii <eliz@HIDDEN> wrote:
> 
> > Can I persuade you (and everyone else) to please forget linum-mode
> > ever existed, and never to remember that?  If someone wants line
> > numbers in Emacs, could they please use Stefan's nlinum-mode instead?
> 
> They don't offer the same features.

If the missing features in nlinum matter, they should be added.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17787; Package emacs. Full text available.

Message received at 17787 <at> debbugs.gnu.org:


Received: (at 17787) by debbugs.gnu.org; 15 Jun 2014 23:29:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 15 19:29:25 2014
Received: from localhost ([127.0.0.1]:48568 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WwJrY-0005WB-Lz
	for submit <at> debbugs.gnu.org; Sun, 15 Jun 2014 19:29:24 -0400
Received: from mail-yh0-f51.google.com ([209.85.213.51]:50260)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <lekktu@HIDDEN>) id 1WwJrV-0005Vt-Uu
 for 17787 <at> debbugs.gnu.org; Sun, 15 Jun 2014 19:29:22 -0400
Received: by mail-yh0-f51.google.com with SMTP id f10so3751040yha.38
 for <17787 <at> debbugs.gnu.org>; Sun, 15 Jun 2014 16:29:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc:content-type;
 bh=A7ylq+x5FDZe5YUdr4vTWoiIKqvJ27XrkNBOafd9j2M=;
 b=kAzMfV46QlEhgikpM6pJUIJ/IgC9UO62TWhI6rBVMXH9MPyRfjijI2dE9yfhlCXAe/
 2zV6N1X/ZwJvrraoW4kA2YnxB2t0Om9refPLi+brysiyROA6k29vBziwBDhq61BAy0P1
 c5BGHP5EhlmdTq29OqAcrddNC4aBT4oZIZQ0kNth+QGsvJ3tHJUNv5t8FJ2f7d1X9L19
 4NcRgmwoxCpm1Tgdj4isxkiAob6cfjMU+dSx+6J9m/ygQ/GkvHBkc4fOtWELghgdDKD5
 gILMpAYGNYDV5rNW3mAcMa+n0bypWUKLkNeW/X5f+e+F8FpSXgWrsl4Y/l/sFtJWhE90
 SspA==
X-Received: by 10.236.78.33 with SMTP id f21mr27911276yhe.113.1402874956368;
 Sun, 15 Jun 2014 16:29:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.170.95.9 with HTTP; Sun, 15 Jun 2014 16:28:36 -0700 (PDT)
In-Reply-To: <83mwdeuewi.fsf@HIDDEN>
References: <m2bntuq96v.wl%esq@HIDDEN> <83mwdeuewi.fsf@HIDDEN>
From: Juanma Barranquero <lekktu@HIDDEN>
Date: Mon, 16 Jun 2014 01:28:36 +0200
Message-ID: <CAAeL0SQgcJ9PswA-feeRc0HA9aQs1o2tHQ9BNSzdzcZBVS8D_Q@HIDDEN>
Subject: Re: bug#17787: 24.4.50; Making `linum-mode` more efficient -- no need
 to run multiple times.
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary=20cf30050cda70507904fbe84784
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 17787
Cc: Keith David Bershatsky <esq@HIDDEN>, 17787 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--20cf30050cda70507904fbe84784
Content-Type: text/plain; charset=UTF-8

On Sun, Jun 15, 2014 at 9:54 PM, Eli Zaretskii <eliz@HIDDEN> wrote:

> Can I persuade you (and everyone else) to please forget linum-mode
> ever existed, and never to remember that?  If someone wants line
> numbers in Emacs, could they please use Stefan's nlinum-mode instead?

They don't offer the same features.

     J

--20cf30050cda70507904fbe84784
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br>On Sun, Jun 15, 2014 at 9:54 PM, Eli Zaretskii &lt;<a =
href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wrote:<br><br><div>&gt; C=
an I persuade you (and everyone else) to please forget linum-mode<br>&gt; e=
ver existed, and never to remember that? =C2=A0If someone wants line<br>

&gt; numbers in Emacs, could they please use Stefan&#39;s nlinum-mode inste=
ad?</div><div><br></div><div>They don&#39;t offer the same features.</div><=
div><br>=C2=A0 =C2=A0 =C2=A0J</div></div>

--20cf30050cda70507904fbe84784--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17787; Package emacs. Full text available.

Message received at 17787 <at> debbugs.gnu.org:


Received: (at 17787) by debbugs.gnu.org; 15 Jun 2014 22:03:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 15 18:03:28 2014
Received: from localhost ([127.0.0.1]:48534 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WwIWN-0003Pe-CO
	for submit <at> debbugs.gnu.org; Sun, 15 Jun 2014 18:03:27 -0400
Received: from cobb.liquidweb.com ([50.28.13.150]:42973)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <esq@HIDDEN>) id 1WwIWL-0003PO-E5
 for 17787 <at> debbugs.gnu.org; Sun, 15 Jun 2014 18:03:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com;
 s=default; 
 h=To:References:Message-Id:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Content-Type:Mime-Version:Subject;
 bh=bDBJlr79WRYQnZm+r4d9JR/6QxgUdkun8uFpijUMo4Q=; 
 b=fjkkP5dGBkWhcrzC1a4OLZW7+w0E/02dDZa97jLTK0wfr3yNnQYfTOrvbmaVUzIe7v17LyQWDydM5Q+ojbbaCKMJYwBaKGNMgTVVKcPYwWPhaaIYu6S6NqAGRfvYLqc3;
Received: from cpe-75-85-5-102.socal.res.rr.com ([75.85.5.102]:51881
 helo=[192.168.0.4]) by cobb.liquidweb.com with esmtpa (Exim 4.82)
 (envelope-from <esq@HIDDEN>)
 id 1WwIWD-0000jh-Vg; Sun, 15 Jun 2014 18:03:18 -0400
Subject: Re: bug#17787: 24.4.50;
 Making `linum-mode` more efficient -- no need to run multiple times.
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Keith David Bershatsky <esq@HIDDEN>
In-Reply-To: <83mwdeuewi.fsf@HIDDEN>
Date: Sun, 15 Jun 2014 15:03:17 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <25E00ADC-8437-4B37-8A01-6AAE07801F3F@HIDDEN>
References: <m2bntuq96v.wl%esq@HIDDEN> <83mwdeuewi.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.1084)
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - cobb.liquidweb.com
X-AntiAbuse: Original Domain - debbugs.gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - lawlist.com
X-Get-Message-Sender-Via: cobb.liquidweb.com: authenticated_id: lawlist/from_h
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 17787
Cc: 17787 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

Thank you for the referral to the library `nlinum-mode`.  I've =
downloaded it and tried it out, and will keep it in my ever growing bag =
of goodies.  I'll need to try it out over time with my various minor =
modes to see how they play together.

I understand that the Emacs team may wish to discontinue `linum-mode` in =
favor of `nlinum-mode`, so this bug report (#17787) can be closed out at =
your convenience.

I've gone ahead and made a first draft of the fix to `linum-mode`, which =
is dependent upon the global variable `scroll-margin` being set to zero =
(as that is the circumstance whereby the `window-scroll-functions` hook =
makes a second run).  When the `scroll-margin` is set to something like =
2 (instead of zero), the condition `(not (> (point) (window-end win =
t)))` will prevent the function from working.


Thanks,

Keith

(defun linum-update-current ()
  (when
      (and
        (not (minibufferp))
        (window-live-p (get-buffer-window (current-buffer))))
    (setq old-window-start (window-start))
    (setq old-window-end (window-end))
    (setq old-window-end-forced (window-end nil t))
    (when
        (and
          (not (< (point) old-window-start))
          (not (> (point) old-window-end))
          (not (> (point) old-window-end-forced)))
      (linum-update (current-buffer)))))

(defun linum-after-scroll (win _start)
  (when
      (and
        (not (> (point) (window-end win t))) ;; contingent upon =
`scroll-margin 0`
        old-window-start
        old-window-end
        old-window-end-forced
        (not (minibufferp))
        (window-live-p (get-buffer-window (current-buffer))))
    (when
        (or
          (< (point) old-window-start)
          (> (point) old-window-end)
          (> (point) old-window-end-forced))
      (let* (
          (new-window-start _start)
          (new-window-end (window-end win t)))
        (linum-update (window-buffer win))
        (setq old-window-start nil)
        (setq old-window-end nil)
        (setq old-window-end-forced nil)))))


---------------------------------------

On Jun 15, 2014, at 12:54 PM, Eli Zaretskii wrote:

>> Date: Sun, 15 Jun 2014 12:11:52 -0700
>> From: Keith David Bershatsky <esq@HIDDEN>
>>=20
>> Linum-mode could be made more efficient [...]
>=20
> Can I persuade you (and everyone else) to please forget linum-mode
> ever existed, and never to remember that?  If someone wants line
> numbers in Emacs, could they please use Stefan's nlinum-mode instead?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17787; Package emacs. Full text available.

Message received at 17787 <at> debbugs.gnu.org:


Received: (at 17787) by debbugs.gnu.org; 15 Jun 2014 19:55:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 15 15:55:10 2014
Received: from localhost ([127.0.0.1]:48522 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WwGWD-0007hm-Ah
	for submit <at> debbugs.gnu.org; Sun, 15 Jun 2014 15:55:09 -0400
Received: from mtaout22.012.net.il ([80.179.55.172]:33393)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1WwGWA-0007hD-BS
 for 17787 <at> debbugs.gnu.org; Sun, 15 Jun 2014 15:55:07 -0400
Received: from conversion-daemon.a-mtaout22.012.net.il by
 a-mtaout22.012.net.il (HyperSendmail v2007.08) id
 <0N78006007ABMZ00@HIDDEN> for 17787 <at> debbugs.gnu.org;
 Sun, 15 Jun 2014 22:54:59 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0N780068T7BM2GB0@HIDDEN>;
 Sun, 15 Jun 2014 22:54:59 +0300 (IDT)
Date: Sun, 15 Jun 2014 22:54:53 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#17787: 24.4.50;
 Making `linum-mode` more efficient -- no need to run multiple times.
In-reply-to: <m2bntuq96v.wl%esq@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Keith David Bershatsky <esq@HIDDEN>
Message-id: <83mwdeuewi.fsf@HIDDEN>
References: <m2bntuq96v.wl%esq@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 17787
Cc: 17787 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Sun, 15 Jun 2014 12:11:52 -0700
> From: Keith David Bershatsky <esq@HIDDEN>
> 
> Linum-mode could be made more efficient [...]

Can I persuade you (and everyone else) to please forget linum-mode
ever existed, and never to remember that?  If someone wants line
numbers in Emacs, could they please use Stefan's nlinum-mode instead?

linum-mode is a terrible idea squared.  It abuses post-command-hook.
It moves overlays and changes the window's display margins on the fly,
and by that kills almost every redisplay optimization (so don't try
using it if you are accustomed to many windows and many frames,
especially large ones).  It is evil.  We certainly shouldn't make it
more efficient.  It should die a horrible death.  Soon.

Thank you.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17787; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Jun 2014 19:12:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 15 15:12:26 2014
Received: from localhost ([127.0.0.1]:48508 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WwFqr-0006f8-7z
	for submit <at> debbugs.gnu.org; Sun, 15 Jun 2014 15:12:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42213)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <esq@HIDDEN>) id 1WwFqm-0006eq-Pm
 for submit <at> debbugs.gnu.org; Sun, 15 Jun 2014 15:12:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <esq@HIDDEN>) id 1WwFqa-0005C4-5n
 for submit <at> debbugs.gnu.org; Sun, 15 Jun 2014 15:12:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:33180)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <esq@HIDDEN>) id 1WwFqa-0005C0-2F
 for submit <at> debbugs.gnu.org; Sun, 15 Jun 2014 15:12:08 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43928)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <esq@HIDDEN>) id 1WwFqT-00064C-Ne
 for bug-gnu-emacs@HIDDEN; Sun, 15 Jun 2014 15:12:07 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <esq@HIDDEN>) id 1WwFqN-00053U-Cy
 for bug-gnu-emacs@HIDDEN; Sun, 15 Jun 2014 15:12:01 -0400
Received: from cobb.liquidweb.com ([50.28.13.150]:38354)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <esq@HIDDEN>) id 1WwFqN-000523-2o
 for bug-gnu-emacs@HIDDEN; Sun, 15 Jun 2014 15:11:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com;
 s=default; 
 h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To:From:Message-ID:Date;
 bh=s7Xd92yRbYG+4d+OBSVBnHC3d9t8oBV+H2C/CpmyEwo=; 
 b=EYh3ZFbm7BlyN9bND+4EEcswU98+WW3MijCpKR9BXjUhT6K3uP7XwAUwZAGC6l6ulwZPdKyljLPaAq/8fkHrWesE346NMMhnVdSTT/0R0j4qcuGybAwhzKRtyvH50jqa;
Received: from cpe-75-85-5-102.socal.res.rr.com ([75.85.5.102]:50584
 helo=MP.local) by cobb.liquidweb.com with esmtp (Exim 4.82)
 (envelope-from <esq@HIDDEN>) id 1WwFqI-000252-Sx
 for bug-gnu-emacs@HIDDEN; Sun, 15 Jun 2014 15:11:51 -0400
Date: Sun, 15 Jun 2014 12:11:52 -0700
Message-ID: <m2bntuq96v.wl%esq@HIDDEN>
From: Keith David Bershatsky <esq@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.4.50;
 Making `linum-mode` more efficient -- no need to run multiple times.
User-Agent: / () / () APEL/10.8 Emacs/24.4.50 (x86_64-apple-darwin10.8.0)
 MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by   - "")
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - cobb.liquidweb.com
X-AntiAbuse: Original Domain - gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - lawlist.com
X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry:
 lawlist|lawlist.com
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Linum-mode could be made more efficient by including conditions to ensure that it only runs one time, instead of 1 to 3 times.  To see exactly what I am talking about, a message can be placed immediately following the let-bound variables in the function `linum-update-window`

(message "point: %s | limit: %s" (point) limit)

This happens for a few reasons.  The `window-scroll-functions` hook is really only needed when point moves outside the visible window limits.  When point is greater than the first value of `(window-end win t)` reported by the initial run of the `window-scroll-functions` hook, the hook runs a second time -- presumably so that redisplay can do its job correctly.  When the `window-scroll-functions` hook runs the second time under that scenario, it gets it right -- i.e., the second time around the `(window-end win t)` reports the correct result.  So there is no point drawing and removing overlays the first time around when it has the wrong `(window-end win t)`.

In addition, the `post-command-hook` function is only needed when point stays within the visible limit limits.

Here is a minor mode that can be used to test the `window-start` and `window-end` values.  A similar system can be used for `linum-mode` -- i.e., use the `linum-update-window` from the `post-command-hook` when point stays within the visible window limits; and, when point moves outside those visible window limits, then use the `window-scroll-functions` hook -- however, limit `linum-update-window` so that it only runs when `(not (> (point) (window-end win t)))`.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; A minor-mode for testing `window-start` and `window-end` BEFORE visual redisplay.

(defvar old-window-start nil
"This local variable is set within the `post-command-hook`; and,
is also used by the `window-scroll-functions` hook.")
(make-variable-buffer-local 'old-window-start)

(defvar old-window-end nil
"This local variable is set within the `post-command-hook`; and,
is also used by the `window-scroll-functions` hook.")
(make-variable-buffer-local 'old-window-end)

(defvar old-window-end-forced nil
"This local variable is set within the `post-command-hook`; and,
is also used by the `window-scroll-functions` hook.")
(make-variable-buffer-local 'old-window-end-forced)

(defvar new-window-start nil
"This local variable is set within the `window-scroll-functions`.")
(make-variable-buffer-local 'new-window-start)

(defvar new-window-end nil
"This local variable is set within the `window-scroll-functions`.")
(make-variable-buffer-local 'new-window-end)

(defun test-post-command-hook ()
"NOT good for things like: `beginning-of-buffer`; `end-of-buffer`; `yank`; etc.
NOTE:  When using `this-command` in conjunction with the `post-command-hook`,
the `window-scroll-functions` hook would need to use `last-command`."
  (when
      (and
        (not (minibufferp))
        (window-live-p (get-buffer-window (current-buffer))))
    (setq old-window-start (window-start))
    (setq old-window-end (window-end))
    (setq old-window-end-forced (window-end nil t))
    (when
        (and
          (not (< (point) old-window-start))
          (not (> (point) old-window-end))
          (not (> (point) old-window-end-forced)))
      (message (concat
        "P.C.H. -- `point`: %s | "
        "`old-window-start`: %s | "
        "`old-window-end`: %s | "
        "`old-window-end-forced`: %s")
          (point)
          old-window-start
          old-window-end
          old-window-end-forced))))

(defun test-window-scroll-functions (win _start)
"Good for things like: `beginning-of-buffer`; `end-of-buffer`; `yank`; etc.
NOTE:  When using `this-command` in conjunction with the `post-command-hook`,
the `window-scroll-functions` hook would need to use `last-command`."
  (when
      (and
        (not (> (point) (window-end win t)))
        old-window-start
        old-window-end
        old-window-end-forced
        (not (minibufferp))
        (window-live-p (get-buffer-window (current-buffer))))
    (when
        (or
          (< (point) old-window-start)
          (> (point) old-window-end)
          (> (point) old-window-end-forced))
      (setq new-window-start _start)
      (setq new-window-end (window-end win t))
      (message (concat
        "W.S.F. -- `point`: %s | "
        "`new-window-start`: %s | "
        "`new-window-end`: %s")
          (point)
          new-window-start
          new-window-end)
        (setq old-window-start nil)
        (setq old-window-end nil)
        (setq old-window-end-forced nil))))

(define-minor-mode test-mode
"A minor-mode for testing `window-start` and `window-end` BEFORE visual redisplay."
  :init-value nil
  :lighter " 𝓣𝓔𝓢𝓣"
  :keymap nil
  :global nil
  (cond
    (test-mode
      (condition-case error
        (progn
          (setq scroll-conservatively 101)
          (setq scroll-margin 0)
          (add-hook 'post-command-hook 'test-post-command-hook nil t)
          (add-hook 'window-scroll-functions 'test-window-scroll-functions nil t)
          (message "Turned ON `test-mode`."))
        (error
         (test-mode 0)
         (signal (car error) (cdr error)))))
    ((not test-mode)
      (remove-hook 'post-command-hook 'test-post-command-hook t)
      (remove-hook 'window-scroll-functions 'test-window-scroll-functions t)
      (message "Turned OFF `test-mode`.") )))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


In GNU Emacs 24.4.50.1 (x86_64-apple-darwin10.8.0, NS appkit-1038.36 Version 10.6.8 (Build 10K549))
 of 2014-06-01 on MP.local
Repository revision: 117215 lekktu@HIDDEN
Windowing system distributor `Apple', version 10.3.1038
Configured using:
 `configure --with-ns'

Configured features:
ACL LIBXML2 ZLIB

Important settings:
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  bc-mode: t
  as-mode: t
  ds-mode: t
  ml-mode: t
  sb-mode: t
  sd-mode: t
  tb-mode: t

Recent input:
s-N s-w k <escape> x e m a c s - b u g - r e p o r 
t <return> <S-s-left> r e p o r t - e m a c s - b u 
g <return>

Recent messages:
Updating addresses...done
Starting new Ispell process /Users/HOME/.0.data/.0.emacs/elpa/bin/aspell with english dictionary...
Turned ON `fs-mode`.
Turned ON `vl-mode`.
Type C-c C-x C-z to exit MIME mode, and type C-c C-x ? to get help.
Saving...done
Mark set
[k]ill or [s]ave draft?
Loading msgdb for +/Users/HOME/.0.data/.0.emacs/.0.mail/msgdb/imap/mail.lawlist.com/lawlist/INBOX.Drafts/spool...done
*beep*

Load-path shadows:
/Users/HOME/.0.data/.0.emacs/.0.flim/md4 hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/md4
/Users/HOME/.0.data/.0.emacs/.0.flim/hex-util hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/hex-util
/Users/HOME/.0.data/.0.emacs/.0.flim/sasl hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/net/sasl
/Users/HOME/.0.data/.0.emacs/.0.flim/sasl-ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/net/sasl-ntlm
/Users/HOME/.0.data/.0.emacs/.0.flim/sasl-digest hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/net/sasl-digest
/Users/HOME/.0.data/.0.emacs/.0.flim/sasl-cram hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/net/sasl-cram
/Users/HOME/.0.data/.0.emacs/.0.flim/ntlm hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/net/ntlm
/Users/HOME/.0.data/.0.emacs/.0.flim/hmac-md5 hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/net/hmac-md5
/Users/HOME/.0.data/.0.emacs/.0.flim/hmac-def hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/net/hmac-def
/Users/HOME/.0.data/.0.emacs/.0.wl/rfc2368 hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/mail/rfc2368
/Users/HOME/.0.data/.0.emacs/.0.wl/utf7 hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/gnus/utf7
/Users/HOME/.0.data/.0.emacs/.0.simi/smime hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/gnus/smime
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/obsolete/pgg
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-pgp5 hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp5
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-pgp hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/obsolete/pgg-pgp
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-parse hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/obsolete/pgg-parse
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-gpg hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/obsolete/pgg-gpg
/Users/HOME/.0.data/.0.emacs/.0.simi/pgg-def hides /Users/HOME/.0.data/.0.emacs/Emacs_06_01_2014.app/Contents/Resources/lisp/obsolete/pgg-def

Features:
(shadow emacsbug modb-legacy disp-table wl-mime mime-edit pgg-parse
pccl pccl-20 signature mime-setup mail-mime-setup semi-setup mime-pgp
pgg-def mime-play filename mime-image modb-standard elmo-imap4
bbdb-autoloads lawlist-wl wl-demo wl-draft eword-encode wl-template
sendmail elmo-net elmo-cache elmo-map elmo-dop wl-news wl-address
wl-thread wl-folder wl wl-e21 wl-spam wl-action wl-summary wl-refile
wl-util pp elmo-flag elmo-localdir wl-message elmo-mime mmelmo-buffer
mmelmo-imap mime-view mime-conf calist semi-def mmimap mime-parse
mmbuffer mmgeneric elmo-filter elmo-multi elmo-spam elsp-header
elsp-generic elmo elmo-signal wl-highlight wl-vars wl-version
elmo-msgdb modb modb-generic modb-entity luna mime elmo-util emu
invisible inv-23 poem poem-e20 poem-e20_3 eword-decode std11 elmo-date
elmo-vars elmo-version w3m-load mime-w3m w3m browse-url doc-view
jka-compr image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl
w3m-favicon w3m-image w3m-proc w3m-util smiley gnus-art mm-uu mml2015
mm-view mml-smime smime savehist lawlist-vr-hr lawlist-whitespace
lawlist-github conf-mode log-edit add-log find-lisp package esh-var
esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups
eshell esh-module esh-mode esh-util dired-x view tramp tramp-compat
tramp-loaddefs trampver server grep epa epg epg-config diff-mode
autorevert filenotify log-view pcvs-util ido time-stamp vc-git vc
vc-dispatcher ediff-merg ediff-wind ediff-diff ediff-mult ediff-help
ediff-init ediff-util ediff rx ert ewoc debug eieio-base
lawlist-calculator ps-print ps-def lpr lawlist-flyspell bbdb timezone
find-func dired-aux lawlist-yasnippet help-mode multiple-cursors
mc-separate-operations rectangular-region-mode mc-mark-more thingatpt
mc-cycle-cursors mc-edit-lines multiple-cursors-core rect saveplace
lawlist-tex-mode pcase compile shell pcomplete comint ansi-color ring
skeleton compare-w lawlist-text-mode lawlist-desktop frameset
lawlist-tabbar lawlist-org lawlist-calendar edmacro kmacro derived
lawlist-toodledo advice url-http url-auth url-gw url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util url-parse auth-source eieio byte-opt bytecomp byte-compile
cconv eieio-core password-cache url-vars mailcap json xml noutline
outline easy-mmode gnus-sum gnus-group gnus-undo gnus-start gnus-cloud
nnimap nnmail mail-source tls utf7 mel path-util mime-def alist
mcharset mcs-20 mcs-e20 pcustom pces pces-e20 pces-20 broken poe pym
static apel-ver product netrc nnoo parse-time gnus-spec gnus-int
gnus-range message cl-macs dired format-spec rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus
gnus-ems nnheader gnus-util mail-utils mm-util help-fns mail-prsvr
wid-edit cl gv cl-loaddefs cl-lib time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
cocoa ns multi-tty emacs)

Memory information:
((conses 16 801432 72133)
 (symbols 48 56758 0)
 (miscs 40 89 201)
 (strings 32 117816 17437)
 (string-bytes 1 3936631)
 (vectors 16 41143)
 (vector-slots 8 728265 36624)
 (floats 8 1012 201)
 (intervals 56 3671 65)
 (buffers 960 13))




Acknowledgement sent to Keith David Bershatsky <esq@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#17787; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.