emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Scheduled task shows up wrong day in agenda [9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/)]
@ 2022-03-05 14:09 Jeffrey DeLeo
  2022-03-12 13:02 ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Jeffrey DeLeo @ 2022-03-05 14:09 UTC (permalink / raw)
  To: emacs-orgmode


Single org file "foobar.org", containing one task scheduled for
Sunday. It is displayed on agenda for Saturday. I build my own emacs,
which includes org, on OS Ubuntu 20.04.

foobar.org contents:

* Tasks
** TODO Something
SCHEDULED: <2022-03-06 Sun>

Agenda Displays:

Day-agenda (W09):
Saturday    5 March 2022
  foobar:     Scheduled:  TODO Something



Emacs  : GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
 of 2022-02-28
Package: Org mode version 9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/)

current state:
==============
(setq
 org-link-elisp-confirm-function 'yes-or-no-p
 org-directory "./"
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"]
 org-agenda-files '("foobar.org")
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
		  org-optimize-window-after-visibility-change)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5]
		 #[0 "\300\301\302\303\304$\207"
		   [add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
		 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-confirm-shell-link-function 'yes-or-no-p
 outline-isearch-open-invisible-function 'outline-isearch-open-invisible
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-link-shell-confirm-function 'yes-or-no-p
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-loop-over-headlines-in-active-region nil
 org-occur-hook '(org-first-headline-recenter)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link)
		       ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link)
		       ("rmail" :follow org-rmail-open :store org-rmail-store-link)
		       ("mhe" :follow org-mhe-open :store org-mhe-store-link)
		       ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export)
		       ("info" :follow org-info-open :export org-info-export :store org-info-store-link)
		       ("gnus" :follow org-gnus-open :store org-gnus-store-link)
		       ("docview" :follow org-docview-open :export org-docview-export :store
			org-docview-store-link)
		       ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
		       ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link
			:store org-bbdb-store-link)
		       ("w3m" :store org-w3m-store-link)
		       ("doi" :follow org-link-doi-open :export org-link-doi-export) ("file+sys")
		       ("file+emacs") ("shell" :follow org-link--open-shell)
		       ("news" :follow
			#[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"])
		       ("mailto" :follow
			#[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"])
		       ("https" :follow
			#[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"])
		       ("http" :follow
			#[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"])
		       ("ftp" :follow
			#[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"])
		       ("help" :follow org-link--open-help :store org-link--store-help)
		       ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 )


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

* Re: [BUG] Scheduled task shows up wrong day in agenda [9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/)]
  2022-03-05 14:09 [BUG] Scheduled task shows up wrong day in agenda [9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/)] Jeffrey DeLeo
@ 2022-03-12 13:02 ` Ihor Radchenko
  2022-03-12 13:34   ` Jeffrey DeLeo
  0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2022-03-12 13:02 UTC (permalink / raw)
  To: Jeffrey DeLeo; +Cc: emacs-orgmode

Jeffrey DeLeo <jeffreydeleo@gmail.com> writes:

> Single org file "foobar.org", containing one task scheduled for
> Sunday. It is displayed on agenda for Saturday. I build my own emacs,
> which includes org, on OS Ubuntu 20.04.
>
> foobar.org contents:
>
> * Tasks
> ** TODO Something
> SCHEDULED: <2022-03-06 Sun>
>
> Agenda Displays:
>
> Day-agenda (W09):
> Saturday    5 March 2022
>   foobar:     Scheduled:  TODO Something
>
>
>
> Emacs  : GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
>  of 2022-02-28
> Package: Org mode version 9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/)

I am unable to reproduce using built-in Org version of my own Emacs
build (GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo version
1.16.0) of 2022-01-29).

Can you provide more details steps to reproduce starting from emacs -Q?

Best,
Ihor


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

* Re: [BUG] Scheduled task shows up wrong day in agenda [9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/)]
  2022-03-12 13:02 ` Ihor Radchenko
@ 2022-03-12 13:34   ` Jeffrey DeLeo
  2022-03-12 13:56     ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Jeffrey DeLeo @ 2022-03-12 13:34 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

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

Ihor Radchenko <yantar92@gmail.com> writes:
>
> I am unable to reproduce using built-in Org version of my own Emacs
> build (GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo version
> 1.16.0) of 2022-01-29).
>
> Can you provide more details steps to reproduce starting from emacs
> -Q?

Sure.

Save "foobar.org" and "testcase_startup.el" into a directory. Start
emacs in that directory as "emacs -Q -l testcase_startup.el". When emacs
comes up, hit "a" to get agenda. 

"foobar.org" has one task scheduled for Sunday. When I write this, it is
Saturday. Task is displayed in agenda for Saturday.

Happy to investigate myself if you have suggestions of things I can look
at to track this down. 

(org-version)
"9.5.2"

(emacs-version)
"GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
 of 2022-03-09"

