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: Fri, 05 Jan 2007 02:05:32 -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 1167980763 3169 80.91.229.12 (5 Jan 2007 07:06:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Jan 2007 07:06:03 +0000 (UTC) Cc: Kevin Rodgers , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 05 08:06:00 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 1H2j9K-0004U6-VX for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 08:05:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2j9K-0003Tj-Fr for ged-emacs-devel@m.gmane.org; Fri, 05 Jan 2007 02:05:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2j97-0003Ru-SA for emacs-devel@gnu.org; Fri, 05 Jan 2007 02:05:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2j95-0003QO-Qm for emacs-devel@gnu.org; Fri, 05 Jan 2007 02:05:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2j95-0003QL-MU for emacs-devel@gnu.org; Fri, 05 Jan 2007 02:05:43 -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 1H2j94-0006CN-CW; Fri, 05 Jan 2007 02:05:42 -0500 Original-Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 05 Jan 2007 02:05:43 -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 MSV99944; Fri, 5 Jan 2007 02:05:39 -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; 05 Jan 2007 02:05:39 -0500 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 04 Jan 2007 17:34:34 -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.0A090209.459DF713.0027,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:64809 Archived-At: Richard Stallman writes: > I installed your patch, but the parens needed some fixing. This has a problem; point is moved to the beginning of the window while the momentary string is displayed, and is still there after the momentary string is removed. Previously, point stayed where it was when momentary-string-display was invoked. The previous behavior is preferable, but the current behavior is not dangerous, just annoying. I tested this with ada-prj. Recipe: emacs -Q M-x ada-mode M-x ada-prj-edit (point is now on a [Help] button) (momentary string is displayed) (momentary string is removed) Looking at the code, the problem is the test for 'message start scrolled off the screen'; it should restore point if the message was _not_ scrolled off. -- -- Stephe