From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Menus with more items than the TTY can display Date: Fri, 18 Oct 2013 11:36:52 +0300 Message-ID: <838uxrnfff.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382085425 23291 80.91.229.3 (18 Oct 2013 08:37:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 08:37:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 18 10:37:08 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 1VX5YN-0000tx-AH for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 10:37:03 +0200 Original-Received: from localhost ([::1]:56330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX5YM-0003lF-Gs for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 04:37:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX5YF-0003l8-C5 for emacs-devel@gnu.org; Fri, 18 Oct 2013 04:37:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VX5YA-00044z-7z for emacs-devel@gnu.org; Fri, 18 Oct 2013 04:36:55 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:64879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VX5Y9-00044o-W7 for emacs-devel@gnu.org; Fri, 18 Oct 2013 04:36:50 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MUU00B00VD9OC00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 18 Oct 2013 11:36:48 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MUU00B8WVXCL660@a-mtaout20.012.net.il>; Fri, 18 Oct 2013 11:36:48 +0300 (IDT) In-reply-to: <52601ACA.9070603@gmx.at> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:164294 Archived-At: > Date: Thu, 17 Oct 2013 19:13:46 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org > > > 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. Could you please post snapshots of these artefacts? If possible, please post several ones that show how the artefacts are added as you move downwards through the menu by pressing C-n or the down-arrow. Thanks.