From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: A fringe indicator that shows the last/first line before scrolling Date: Fri, 29 Feb 2008 22:33:14 +0100 Message-ID: <47C87A1A.6090006@gmail.com> References: <8763w9mhdm.fsf@member.fsf.org> <8e24944a0802281001l7022dedfg19846275cba15ef0@mail.gmail.com> <47C6F9A5.5050406@gmail.com> <8e24944a0802281018v6804526yad1bd02191ede989@mail.gmail.com> <47C6FE9F.1060800@gmail.com> <8e24944a0802281518x19bcbfd5ndf2ce1ca55a77dc@mail.gmail.com> <8e24944a0802281850l28ab99fcrc92f02d0399630aa@mail.gmail.com> <8e24944a0802290957i12765c67y8433cae9e8a8f242@mail.gmail.com> <8e24944a0802291304m281c72efx9e00a8923ace862a@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204320838 2082 80.91.229.12 (29 Feb 2008 21:33:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Feb 2008 21:33:58 +0000 (UTC) Cc: Tassilo Horn , David O'Toole , Stefan Monnier , 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 22:34:23 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 1JVCrs-0003HR-0G for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 22:34:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVCrL-0000uQ-Fw for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 16:33:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVCrG-0000u1-Mi for emacs-devel@gnu.org; Fri, 29 Feb 2008 16:33:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVCrF-0000tN-Ob for emacs-devel@gnu.org; Fri, 29 Feb 2008 16:33:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVCrF-0000tH-L8 for emacs-devel@gnu.org; Fri, 29 Feb 2008 16:33:33 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JVCrB-0007gd-OC; Fri, 29 Feb 2008 16:33:30 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:64739 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JVCr6-0007lK-5p; Fri, 29 Feb 2008 22:33:25 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <8e24944a0802291304m281c72efx9e00a8923ace862a@mail.gmail.com> X-Antivirus: avast! (VPS 080228-0, 2008-02-28), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JVCr6-0007lK-5p. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JVCr6-0007lK-5p 9a17b005d7a9db56e310ee4feb4c3cb8 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:90914 Archived-At: David De La Harpe Golden wrote: >> I wanted to hide the >> fringe marks conditionally while they align with the real window-start >> and window-end (they're not useful then), > > Huh. Of course, what's an apparently viable workaround? Another idle > timer! Yay! > > Version 2 attached - made it a global minor mode. > > Probably lots of issues, most major apart from previous mail's > "am I using fringes and overlays right" question: > > really should use separate overlay for each window (maybe weak hash > table needed, or is there a way to hang things off windows I've > missed?), right now, only shows in current window, which is a pity > because it'd probably be particularly nice for scroll-other-window > situations. (overlay-put overlay 'window the-window) > nongui terminals and gui terminals without fringes, could use > alternate highlighting strategies I guess. > > If you scroll fast, then what's fringe marked is of course not the > immediately preceding window position, but the one from when emacs was > last idle. This is both desirable and undesirable, depending on > whether you consider a series of consecutive scroll commands as one > overall scroll operation or separate scroll operations, so not sure if > should be fixed, maybe a post-command-hook could be used so that > depending on user prefs, page-scrolling could fringe mark anew each > time while scroll-bar-scrolling only after the lag, or whatever makes > sense. If you press page-down several times the mark disappears.