From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.devel Subject: Re: Menus with more items than the TTY can display Date: Fri, 11 Oct 2013 13:41:24 +0200 Message-ID: References: <83a9igrqq1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381491694 31064 80.91.229.3 (11 Oct 2013 11:41:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Oct 2013 11:41:34 +0000 (UTC) Cc: Emacs development discussions To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 11 13:41:38 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 1VUb6A-0005Re-3q for ged-emacs-devel@m.gmane.org; Fri, 11 Oct 2013 13:41:38 +0200 Original-Received: from localhost ([::1]:53731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUb69-00043I-G5 for ged-emacs-devel@m.gmane.org; Fri, 11 Oct 2013 07:41:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUb64-00043C-UX for emacs-devel@gnu.org; Fri, 11 Oct 2013 07:41:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VUb60-00060d-71 for emacs-devel@gnu.org; Fri, 11 Oct 2013 07:41:32 -0400 Original-Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:45752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VUb5y-0005zZ-Il; Fri, 11 Oct 2013 07:41:26 -0400 Original-Received: by mail-lb0-f172.google.com with SMTP id x18so3375454lbi.3 for ; Fri, 11 Oct 2013 04:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=m4aRuJLAAAvp20EllWyzOinnpsodFizqBYpELDR2Lk4=; b=kc3bUS7eXVysFODagoMfwu8hL3+eOAe5QW1YppnKoMQiTzlWC8/v7ga31wQAY9gz4w nodY23EXRifGJfW4mBacdzv7rHB4I1NilxhbAnNqAuab0eLrmLLe7uJQFD6jaiH+g64d 8G1eHnIycopi1QDefwWcCZb04UM1g7og8lzHazyPGxCYzqVNGhmZVtn4JTG1mhhPMn7q XKrm4+dZuCXdRIFcqyPvx7LfiR2h+yMtX+eFPdjSmNkuSkM/rFWdbDBUb8FD85VbNzS+ Qaiw9oCLUPZNzgsalQYA3tkei5DYVRQBk7Sxq+Ks5yNtPFLGxy8Ke9EajevW8z+h5y25 1Ixw== X-Received: by 10.112.168.3 with SMTP id zs3mr16627491lbb.2.1381491684764; Fri, 11 Oct 2013 04:41:24 -0700 (PDT) Original-Received: by 10.114.176.231 with HTTP; Fri, 11 Oct 2013 04:41:24 -0700 (PDT) In-Reply-To: <83a9igrqq1.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22c 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:164090 Archived-At: On Fri, Oct 11, 2013 at 1:28 PM, Eli Zaretskii wrote: > Bug #15575 raises the issue of what to do with displaying TTY menus > that are too long for the screen height. Currently, the code simply > truncates the menu at the last available line, but maybe there are > better ways of handling this. IMO: Do "auto scrolling" with the men=FA items, i.e.: * Initially show only the first (top) N items that fit in the available hei= ght. * If the users selects an item close to the bottom of the menu, scroll up the menu items, (similar to what happens in buffer auto scrolling) to show more items at the bottom part. * Likewise when the user selects an item close to the top of the menu. Of course I have no idea of the amount of work involved (probably a fair amount). --=20 Dani Moncayo