emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-agenda + [a] generated many duplicated task entries
@ 2024-01-12  2:50 Christopher M. Miles
  2024-01-12 12:14 ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher M. Miles @ 2024-01-12  2:50 UTC (permalink / raw)
  To: Org mode


[-- Attachment #1.1: Type: text/plain, Size: 214 bytes --]


When I execute command "org-agenda" with key "[a]" to generate
org-agenda day view. Many task entries are duplicated.

Does anyone knows any related Org mode options caused this problem or
how to fix this issue.


[-- Attachment #1.2: screenshot of org-agenda --]
[-- Type: image/png, Size: 1988303 bytes --]

[-- Attachment #1.3: Type: text/plain, Size: 824 bytes --]


I tried many methods trying to figure out the problem reason.

- [X] Emacs init bisect
- [X] Org mode git check out old commits
- [X] init-org-agenda.el options reset
- [X] Emacs minimal init testing -> no problem

My Emacs, Org mode environment:

- GNU Emacs 30.0.50 (build 2, aarch64-apple-darwin23.3.0, NS appkit-2487.40 Version 14.3 (Build 23D5033f)) of 2024-01-12
- Org mode version 9.7-pre (release_9.6.6-426-gba1033 @ /Users/stardiviner/Code/Emacs/org-mode/lisp/)
- My Org mode version is using latest "main" branch (commit: f22be2878)

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-agenda + [a] generated many duplicated task entries
  2024-01-12  2:50 org-agenda + [a] generated many duplicated task entries Christopher M. Miles
@ 2024-01-12 12:14 ` Ihor Radchenko
  2024-01-12 15:11   ` Christopher M. Miles
  2024-01-15  6:24   ` [DONE] " Christopher M. Miles
  0 siblings, 2 replies; 5+ messages in thread
From: Ihor Radchenko @ 2024-01-12 12:14 UTC (permalink / raw)
  To: numbchild; +Cc: Org mode

"Christopher M. Miles" <numbchild@gmail.com> writes:

> When I execute command "org-agenda" with key "[a]" to generate
> org-agenda day view. Many task entries are duplicated.

Maybe you have something in
`org-agenda-skip-scheduled-if-deadline-is-shown' or similar customization.

> I tried many methods trying to figure out the problem reason.
>
> - [X] Emacs init bisect
> - [X] Emacs minimal init testing -> no problem

These two mean that you missed something during bisection.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: org-agenda + [a] generated many duplicated task entries
  2024-01-12 12:14 ` Ihor Radchenko
@ 2024-01-12 15:11   ` Christopher M. Miles
  2024-01-15  6:24   ` [DONE] " Christopher M. Miles
  1 sibling, 0 replies; 5+ messages in thread
From: Christopher M. Miles @ 2024-01-12 15:11 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: numbchild, Org mode

[-- Attachment #1: Type: text/plain, Size: 2191 bytes --]


@Ihor, Thanks for your help.

Ihor Radchenko <yantar92@posteo.net> writes:

> "Christopher M. Miles" <numbchild@gmail.com> writes:
>
>> When I execute command "org-agenda" with key "[a]" to generate
>> org-agenda day view. Many task entries are duplicated.
>
> Maybe you have something in
> `org-agenda-skip-scheduled-if-deadline-is-shown' or similar customization.
>

I customized `org-agenda-skip-scheduled-if-deadline-is-shown' to `t' in my Emacs init.

After your hints, I tested this option with different values:
`nil', `t', `not-today', `repeated-after-deadline'.

None of those value fixed my problem. So should not related to my problem.

I have customized options in my Emacs init:

#+begin_src emacs-lisp
(setq org-agenda-skip-timestamp-if-done t
      org-agenda-skip-deadline-if-done t
      org-agenda-skip-deadline-prewarning-if-scheduled t
      org-agenda-skip-scheduled-if-done t
      org-agenda-skip-scheduled-delay-if-deadline 'post-deadline
      org-agenda-skip-scheduled-if-deadline-is-shown t
      org-agenda-skip-timestamp-if-deadline-is-shown t
      org-agenda-skip-additional-timestamps-same-entry nil
      org-deadline-warning-days 14
      org-agenda-tags-todo-honor-ignore-options t)

(setq org-agenda-todo-ignore-timestamp 'all
      org-agenda-todo-ignore-with-date nil
      org-agenda-todo-ignore-scheduled 'future
      org-agenda-todo-ignore-deadlines 'near)
#+end_src

But I tested by comment out those options still have same problem.

>> I tried many methods trying to figure out the problem reason.
>>
>> - [X] Emacs init bisect
>> - [X] Emacs minimal init testing -> no problem
>
> These two mean that you missed something during bisection.

Yes, this is why I post email here for asking help. Because I can't find
out reason between Emacs init bisect & Emacs minimal init testing.

I will try more times and other methods.

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [DONE] Re: org-agenda + [a] generated many duplicated task entries
  2024-01-12 12:14 ` Ihor Radchenko
  2024-01-12 15:11   ` Christopher M. Miles
@ 2024-01-15  6:24   ` Christopher M. Miles
  2024-01-17 11:54     ` Ihor Radchenko
  1 sibling, 1 reply; 5+ messages in thread
From: Christopher M. Miles @ 2024-01-15  6:24 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: numbchild, Org mode

[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]


Ihor Radchenko <yantar92@posteo.net> writes:

> "Christopher M. Miles" <numbchild@gmail.com> writes:
>
>> When I execute command "org-agenda" with key "[a]" to generate
>> org-agenda day view. Many task entries are duplicated.
>
> Maybe you have something in
> `org-agenda-skip-scheduled-if-deadline-is-shown' or similar customization.
>
>> I tried many methods trying to figure out the problem reason.
>>
>> - [X] Emacs init bisect
>> - [X] Emacs minimal init testing -> no problem
>
> These two mean that you missed something during bisection.

I reproduced the problem with `emacs -Q` and `emacs-minimal-init`.
Then I tried to Edebug on the command function `org-agenda` -> `org-agenda-list`.
I suddenly brain come up with checking out the variable `org-agenda-files` value.
I found it contains duplicated filenames in list.
Then I added `delete-dups` function around my `org-agenda-files` value list generating.
Then the problem solved.

This is really a hard reason to find out which costed lot of time. :(

Anyway, thanks Ihor as always.

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [DONE] Re: org-agenda + [a] generated many duplicated task entries
  2024-01-15  6:24   ` [DONE] " Christopher M. Miles
@ 2024-01-17 11:54     ` Ihor Radchenko
  0 siblings, 0 replies; 5+ messages in thread
From: Ihor Radchenko @ 2024-01-17 11:54 UTC (permalink / raw)
  To: Christopher M. Miles; +Cc: Org mode

"Christopher M. Miles" <numbchild@gmail.com> writes:

> I reproduced the problem with `emacs -Q` and `emacs-minimal-init`.
> Then I tried to Edebug on the command function `org-agenda` -> `org-agenda-list`.
> I suddenly brain come up with checking out the variable `org-agenda-files` value.
> I found it contains duplicated filenames in list.
> Then I added `delete-dups` function around my `org-agenda-files` value list generating.
> Then the problem solved.

Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=4ce2ad4eb

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-17 11:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-12  2:50 org-agenda + [a] generated many duplicated task entries Christopher M. Miles
2024-01-12 12:14 ` Ihor Radchenko
2024-01-12 15:11   ` Christopher M. Miles
2024-01-15  6:24   ` [DONE] " Christopher M. Miles
2024-01-17 11:54     ` Ihor Radchenko

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).