From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: volodyan Newsgroups: gmane.emacs.help Subject: Re: Scroll preserving point position - other meaning Date: Thu, 15 Jan 2009 13:27:39 -0800 (PST) Message-ID: <21487298.post@talk.nabble.com> References: <21472671.post@talk.nabble.com> <1232037604.197929@arno.fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232055580 26594 80.91.229.12 (15 Jan 2009 21:39:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2009 21:39:40 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 15 22:40:51 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LNZxK-0003Hr-7v for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 22:40:50 +0100 Original-Received: from localhost ([127.0.0.1]:32789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNZw3-0004vn-HP for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Jan 2009 16:39:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNZkg-0006cH-3h for help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 16:27:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNZkd-0006bE-VP for Help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 16:27:45 -0500 Original-Received: from [199.232.76.173] (port=49393 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNZkd-0006b6-Q5 for Help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 16:27:43 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:35954) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LNZkd-0007Bk-A3 for Help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 16:27:43 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LNZkZ-0008Fp-AH for Help-gnu-emacs@gnu.org; Thu, 15 Jan 2009 13:27:39 -0800 In-Reply-To: <1232037604.197929@arno.fh-trier.de> X-Nabble-From: volodyan@gmail.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61377 Archived-At: What should I do with this code? I've just started learning emacs, but scrolling is so basic that I hope to make it as I like before I graduate my emacs studies... This is the emacs I use: GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.14.3) ------------------------------ Rant follows... I cannot think of any use a point getting stuck somewhere on the edge of the display or jump randomly when I scroll with a mouse. Every other editor I've used waits for a left mouse click to position the point. Only arrows, characters and mouse click move the point. I understand that some users like the current behavior, just hope that I will be able to customize it. Ability to customize supposed to be the strongest point of emacs and the first response that IT JUST CANNOT BE DONE really frustrated me. For example, as wrote earlier if a block of code is longer than a screen, I can click on its closing bracket to highlight the region. But I just cannot reach to see where the block starts as the highlighting will turn off as soon as the point touches the edge of the screen. End of rant. Thanks, Vlad ----------------------------------------------------------------------------- I think one could write something like a modal scrolling, like in this pseudo elisp. (defun scroll-modal-pre-command-hook () "Pseudocode!" (when (eq this-command 'scroll-bar-command) (save-window-excursion (while (scroll-bar-command-p) (apply 'scroll-command) (read-event))))) I don't know if that's what eveybody has in mind here. -ap -- View this message in context: http://www.nabble.com/Scroll-preserving-point-position---other-meaning-tp21472671p21487298.html Sent from the Emacs - Help mailing list archive at Nabble.com.