From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: Bug in Recent Agenda Mod Date: Tue, 21 Mar 2017 09:03:53 +0100 Message-ID: <841strys2e.fsf@tm6592> References: <87efxrv5s5.fsf@escafil> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqEmC-0005XB-Ln for emacs-orgmode@gnu.org; Tue, 21 Mar 2017 04:04:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqEm9-0004at-H6 for emacs-orgmode@gnu.org; Tue, 21 Mar 2017 04:04:20 -0400 Received: from [195.159.176.226] (port=50343 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cqEm9-0004YE-A5 for emacs-orgmode@gnu.org; Tue, 21 Mar 2017 04:04:17 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cqEls-0007RA-0U for emacs-orgmode@gnu.org; Tue, 21 Mar 2017 09:04:00 +0100 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" To: emacs-orgmode@gnu.org Ian Dunn writes: > Commit d262ae53c966c7a745c0fa779149f9eb7486333d "org-agenda: Fix agenda standard name when going unsticky" sets org-agenda-buffer-name to "*Org Agenda*" if not in sticky. > > However, org-agenda-redo sets org-agenda-sticky to nil before redoing the agenda command. > > Steps to Reproduce: > > 1. Turn on org-agenda-sticky > 2. Execute any agenda command that only involves org-agenda-list > - Agenda is in buffer *Org Agenda(CMD)* (ex. *Org Agenda(d:)*) > 3. Press 'g' (org-agenda-redo) > - Agenda is now in *Org Agenda* > > The included patch fixes this for sticky redo, and will have no effect for anything other than a sticky redo. > > -- > Ian Dunn > > diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el > index b618653d5..04e6685b5 100644 > --- a/lisp/org-agenda.el > +++ b/lisp/org-agenda.el > @@ -4076,6 +4076,7 @@ items if they have an hour specification like [h]h:mm." > (catch 'exit > (setq org-agenda-buffer-name > (or org-agenda-buffer-tmp-name > + (and org-agenda-doing-sticky-redo org-agenda-buffer-name) > (if org-agenda-sticky > (cond ((and org-keys (stringp org-match)) > (format "*Org Agenda(%s:%s)*" org-keys org-match)) Good catch, good fix AFAICT. Thanks. May I add this line with a commit message referencing you as the originator? (I have not found you in the contributors list.) Best regards, Marco