From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [BUG] org-clock-in menu scrolls off the top of the window Date: Mon, 08 Apr 2013 19:46:59 -0400 Message-ID: <8738v0h9fw.fsf@norang.ca> References: <878v4u5glq.fsf@norang.ca> <867gkeyvv9.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPLmL-0000s8-3s for emacs-orgmode@gnu.org; Mon, 08 Apr 2013 19:47:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPLmK-0000I7-09 for emacs-orgmode@gnu.org; Mon, 08 Apr 2013 19:47:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:50085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPLmJ-0000Hu-MF for emacs-orgmode@gnu.org; Mon, 08 Apr 2013 19:47:11 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UPLmI-0006X7-0h for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 01:47:10 +0200 In-Reply-To: <867gkeyvv9.fsf@somewhere.org> (Sebastien Vauban's message of "Sun, 07 Apr 2013 21:38:18 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org "Sebastien Vauban" writes: > Hi Bernt, Bastien, > > Bernt Hansen wrote: >> Another change I've noticed in master is the display of the clocking >> task menu when doing >> >> C-u M-x org-clock-in >> >> I've reduced my clocking menu items a bit due to screen size changes and >> not being able to see the items that scroll off the top of the screen >> (normally the most recent items are the ones I'm looking for but on >> small screens the menu scrolls up and I can't see the recent items). >> >> My current setting is (setq org-clock-history-length 23) >> >> My menu for clock-in tasks currently runs 1-9,A-N and starts with the >> "Current Clocking Task" on line 1. I have a widescreen monitor in >> windows and the bottom half of the menu is blank when the screen splits >> horizontally to display the clock in menu -- it seems to be centered >> near the last item in the list but this scrolls the default and >> interrupted clocking task entries off the top of the screen. >> >> There is no way to scroll this menu that I am aware of. >> >> The buffer *Clock Task Select* has >> >> ,---- >> | Default Task >> | [d] Organize Organization >> | The task interrupted by starting the last one >> | [i] Organize Organization >> | Current Clocking Task >> | [c] SomeProject TODO SomeTask >> | Recent Tasks >> | [1] SomeProject TODO SomeTask >> | [2] Organize Organization >> | [3] refile TODO foo >> | ... >> | [N] refile SomeOtherRefileTask >> `---- >> >> but it scrolls with C-u M-x org-clock-in so it looks like this >> >> ,---- >> | Current Clocking Task >> | [c] SomeProject TODO SomeTask >> | Recent Tasks >> | [1] SomeProject TODO SomeTask >> | [2] Organize Organization >> | [3] refile TODO foo >> | ... >> | [N] refile SomeOtherRefileTask >> | ... >> `---- > > As your data is not that true, I can't tell from what you show, but another > thing that I've seen (in my config) is that many tasks are duplicated, hence > the list is much longer that needed. > > Do you see that as well in your case? > > For example, it seems to me that (in the second screen) item 1 is redundant > with item c. In the first screen, items d, i and 2 seem redundant, while items > c and 1 seem also redundant. Hi Seb, The data has been modified but the duplication isn't new. The only tasks I renamed were 'SomeTask' and 'SomeOtherRefileTask'. I used capture to create foo as a temporary task (which I subsequently deleted). The actual task list came from projects at my work. Duplicated tasks in my displayed menu are really duplicated and as far as I know that behaviour hasn't changed. If there is a default, and current task (all the same) then [d], [c], and [1] will all be identical. The default task is only displayed when a default clocking task is identified (which is always for me). [c] may not be that useful to display since we can just quit and leave the clock alone. Personally I like the duplication in the history list (it's a true view of what was clocked in recently) The main thing I'm reporting is all the whitespace now at the bottom of the screen since the list is artificially scrolled up. I used to be able to determine exactly what fit in the list so I set my history length appropriately. Regards, Bernt