From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: A fringe indicator that shows the last/first line before scrolling Date: Thu, 28 Feb 2008 18:39:03 +0100 Message-ID: <87d4qhkmko.fsf@member.fsf.org> References: <8763w9mhdm.fsf@member.fsf.org> <64bfe3d50802280555l626d1dd4o9eb002f7d6c09681@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 1204220366 22218 80.91.229.12 (28 Feb 2008 17:39:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 17:39:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 18:39:52 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 1JUmjU-0005xi-0S for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 18:39:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUmix-00052s-HT for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 12:39:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUmir-0004ys-NQ for emacs-devel@gnu.org; Thu, 28 Feb 2008 12:39:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUmip-0004vE-TF for emacs-devel@gnu.org; Thu, 28 Feb 2008 12:39:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUmip-0004v0-Ms for emacs-devel@gnu.org; Thu, 28 Feb 2008 12:39:07 -0500 Original-Received: from out3.smtp.messagingengine.com ([66.111.4.27]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUmip-00016n-Cl for emacs-devel@gnu.org; Thu, 28 Feb 2008 12:39:07 -0500 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id D2B76A4011 for ; Thu, 28 Feb 2008 12:39:06 -0500 (EST) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 28 Feb 2008 12:39:06 -0500 X-Sasl-enc: dfEeXIp9f3IYDEANmDC/YeKFyiDDtJCyWusgN8nZZafG 1204220346 Original-Received: from localhost (dslb-084-063-044-169.pools.arcor-ip.net [84.63.44.169]) by mail.messagingengine.com (Postfix) with ESMTPA id 26A79E67E for ; Thu, 28 Feb 2008 12:39:05 -0500 (EST) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Thu, 28 Feb 2008 12:19:22 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) 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:90742 Archived-At: Stefan Monnier writes: >> I like this idea, I tend to have the same problem. >> I wonder if this could be implemented in plain Emacs Lisp? > > Yes, it must be possible. Good to hear. > Basically, use a pre-command-hook to remember window-start and > window-end, and a post-command-hook where you place visual indicators > at those 2 remembered spots. I've read through (info "(elisp)Fringes") and used `C-u C-h a fringe' but I cannot find out how to add new indicators to the fringes at a specific position. Am I missing something? Bye, Tassilo