From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: momentary-string-display Date: Sat, 06 Jan 2007 02:36:13 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168069011 30339 80.91.229.12 (6 Jan 2007 07:36:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2007 07:36:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 06 08:36:48 2007 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 1H366e-00048Q-Av for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2007 08:36:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H366d-0004OZ-Oo for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2007 02:36:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H366T-0004OT-3E for emacs-devel@gnu.org; Sat, 06 Jan 2007 02:36:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H366Q-0004OH-IY for emacs-devel@gnu.org; Sat, 06 Jan 2007 02:36:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H366Q-0004OE-AJ for emacs-devel@gnu.org; Sat, 06 Jan 2007 02:36:30 -0500 Original-Received: from [207.172.157.102] (helo=smtp02.lnh.mail.rcn.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H366P-0004Ou-1B; Sat, 06 Jan 2007 02:36:29 -0500 Original-Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 06 Jan 2007 02:36:26 -0500 Original-Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id MSY88798; Sat, 6 Jan 2007 02:36:21 -0500 (EST) Original-Received: from 208-59-165-113.c3-0.slvr-ubr1.lnh-slvr.md.cable.rcn.com (HELO ACS1100007992) ([208.59.165.113]) by smtp01.lnh.mail.rcn.net with ESMTP; 06 Jan 2007 02:36:22 -0500 Original-To: rms@gnu.org, emacs-devel@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 05 Jan 2007 21:54:29 -0500") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) X-Junkmail-Status: score=10/50, host=mr02.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090208.459F4FC2.0005,ss=1,fgs=0, ip=207.172.4.11, so=2006-05-09 23:27:51, dmn=5.2.125/2006-10-10 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:64864 Archived-At: Richard Stallman writes: > Does this patch fix that bug? No, since the problem is the "move-to-window-line". This fixes it; there may be a more elegant way: Index: subr.el =================================================================== RCS file: /sources/emacs/emacs/lisp/subr.el,v retrieving revision 1.542 diff -c -r1.542 subr.el *** subr.el 5 Jan 2007 17:49:43 -0000 1.542 --- subr.el 6 Jan 2007 07:35:08 -0000 *************** *** 1905,1915 **** (recenter (/ (window-height) 2))) ;; If that pushed message start off the screen, ;; scroll to start it at the top of the screen. ! (move-to-window-line 0) ! (if (> (point) pos) ! (progn ! (goto-char pos) ! (recenter 0))) (message (or message "Type %s to continue editing.") (single-key-description exit-char)) (let (char) --- 1905,1917 ---- (recenter (/ (window-height) 2))) ;; If that pushed message start off the screen, ;; scroll to start it at the top of the screen. ! (let ((start-pos (point))) ! (move-to-window-line 0) ! (if (> (point) pos) ! (progn ! (goto-char pos) ! (recenter 0)) ! (goto-char start-pos))) (message (or message "Type %s to continue editing.") (single-key-description exit-char)) (let (char) -- -- Stephe