From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: A fringe indicator that shows the last/first line before scrolling Date: Thu, 28 Feb 2008 20:55:45 -0500 Message-ID: References: <8763w9mhdm.fsf@member.fsf.org> <64bfe3d50802280555l626d1dd4o9eb002f7d6c09681@mail.gmail.com> <47C6D74C.6010501@gmail.com> <8e24944a0802280834v3cf8e2acxd7292feacd4c470b@mail.gmail.com> <47C6F4F8.5040703@gmail.com> <8e24944a0802281001l7022dedfg19846275cba15ef0@mail.gmail.com> <47C6F9A5.5050406@gmail.com> <8e24944a0802281018v6804526yad1bd02191ede989@mail.gmail.com> <47C6FE9F.1060800@gmail.com> <8e24944a0802281518x19bcbfd5ndf2ce1ca55a77dc@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204250169 31011 80.91.229.12 (29 Feb 2008 01:56:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Feb 2008 01:56:09 +0000 (UTC) Cc: David O'Toole , "Lennart Borgman \(gmail\)" , emacs-devel@gnu.org To: "David De La Harpe Golden" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 29 02:56:34 2008 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 1JUuU9-0003pH-Bh for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 02:56:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUuTc-0006Iq-Tu for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 20:55:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUuTY-0006IX-J8 for emacs-devel@gnu.org; Thu, 28 Feb 2008 20:55:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUuTW-0006Hv-Rz for emacs-devel@gnu.org; Thu, 28 Feb 2008 20:55:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUuTW-0006Hf-H2 for emacs-devel@gnu.org; Thu, 28 Feb 2008 20:55:50 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUuTS-0000po-SO; Thu, 28 Feb 2008 20:55:46 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CANz0xkdMCpz5Wmdsb2JhbACQZgEgnUGBAg X-IronPort-AV: E=Sophos;i="4.25,423,1199682000"; d="scan'208";a="15377817" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 28 Feb 2008 20:55:45 -0500 Original-Received: from pastel.home ([76.10.156.249]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id JDG82845; Thu, 28 Feb 2008 20:55:45 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 761177FA7; Thu, 28 Feb 2008 20:55:45 -0500 (EST) In-Reply-To: <8e24944a0802281518x19bcbfd5ndf2ce1ca55a77dc@mail.gmail.com> (David De La Harpe Golden's message of "Thu, 28 Feb 2008 23:18:20 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:90807 Archived-At: > So try this (on X11 at least): > (add-hook 'post-command-hook > (lambda () (message "post-command-hook %s" (current-time)))) > Then activate the region with the mouse, scroll with scroll bar.. no update. > This might just be a bug, or intentional (though kind of inconsistent) > behaviour, I don't know. It's neither. It's just the result of how the code is written: there's only one command (the mouse-drag) which happens to read several events waiting for the event that marks the end of the drag. Usually each event is associated with a command (modulo commands bound to event sequences like C-x C-x), but it's not necessarily the case. There are other cases where scrolling can happen without running post-command-hook, e.g. scrolling triggered by process filters (e.g. scrolling in the *compilation* buffer or in tail-mode buffers). Stefan