From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Menus with more items than the TTY can display Date: Fri, 18 Oct 2013 09:55:35 +0200 Message-ID: <5260E977.6040807@gmx.at> References: <83a9igrqq1.fsf@gnu.org> <5257E3B3.4070508@yandex.ru> <834n8nswas.fsf@gnu.org> <831u3nrhf9.fsf@gnu.org> <525D8938.6080208@gmx.at> <83hacipd88.fsf@gnu.org> <525E43D8.6060109@gmx.at> <83bo2pp7kd.fsf@gnu.org> <525ED0CE.9010001@gmx.at> <834n8hozdu.fsf@gnu.org> <525EDC1A.9070201@gmx.at> <83y55tnii4.fsf@gnu.org> <525FADCF.5010700@gmx.at> <83ob6nonry.fsf@gnu.org> <52601ACA.9070603@gmx.at> <83iowvokoj.fsf@gnu.org> <526025E8.20009@gmx.at> <83fvrzoe6o.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1382082970 28023 80.91.229.3 (18 Oct 2013 07:56:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 07:56:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 18 09:56:13 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VX4um-0000iI-Hl for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 09:56:08 +0200 Original-Received: from localhost ([::1]:56193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX4um-000510-7w for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 03:56:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX4uP-0004f2-5A for emacs-devel@gnu.org; Fri, 18 Oct 2013 03:55:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VX4uH-00088J-Ps for emacs-devel@gnu.org; Fri, 18 Oct 2013 03:55:45 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:64360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX4uH-00086s-Dy for emacs-devel@gnu.org; Fri, 18 Oct 2013 03:55:37 -0400 Original-Received: from [62.47.33.61] ([62.47.33.61]) by mail.gmx.com (mrgmx002) with ESMTPA (Nemesis) id 0LmbVT-1W6xtD2zhr-00aD6i for ; Fri, 18 Oct 2013 09:55:36 +0200 In-Reply-To: <83fvrzoe6o.fsf@gnu.org> X-Provags-ID: V03:K0:Fs9AzFBmhGb2m/lsBYohhMdp++a6nHQODDzDcU1mVJn8BJ8cBpS C8PE1fuJ/77hwNq++p4VqaOBV49RmWL5ML/+Dxn60ZPk4Tcp365Lw5wH1B1jDsY7YS+dIfg g4oWTOONWk5l26hNVpydhrD2r9vTepGwGcOet+WYFsqoAzv87hAqj3irelLPMrlEOUCvAPe 6gruerliA8l9MDlSVSpfg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164291 Archived-At: >> Why _also_ ? The artefacts do not appear when I disallow resizing the >> echo area - either by setting `resize-mini-windows' to nil or >> `max-mini-window-height' to 1. No need to also suppress the help-echo. > > But you say that disabling the help echo exacerbates the problem, so > maybe it will now appear even when the mini-window is not resized? > Did you try? I did now - interesting. When I disable the help echo and set `resize-mini-windows' to nil, the number of lines in the menu that get highlighted increases when hitting up and down to navigate the menu. No further problems. When I disable the help-echo and set `max-mini-window-height' to 1, the number of lines that get wrongly highlighted also increases and, in addition, the echo area occasionally grows by a couple of lines but no text appears in it. If the minibuffer window _is_ resized, then quitting the menu via F10 makes the right half of the frame appear empty. The artefacts mentioned earlier do not show up in either of these cases. And I checked once more that with term.c unaltered, either setting `resize-mini-windows' to nil or `max-mini-window-height' to 1 removes the problem. Surprisingly, setting `resize-mini-windows' to t also removes the problem completely. So somehow the problem shows up when two conditions are met: (1) `resize-mini-windows' equals 'grow-only somewhen during redisplay, (2) the value of `max-mini-window-height' allows resizing the echo area. martin