From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: minibuffer and scroll-conservatively Date: Mon, 27 Jun 2005 12:29:08 +0200 Message-ID: References: <42B8367C.9040500@soem.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1119868693 4242 80.91.229.2 (27 Jun 2005 10:38:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 10:38:13 +0000 (UTC) Cc: Lars Hansen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 27 12:38:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dmqzj-0007Le-E7 for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 12:37:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dmr7K-0007aR-Qx for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 06:45:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dmqup-0003zh-TU for emacs-devel@gnu.org; Mon, 27 Jun 2005 06:32:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dmquk-0003xL-0s for emacs-devel@gnu.org; Mon, 27 Jun 2005 06:32:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dmquj-0003vc-9C for emacs-devel@gnu.org; Mon, 27 Jun 2005 06:32:29 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dmqw3-0007XA-Oz; Mon, 27 Jun 2005 06:33:52 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepc.post.tele.dk (Postfix) with SMTP id 0F258262846; Mon, 27 Jun 2005 12:29:27 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sun, 26 Jun 2005 00:46:14 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:39645 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39645 "Richard M. Stallman" writes: > Start todays emacs with -Q and set scroll-conservatively to some > non-zero number, say 1. > Then type eg. M-x ABC. Now the minibuffer shows "M-x ABC" as expecte= d. > But if you type the Danish character A-ring (a capital A with a ring > above) everything seems to disappear from the minibuffer. > > I tried this under X, using the Emacs input method Latin-1-Postfix to > insert the =C3=85, and the failure happened. What occurred was that the > minibuffer contents all scrolled off the top of the window. > > I think the reason for this is that the =C3=85 character is taller than > ordinary letters; taller, in fact, than the height of the window. > I think this confuses scrolling calculations so that they believe > that character doesn't fit on the screen while allowing point > to be visible. > > Kim, could you investigate this and fix it? Can you try this patch, to see if the result is acceptable... There are still problems: If I enter M-x AB=C3=85jg, the result is not perfect -- but what's the alternative? *** xdisp.c 26 Jun 2005 23:25:32 +0200 1.1028 --- xdisp.c 27 Jun 2005 12:24:09 +0200=09 *************** *** 11294,11300 **** window_height =3D window_box_height (w); if (row->height >=3D window_height) { ! if (!force_p || w->vscroll) return 1; } return 0; --- 11294,11300 ---- window_height =3D window_box_height (w); if (row->height >=3D window_height) { ! if (!force_p || MINI_WINDOW_P (w) || w->vscroll) return 1; } return 0; *************** *** 12729,12735 **** } =20=20 /* Don't let the cursor end in the scroll margins. */ ! if (check_margins) { int this_scroll_margin, cursor_height; =20=20 --- 12729,12736 ---- } =20=20 /* Don't let the cursor end in the scroll margins. */ ! if (check_margins ! && !MINI_WINDOW_P (w)) { int this_scroll_margin, cursor_height; --=20 Kim F. Storm http://www.cua.dk