From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: Preserving sanity in Emacs [Re: rampant region highlighting] Date: Mon, 07 Apr 2008 02:19:48 +0100 Message-ID: <47F976B4.2070301@harpegolden.net> References: <47F945C3.1060103@harpegolden.net> <20080406230056.GB5362@muc.de> <47F961D2.7080002@harpegolden.net> <47F9639A.5090400@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207531244 18413 80.91.229.12 (7 Apr 2008 01:20:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2008 01:20:44 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org, Glenn Morris To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 07 03:21:15 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 1Jig2t-0000py-F4 for ged-emacs-devel@m.gmane.org; Mon, 07 Apr 2008 03:21:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jig2G-0000AL-Aq for ged-emacs-devel@m.gmane.org; Sun, 06 Apr 2008 21:20:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jig1g-0007xe-Vl for emacs-devel@gnu.org; Sun, 06 Apr 2008 21:20:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jig1d-0007so-1R for emacs-devel@gnu.org; Sun, 06 Apr 2008 21:20:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jig1c-0007sa-OC for emacs-devel@gnu.org; Sun, 06 Apr 2008 21:19:56 -0400 Original-Received: from harpegolden.net ([65.99.215.13]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jig1Z-0001xe-Bl; Sun, 06 Apr 2008 21:19:53 -0400 Original-Received: from golden1.harpegolden.net (86-43-160-191.b-ras2.prp.dublin.eircom.net [86.43.160.191]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 2" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 96765843F; Mon, 7 Apr 2008 01:19:51 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080110) In-Reply-To: <47F9639A.5090400@gmail.com> X-Enigmail-Version: 0.95.0 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:94542 Archived-At: Lennart Borgman (gmail) wrote: >>> The point is the place on the screen that you're looking at, where new >>> text appears when you type. Are you suggesting that when you type, you >>> shouldn't see anything, because "point" isn't on the screen? >>> >> >> Nope, jump-scroll back to insertion point handily addresses that. :-) > > And C-x C-x too? Not 100% sure what you mean: You could have some commands cause a display to jump back to point, others not - as Martin's scroll-restore.el implemented. I imagine C-x C-x would be one of the ones that should warp the display to wherever the point ends up. C-x C-x as a "workaround" (or perhaps "usual emacsy way to do it"!) in existing emacs for scrolling warping the point is quite relevant - obviously, if you just have the slightest foresight and get into the habit of setting a mark before ever scrolling away into the wide blue yonder*, then you can always just warp back to the precise position the point was at before you scrolled with C-u C-SPC and C-x C-x as appropriate to reestablish your pre-scrolling point and mark positions. (of course, that kinda leads into Thomas Lord's point about emacs conflating marking and region-selecting mechanisms... Aside: I wonder if the mark ring would be more appreciated as a bookmarking mechanism if it were visually represented, maybe little display blips.) * Why not just open another frame/window on the same buffer? Why not indeed?