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: Sat, 19 Oct 2013 14:54:01 +0300 Message-ID: <83zjq5lbmu.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> <83iowvokoj.fsf@gnu.org> <526025E8.20009@gmx.at> <83fvrzoe6o.fsf@gnu.org> <83eh7joda2.fsf@gnu.org> <5260E981.6020604@gmx.at> <8361suorfj.fsf@gnu.org> <52614739.9040901@gmx.at> <83ob6mmw9j.fsf@gnu.org> <83k3hamlr5.fsf@gnu.org> <5262613C.1020207@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382183655 26863 80.91.229.3 (19 Oct 2013 11:54:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2013 11:54:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 19 13:54:19 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 1VXV6n-0005id-Nz for ged-emacs-devel@m.gmane.org; Sat, 19 Oct 2013 13:54:17 +0200 Original-Received: from localhost ([::1]:32927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXV6n-0007Mr-Ck for ged-emacs-devel@m.gmane.org; Sat, 19 Oct 2013 07:54:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXV6f-0007Mf-HP for emacs-devel@gnu.org; Sat, 19 Oct 2013 07:54:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXV6W-0001e0-Qu for emacs-devel@gnu.org; Sat, 19 Oct 2013 07:54:09 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:42574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXV6W-0001dd-Ik for emacs-devel@gnu.org; Sat, 19 Oct 2013 07:54:00 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MUW00H00ZLBJG00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 19 Oct 2013 14:53:59 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MUW00H81ZPUA4B0@a-mtaout22.012.net.il>; Sat, 19 Oct 2013 14:53:58 +0300 (IDT) In-reply-to: <5262613C.1020207@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.172 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:164356 Archived-At: > Date: Sat, 19 Oct 2013 12:38:52 +0200 > From: martin rudalics > CC: emacs-devel@gnu.org > > > So I'm going to claim that Emacs does TRT here, and it's some problem > > with this specific terminal emulator. Unless there's someone who can > > explain what are we doing wrong. > > The behavior differs when I set `resize-mini-windows' to nil or t or > when I set `max-mini-window-height' to 1. The terminal emulator does > not know about these. How does that fit in here? We write different stuff in each case, obviously. I suspect different cursor motion commands. If you want to analyze these more precisely, produce 3 termscripts where the keyboard commands were exactly the same, then using Diff might show the differences. > > #! /bin/sh > > # Invoke as "script FILE" > > l=`wc -l $1 | awk '{ print $1 }'` > > i=1 > > while (expr $i "<=" $l > /dev/null); do > > sed -n -e `echo $i`p $1 && sleep 2 && i=`expr $i "+" 1`; > > done > > > > If you use this script on your terminal, do you see any incorrect > > display, similar to what happens when Emacs runs? > > No. The display is correct. So can we be sure that this is a timing > issue? Most probably, yes. If you play with the sleeping period, do you see any differences? Can you try without removing the menu bar produced by the terminal itself, and see if the same problems are present then?