emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Subject: Bug: Inherited tags alignment problem in block agendas [9.1.13 (release_9.1.13-751-g9dcc52 @ c:/D-Drive/bin/org-mode/lisp/)]
Date: Sat, 12 May 2018 01:04:44 -0400	[thread overview]
Message-ID: <87h8ndqxar.fsf@norang.ca> (raw)

Hi,

There seems to be an issue with inherited tag alignment in block agendas
in the master branch.

ECM follows.

Thanks,
Bernt

-- test.el ------------------------------------------------------------------------------
(setq org-agenda-custom-commands
      (quote ((" " "Agenda"
	       ((agenda "" nil)
		(tags-todo "-CANCELLED+WAITING|HOLD/!"
			   ((org-agenda-overriding-header "Waiting and Postponed Tasks")
			    (org-tags-match-list-sublevels nil)))
		(tags-todo "-REFILE-CANCELLED-WAITING-HOLD/!"
			   ((org-agenda-overriding-header "Project Subtasks")
			    (org-agenda-sorting-strategy
			     '(category-keep))))
		(tags-todo "-CANCELLED/!"
			   ((org-agenda-overriding-header "Projects")
			    (org-tags-match-list-sublevels 'indented)
			    (org-agenda-sorting-strategy
			     '(category-keep))))
		)
	       nil))))
-- test.org ------------------------------------------------------------------------------
#+FILETAGS: TEST
#+STARTUP: content

*Keys To Reproduce*

1) Lock agenda to this file
   C-c C-x <

2) Show custom agenda
   Note this is a simplified version of my agenda so the sections don't work
   properly but they show the tags problem

   C-c a SPC

   Note the tags appear both left and right aligned in the block agenda
   It seems file tags and inherited tags are on the left and task tags 
   are on the right.  I was expecting all tags to be aligned on the right.

#+begin_example
Week-agenda (W19):
Monday      7 May 2018 W19
Tuesday     8 May 2018
Wednesday   9 May 2018
Thursday   10 May 2018
Friday     11 May 2018
Saturday   12 May 2018
Sunday     13 May 2018

================================================================================
Waiting and Postponed Tasks

================================================================================
Project Subtasks
  test:       TODO Test Parent :TEST::                         :PRODUCTION:MISC:
  test:       TODO do something :TEST:                        :PRODUCTION:MISC::
  test:       TODO foo :TEST: :PRODUCTION:MISC::                           :BAR:

================================================================================
Projects
  test:       TODO Test Parent :TEST::                         :PRODUCTION:MISC:
  test:       .TODO do something :TEST:                       :PRODUCTION:MISC::
  test:       .TODO foo :TEST: :PRODUCTION:MISC::                          :BAR:
#+end_example

In maint it looks correct (like this)

#+begin_example
Week-agenda (W19):
Monday      7 May 2018 W19
Tuesday     8 May 2018
Wednesday   9 May 2018
Thursday   10 May 2018
Friday     11 May 2018
Saturday   12 May 2018
Sunday     13 May 2018

============================================================================================
Waiting and Postponed Tasks

============================================================================================
Project Subtasks
  test:       TODO Test Parent                                       :TEST::PRODUCTION:MISC:
  test:       TODO do something                                      :TEST:PRODUCTION:MISC::
  test:       TODO foo                                           :TEST:PRODUCTION:MISC::BAR:

============================================================================================
Projects
  test:       TODO Test Parent                                       :TEST::PRODUCTION:MISC:
  test:       .TODO do something                                     :TEST:PRODUCTION:MISC::
  test:       .TODO foo                                          :TEST:PRODUCTION:MISC::BAR:
#+end_example
* TODO Test Parent                                          :PRODUCTION:MISC:
  :PROPERTIES:
  :EFFORT:   15:30
  :END:
** TODO do something
   :PROPERTIES:
   :EFFORT:   15
   :END:
   :LOGBOOK:
   CLOCK: [2018-05-12 Sat 00:26]--[2018-05-12 Sat 00:26] =>  0:00
   CLOCK: [2018-05-12 Sat 00:23]--[2018-05-12 Sat 00:23] =>  0:00
   CLOCK: [2018-05-12 Sat 00:22]--[2018-05-12 Sat 00:22] =>  0:00
   CLOCK: [2018-05-12 Sat 00:22]--[2018-05-12 Sat 00:22] =>  0:00
   CLOCK: [2018-05-12 Sat 00:07]--[2018-05-12 Sat 00:08] =>  0:01
   CLOCK: [2018-05-12 Sat 00:00]--[2018-05-12 Sat 00:04] =>  0:04
   :END:
** TODO foo                                                             :BAR:
   :PROPERTIES:
   :EFFORT:   00:30
   :END:

--------------------------------------------------------------------------------

Emacs  : GNU Emacs 25.1.1 (x86_64-w64-mingw32)
 of 2016-09-17
Package: Org mode version 9.1.13 (release_9.1.13-751-g9dcc52 @ c:/D-Drive/bin/org-mode/lisp/)

             reply	other threads:[~2018-05-12  5:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-12  5:04 Bernt Hansen [this message]
2018-06-20 10:05 ` Bug: Inherited tags alignment problem in block agendas [9.1.13 (release_9.1.13-751-g9dcc52 @ c:/D-Drive/bin/org-mode/lisp/)] Nicolas Goaziou
2018-06-20 13:27   ` Bernt Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h8ndqxar.fsf@norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).