load-path:
("/usr/local/share/emacs/29.0.50/lisp"
"/usr/local/share/emacs/29.0.50/lisp/vc"
"/usr/local/share/emacs/29.0.50/lisp/url"
"/usr/local/share/emacs/29.0.50/lisp/textmodes"
"/usr/local/share/emacs/29.0.50/lisp/progmodes"
"/usr/local/share/emacs/29.0.50/lisp/play"
"/usr/local/share/emacs/29.0.50/lisp/org"
"/usr/local/share/emacs/29.0.50/lisp/nxml"
"/usr/local/share/emacs/29.0.50/lisp/net"
"/usr/local/share/emacs/29.0.50/lisp/mh-e"
"/usr/local/share/emacs/29.0.50/lisp/mail"
"/usr/local/share/emacs/29.0.50/lisp/leim"
"/usr/local/share/emacs/29.0.50/lisp/language"
"/usr/local/share/emacs/29.0.50/lisp/international"
"/usr/local/share/emacs/29.0.50/lisp/image"
"/usr/local/share/emacs/29.0.50/lisp/gnus"
"/usr/local/share/emacs/29.0.50/lisp/eshell"
"/usr/local/share/emacs/29.0.50/lisp/erc"
"/usr/local/share/emacs/29.0.50/lisp/emulation"
"/usr/local/share/emacs/29.0.50/lisp/emacs-lisp"
"/usr/local/share/emacs/29.0.50/lisp/cedet"
"/usr/local/share/emacs/29.0.50/lisp/calendar"
"/usr/local/share/emacs/29.0.50/lisp/calc"
"/usr/local/share/emacs/29.0.50/lisp/obsolete")



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: foobar.org --]
[-- Type: text/x-org, Size: 55 bytes --]


* Tasks
** TODO Something
SCHEDULED: <2022-03-13 Sun>

[-- Attachment #3: testcase_startup.el --]
[-- Type: application/emacs-lisp, Size: 90 bytes --]

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

* Re: [BUG] Scheduled task shows up wrong day in agenda [9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/)]
  2022-03-12 13:34   ` Jeffrey DeLeo
@ 2022-03-12 13:56     ` Ihor Radchenko
  2022-03-12 14:56       ` Jeffrey DeLeo
  0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2022-03-12 13:56 UTC (permalink / raw)
  To: Jeffrey DeLeo; +Cc: emacs-orgmode

Jeffrey DeLeo <jeffreydeleo@gmail.com> writes:

> Save "foobar.org" and "testcase_startup.el" into a directory. Start
> emacs in that directory as "emacs -Q -l testcase_startup.el". When emacs
> comes up, hit "a" to get agenda. 
>
> "foobar.org" has one task scheduled for Sunday. When I write this, it is
> Saturday. Task is displayed in agenda for Saturday.
>
> Happy to investigate myself if you have suggestions of things I can look
> at to track this down. 
>
> (org-version)
> "9.5.2"
>
> (emacs-version)
> "GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
>  of 2022-03-09"

I followed your steps and I got the following:

Week-agenda (W10):
Monday      7 March 2022 W10
Tuesday     8 March 2022
Wednesday   9 March 2022
Thursday   10 March 2022
Friday     11 March 2022
Saturday   12 March 2022
Sunday     13 March 2022
  foobar:     Scheduled:  TODO Something

I do not see any problem with agenda.

M-x org-version
Org mode version 9.5.2 (release_9.5.2-9-g7ba24c @ /usr/share/emacs/29.0.50/lisp/org/)
M-x emacs-version
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2022-01-29

Can you try to update Emacs? From my experience, there are sometimes
cryptic issues in Org, which disappear as you update Emacs from more
recent master.

Best,
Ihor


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

* Re: [BUG] Scheduled task shows up wrong day in agenda [9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/)]
  2022-03-12 13:56     ` Ihor Radchenko
@ 2022-03-12 14:56       ` Jeffrey DeLeo
  0 siblings, 0 replies; 5+ messages in thread
From: Jeffrey DeLeo @ 2022-03-12 14:56 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

Ihor Radchenko <yantar92@gmail.com> writes:

> Can you try to update Emacs? From my experience, there are sometimes
> cryptic issues in Org, which disappear as you update Emacs from more
> recent master.

Per your advice I uninstalled, grabbed all source files and rebuilt from
scratch. Result: testcase running under "emacs -Q" passes OK now, don't
see Scheduled task shows up wrong day in agenda.



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

end of thread, other threads:[~2022-03-12 14:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-05 14:09 [BUG] Scheduled task shows up wrong day in agenda [9.5.2 (release_9.5.2-22-g33543d @ /usr/local/share/emacs/29.0.50/lisp/org/)] Jeffrey DeLeo
2022-03-12 13:02 ` Ihor Radchenko
2022-03-12 13:34   ` Jeffrey DeLeo
2022-03-12 13:56     ` Ihor Radchenko
2022-03-12 14:56       ` Jeffrey DeLeo

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