From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: linum.el? Date: Thu, 27 Dec 2007 08:42:05 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1198762947 19139 80.91.229.12 (27 Dec 2007 13:42:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2007 13:42:27 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Markus Triska Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 27 14:42:40 2007 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 1J7t0L-0000Ci-4k for ged-emacs-devel@m.gmane.org; Thu, 27 Dec 2007 14:42:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7t00-0001uP-8p for ged-emacs-devel@m.gmane.org; Thu, 27 Dec 2007 08:42:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J7szv-0001tk-2O for emacs-devel@gnu.org; Thu, 27 Dec 2007 08:42:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J7szu-0001tI-MO for emacs-devel@gnu.org; Thu, 27 Dec 2007 08:42:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J7szu-0001tF-EN for emacs-devel@gnu.org; Thu, 27 Dec 2007 08:42:06 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J7szu-0004c0-59 for emacs-devel@gnu.org; Thu, 27 Dec 2007 08:42:06 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1J7szt-0006aH-L4; Thu, 27 Dec 2007 08:42:05 -0500 In-reply-to: (message from Markus Triska on Wed, 26 Dec 2007 17:09:49 +0100) X-detected-kernel: by monty-python.gnu.org: 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:85506 Archived-At: > can linum.el do the job using `set-window-redisplay-end-trigger' > instead of this hook? It doesn't seem so to me. Why doesn't it work? It seems to be intended for this job. In the DEFVAR_LISP line, I think it should read "&Vwindow..." instead of "Vwindow...". Also, the new approach doesn't necessarily reach a fixpoint, i.e., the number of restarts can be unbounded. That is true. The code should probably set a flag so that the hook doesn't run a second time; that will be right as long as the hook functions are sufficiently tame, and if they aren't, at least it won't mess up internally. It still fails to trigger (at least) on widening and when jumping to the beginning of buffers. Could it be changed to trigger then too? That surprises me; it seems to be trying to detect that. I think we should first try to make `set-window-redisplay-end-trigger' do the job, because if it does, it will do a better (more efficient) job. Why do you think that won't work? If you're right, I'll work more on this patch.