From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Tury Newsgroups: gmane.emacs.help Subject: Re: next-line + recenter (- redraw frame)? Date: Mon, 06 Mar 2006 08:36:28 GMT Organization: Nokia Message-ID: <19aniuq151di2$.1qyujo75j1w3b$.dlg@40tude.net> References: <5xlh1kdb5ttw$.1eomol2tpwh55.dlg@40tude.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141687333 12004 80.91.229.2 (6 Mar 2006 23:22:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 23:22:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 07 00:22:13 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGP1d-0000cR-Fn for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2006 00:22:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGP1c-00043y-Rb for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Mar 2006 18:22:00 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.bahnhof.se!195.197.54.117.MISMATCH!feeder1.news.jippii.net!nntp.inet.fi!inet.fi!newsfeed1.nokia.com!news1.nokia.com!news2.nokia.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: 40tude_Dialog/2.0.15.1 Original-Lines: 39 Original-NNTP-Posting-Host: 172.24.170.68 Original-X-Complaints-To: newsmaster@nokia.com Original-X-Trace: news2.nokia.com 1141634188 172.24.170.68 (Mon, 06 Mar 2006 10:36:28 EET) Original-NNTP-Posting-Date: Mon, 06 Mar 2006 10:36:28 EET Original-Xref: shelby.stanford.edu gnu.emacs.help:137958 Original-To: help-gnu-emacs@gnu.org 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:33585 Archived-At: On Fri, 3 Mar 2006 23:20:55 +0100, Peter Dyballa wrote: > Please compare it to scroll-down-in-place in lisp/term/sun.el by Jeff > Peck! > > (defun scroll-down-in-place (n) > (interactive "p") > (previous-line n) > (scroll-down n)) > > (defun scroll-up-in-place (n) > (interactive "p") > (next-line n) > (scroll-up n)) Hi, thanks for the info! This is again really almost the same as I wanted. (Recenter is not so important, maybe scroll- is better.) However this has a "big" disadvantage: it forgets the correct column always. The problem is in next-line (more exactly: line-move-1) as I mentioned earlier, I know... What do you think: is it realistic to modify simple.el "officially" to eliminate this "bug"? I think we would have a variable column-keeping-line-moves-list or something similar what would tell what commands should be treated as now next-line and previous-line. Its default could be '(next-line previous-line), so we would have backword compatibility. After this, if the user adds e.g. scroll-up-in-place to this list, then scroll-up-in-place would work "correctly" in the above form. (I can imagine this is not the required functionality for scroll-up-in-place, but it is just an example here). What should I do if I want to propose this "officially"? I see that simple.el's maintainer is FSF... Br, P