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: Thu, 17 Oct 2013 19:13:46 +0200 Message-ID: <52601ACA.9070603@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> 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 1382030106 20050 80.91.229.3 (17 Oct 2013 17:15:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Oct 2013 17:15:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 19:15:07 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 1VWrAA-0004r8-Mh for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2013 19:15:06 +0200 Original-Received: from localhost ([::1]:53548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWrAA-00083w-3e for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2013 13:15:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWr92-00066X-J8 for emacs-devel@gnu.org; Thu, 17 Oct 2013 13:14:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWr8v-0007Sk-95 for emacs-devel@gnu.org; Thu, 17 Oct 2013 13:13:56 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:60752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWr8u-0007SO-UW for emacs-devel@gnu.org; Thu, 17 Oct 2013 13:13:49 -0400 Original-Received: from [62.47.40.188] ([62.47.40.188]) by mail.gmx.com (mrgmx101) with ESMTPA (Nemesis) id 0M0LtB-1VsERV1Qcv-00uWRc for ; Thu, 17 Oct 2013 19:13:48 +0200 In-Reply-To: <83ob6nonry.fsf@gnu.org> X-Provags-ID: V03:K0:YqN+hrEMAl+OuWqHCc4KRjjjRmhxV/gKwN2dJec0k6Nuc4RYNON jnUNYLMPDPDXCiHIYSRzAurEVUNjts+m64nbMLOypDtC3vRDefjQpDX8uPNxvc2cax7z+xl IvPDe12wlgq8mt1P7yWPb2EoBS3SdF6C+Lzpm8/iRU1fyQD4NPa0RzpKHJ+pJ+9LvEJwHtj UZaaWS+KK0QClp6aJ6XkQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.20 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:164269 Archived-At: >> Now from the time I hit F10 until I hit it again >> the breakpoint is _not_ reached. > > So something else seems to be at work here. But who else can resize the echo area? > If you don't set resize-mini-windows to nil, but instead set > max-mini-window-height to 1, does the problem also go away? Yes - this makes the problem go away too. > Another idea would be to ifdef away this fragment from term.c: > > if ((menu_help_message || prev_menu_help_message) > && menu_help_message != prev_menu_help_message) > { > help_callback (menu_help_message, > menu_help_paneno, menu_help_itemno); > tty_hide_cursor (tty); > fflush (tty->output); > prev_menu_help_message = menu_help_message; > } > > which disables help-echo in the menu, and see if the problem is gone > even without customizing resize-mini-windows. If it is, then stepping > into the help_callback call might tell who causes the problem. Doing this has the following effects: (1) The echo area remains unchanged in contents and size. (2) The amount of "artefacts" in the right half of the frame increases. (You have to look at my screenshot to understand what I mean with artefacts - these are essentially copies of menu lines, sometimes displayed in their highlighted form.) Also, the number of highlighted menu lines increases. > If disabling help-echo does not make the problem go away, there's > something else that causes resizing, and perhaps you will be able to > spot that without help-echo getting in your way and obscuring the echo > area. > > Btw, this all is in "emacs -Q", right? There are no customizations > involved, right? Always emacs -Q -nw, no customizations. martin