From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Li Subject: Bug: Preserving agenda settings per buffer? [9.2.3 (9.2.3-7-g222408-elpaplus @ .emacs.d/elpa/org-plus-contrib-20190415/)] Date: Thu, 25 Apr 2019 16:40:08 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJo9J-0005rO-GD for emacs-orgmode@gnu.org; Thu, 25 Apr 2019 19:51:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJnyZ-0006vG-So for emacs-orgmode@gnu.org; Thu, 25 Apr 2019 19:40:24 -0400 Received: from mail-it1-x131.google.com ([2607:f8b0:4864:20::131]:39690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJnyY-0006j9-7b for emacs-orgmode@gnu.org; Thu, 25 Apr 2019 19:40:22 -0400 Received: by mail-it1-x131.google.com with SMTP id e13so2981191itk.4 for ; Thu, 25 Apr 2019 16:40:20 -0700 (PDT) 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: Org Mode List Example variables: org-agenda-todo-list-sublevels org-agenda-dim-blocked-tasks If org-agenda-dim-blocked-tasks is default true, and you have custom agenda views foo and bar, where bar sets this to false, opening bar will result in an agenda view where blocked tasks are not dimmed, but if you go back to a previously opened buffer for foo and revert, the foo agenda view will now also not be dimming blocked tasks. This is because the local settings for an agenda view are stored in the org-lprops property of org-agenda-redo-command, so there can only be one set of local agenda settings, for whichever agenda command was run last. This behavior is confusing when combined with org-agenda-sticky, because you can switch to the buffers of previously run agenda commands, but if you redo/revert them, the results may be completely different. Actually fixing this is difficult. Probably it should be documented somewhere that switching directly to agenda buffers produces undefined behavior and you have to use the agenda command. On a slightly different tack, the variables I listed above could be made "local" to an agenda command, like how some vars (org-agenda-sorting-strategy I think?) have special handling so they stick to a particular agenda buffer. That doesn't solve the general problem that local settings provided to a custom agenda commnd are effectively set globally. Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.24), modified by Debian Package: Org mode version 9.2.3 (9.2.3-7-g222408-elpaplus @ .emacs.d/elpa/org-plus-contrib-20190415/)