* [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>"
@ 2023-10-10 15:14 Cletip Cletip
2023-10-10 15:48 ` Ihor Radchenko
0 siblings, 1 reply; 8+ messages in thread
From: Cletip Cletip @ 2023-10-10 15:14 UTC (permalink / raw)
To: Org Mode List
[-- Attachment #1: Type: text/plain, Size: 3245 bytes --]
Hello!
I just encountered a strange bug (maybe) in org-mode, starting from version
9.6. I don't quite understand why, but it happens when I display the agenda
(to be precise: M-x org-agenda a).
This only happens (from the causes I found) when there is: SCHEDULED with
inactive timestamp without a parent heading. This triggers the following
error for me:
Search failed: "\<SCHEDULED: *<\([^>]+\)>"
My version of emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+
Version 3.24.20, cairo version 1.16.0) of 2022-05-31
Where it doesn't bug:
Org mode version 9.5.5 (9.5.5-n/a-g8ef620)
And older versions.
Where it bugs:
Org mode version 9.6 (9.6-n/a-gb3da4)
And newer versions.
Configuration (I use elpaca to quickly install packages, I've included the
installation even though it may not be necessary):
#+begin_src emacs-lisp
;;installation d'elpaca
;; ---------------------
(defvar elpaca-installer-version 0.4)
(defvar elpaca-directory (expand-file-name "elpaca/"
user-emacs-directory))
(defvar elpaca-builds-directory (expand-file-name "builds/"
elpaca-directory))
(defvar elpaca-repos-directory (expand-file-name "repos/"
elpaca-directory))
(defvar elpaca-order '(elpaca :repo "
https://github.com/progfolio/elpaca.git"
:ref nil
:files (:defaults (:exclude "extensions"))
:build (:not elpaca--activate-package)))
(let* ((repo (expand-file-name "elpaca/" elpaca-repos-directory))
(build (expand-file-name "elpaca/" elpaca-builds-directory))
(order (cdr elpaca-order))
(default-directory repo))
(add-to-list 'load-path (if (file-exists-p build) build repo))
(unless (file-exists-p repo)
(make-directory repo t)
(when (< emacs-major-version 28) (require 'subr-x))
(condition-case-unless-debug err
(if-let ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*"))
((zerop (call-process "git" nil buffer t "clone"
(plist-get order :repo) repo)))
((zerop (call-process "git" nil buffer t "checkout"
(or (plist-get order :ref) "--"))))
(emacs (concat invocation-directory invocation-name))
((zerop (call-process emacs nil buffer nil "-Q" "-L" "." "--batch"
"--eval" "(byte-recompile-directory \".\" 0 'force)")))
((require 'elpaca))
((elpaca-generate-autoloads "elpaca" repo)))
(kill-buffer buffer)
(error "%s" (with-current-buffer buffer (buffer-string))))
((error) (warn "%s" err) (delete-directory repo 'recursive))))
(unless (require 'elpaca-autoloads nil t)
(require 'elpaca)
(elpaca-generate-autoloads "elpaca" repo)
;; (load "./elpaca-autoloads.el") ;; ne marche pas pour termux
(load (expand-file-name "elpaca-autoloads.el" repo))
))
(add-hook 'after-init-hook #'elpaca-process-queues)
(elpaca `(,@elpaca-order))
(elpaca-wait)
;; ---------------------
(elpaca
;; or the version you like
(org :type git :host github :repo "bzg/org-mode" :ref "b3da427")
(setq org-agenda-files '("/home/.../test.org"))
)
#+end_src
In test.org :
#+begin_example
* TODO Séance
SCHEDULED: [2023-10-10 Tue]
#+end_example
And... that's it!
I hope this is not too troublesome a bug to resolve ^^
Thank you for your response!
[-- Attachment #2: Type: text/html, Size: 4052 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>"
2023-10-10 15:14 [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>" Cletip Cletip
@ 2023-10-10 15:48 ` Ihor Radchenko
2023-10-10 16:03 ` Cletip Cletip
0 siblings, 1 reply; 8+ messages in thread
From: Ihor Radchenko @ 2023-10-10 15:48 UTC (permalink / raw)
To: Cletip Cletip; +Cc: Org Mode List
Cletip Cletip <clement020302@gmail.com> writes:
> I just encountered a strange bug (maybe) in org-mode, starting from version
> 9.6. I don't quite understand why, but it happens when I display the agenda
> (to be precise: M-x org-agenda a).
>
> This only happens (from the causes I found) when there is: SCHEDULED with
> inactive timestamp without a parent heading. This triggers the following
> error for me:
>
> Search failed: "\<SCHEDULED: *<\([^>]+\)>"
See https://list.orgmode.org/orgmode/87edkhnbn4.fsf@shell.onfire.org/
I now also backported the fix onto bugfix branch.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=558db89e4
--
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] 8+ messages in thread
* Re: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>"
2023-10-10 15:48 ` Ihor Radchenko
@ 2023-10-10 16:03 ` Cletip Cletip
2023-10-10 16:20 ` Ihor Radchenko
2023-10-10 16:33 ` [BUG] Inactive interval is not correctly displayed in agenda view (was: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>") Ihor Radchenko
0 siblings, 2 replies; 8+ messages in thread
From: Cletip Cletip @ 2023-10-10 16:03 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Org Mode List
[-- Attachment #1: Type: text/plain, Size: 2164 bytes --]
>
> See https://list.orgmode.org/orgmode/87edkhnbn4.fsf@shell.onfire.org/
Perfect, that solve the problem ! Incredible reactivity, thanks !
I now also backported the fix onto bugfix branch.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=558db89e4
I don't really understand what mean that : what should I do to have this ?
Update org-mode ? Another things ?
Thanks you for your help ^^
Now that I have the diary in front of me, I get the impression that there's
another problem, and I guess it's not as simple as a simple regular
expression.
if I have the following heading :
* A test
[2023-10-10 Tue 17:25]--[2023-10-10 Tue 17:30]
<2023-10-10 Tue 17:25>--<2023-10-10 Tue 17:30>
The "org interval" are not respected for the inactive timestamp. See what
is the result in org-agenda :
17:25-17:30 A test
17:25-17:25 [ A test
17:30-17:30 [ A test
The first line is what I want : a beginning hour, with a end. But, the two
other are not normal : it must be the same line.
Must I send another mail not in this conversation ?
Thanks you again for your futur answer
Le mar. 10 oct. 2023 à 17:47, Ihor Radchenko <yantar92@posteo.net> a écrit :
> Cletip Cletip <clement020302@gmail.com> writes:
>
> > I just encountered a strange bug (maybe) in org-mode, starting from
> version
> > 9.6. I don't quite understand why, but it happens when I display the
> agenda
> > (to be precise: M-x org-agenda a).
> >
> > This only happens (from the causes I found) when there is: SCHEDULED with
> > inactive timestamp without a parent heading. This triggers the following
> > error for me:
> >
> > Search failed: "\<SCHEDULED: *<\([^>]+\)>"
>
> See https://list.orgmode.org/orgmode/87edkhnbn4.fsf@shell.onfire.org/
> I now also backported the fix onto bugfix branch.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=558db89e4
>
> --
> 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>
>
[-- Attachment #2: Type: text/html, Size: 3836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>"
2023-10-10 16:03 ` Cletip Cletip
@ 2023-10-10 16:20 ` Ihor Radchenko
2023-10-10 16:33 ` [BUG] Inactive interval is not correctly displayed in agenda view (was: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>") Ihor Radchenko
1 sibling, 0 replies; 8+ messages in thread
From: Ihor Radchenko @ 2023-10-10 16:20 UTC (permalink / raw)
To: Cletip Cletip; +Cc: Org Mode List
Cletip Cletip <clement020302@gmail.com> writes:
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=558db89e4
>
> I don't really understand what mean that : what should I do to have this ?
> Update org-mode ? Another things ?
Yes, it will be enough to update Org mode.
Either to main (experimental) branch or to bugfix (stable release
candidate) branch.
AFAIU, you are using Elpaca, so it should be easy for you to update.
You will need to specify the branch in Org repository. See
https://github.com/progfolio/elpaca/blob/master/doc/manual.md#recipe-keyword-branch
(elpaca
;; or the version you like
(org :type git :host github :repo "bzg/org-mode" :branch "bugfix")
(setq org-agenda-files '("/home/.../test.org"))
)
Note that you are using Org mode mirror, not the official git repo (so,
it may or may not be up-to-date). Our main repository is in
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
--
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] 8+ messages in thread
* [BUG] Inactive interval is not correctly displayed in agenda view (was: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>")
2023-10-10 16:03 ` Cletip Cletip
2023-10-10 16:20 ` Ihor Radchenko
@ 2023-10-10 16:33 ` Ihor Radchenko
2023-10-10 16:38 ` Cletip Cletip
2023-10-11 9:04 ` Ihor Radchenko
1 sibling, 2 replies; 8+ messages in thread
From: Ihor Radchenko @ 2023-10-10 16:33 UTC (permalink / raw)
To: Cletip Cletip; +Cc: Org Mode List
Cletip Cletip <clement020302@gmail.com> writes:
> Now that I have the diary in front of me, I get the impression that there's
> another problem, and I guess it's not as simple as a simple regular
> expression.
>
> if I have the following heading :
>
> * A test
> [2023-10-10 Tue 17:25]--[2023-10-10 Tue 17:30]
> <2023-10-10 Tue 17:25>--<2023-10-10 Tue 17:30>
>
> The "org interval" are not respected for the inactive timestamp. See what
> is the result in org-agenda :
>
> 17:25-17:30 A test
> 17:25-17:25 [ A test
> 17:30-17:30 [ A test
>
> The first line is what I want : a beginning hour, with a end. But, the two
> other are not normal : it must be the same line.
I can reproduce. Indeed looks odd.
I will look closer at this problem later.
> Must I send another mail not in this conversation ?
No need. I changed the subject to branch off this bug report as a new thread.
--
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] 8+ messages in thread
* Re: [BUG] Inactive interval is not correctly displayed in agenda view (was: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>")
2023-10-10 16:33 ` [BUG] Inactive interval is not correctly displayed in agenda view (was: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>") Ihor Radchenko
@ 2023-10-10 16:38 ` Cletip Cletip
2023-10-11 9:04 ` Ihor Radchenko
1 sibling, 0 replies; 8+ messages in thread
From: Cletip Cletip @ 2023-10-10 16:38 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Org Mode List
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
>
> I will look closer at this problem later.
> No need. I changed the subject to branch off this bug report as a new
> thread.
Thanks a lot :) have a nice day !
Le mar. 10 oct. 2023 à 18:31, Ihor Radchenko <yantar92@posteo.net> a écrit :
> Cletip Cletip <clement020302@gmail.com> writes:
>
> > Now that I have the diary in front of me, I get the impression that
> there's
> > another problem, and I guess it's not as simple as a simple regular
> > expression.
> >
> > if I have the following heading :
> >
> > * A test
> > [2023-10-10 Tue 17:25]--[2023-10-10 Tue 17:30]
> > <2023-10-10 Tue 17:25>--<2023-10-10 Tue 17:30>
> >
> > The "org interval" are not respected for the inactive timestamp. See what
> > is the result in org-agenda :
> >
> > 17:25-17:30 A test
> > 17:25-17:25 [ A test
> > 17:30-17:30 [ A test
> >
> > The first line is what I want : a beginning hour, with a end. But, the
> two
> > other are not normal : it must be the same line.
>
> I can reproduce. Indeed looks odd.
> I will look closer at this problem later.
>
> > Must I send another mail not in this conversation ?
>
> No need. I changed the subject to branch off this bug report as a new
> thread.
>
> --
> 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>
>
[-- Attachment #2: Type: text/html, Size: 2350 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [BUG] Inactive interval is not correctly displayed in agenda view (was: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>")
2023-10-10 16:33 ` [BUG] Inactive interval is not correctly displayed in agenda view (was: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>") Ihor Radchenko
2023-10-10 16:38 ` Cletip Cletip
@ 2023-10-11 9:04 ` Ihor Radchenko
2023-10-14 10:04 ` Cletip Cletip
1 sibling, 1 reply; 8+ messages in thread
From: Ihor Radchenko @ 2023-10-11 9:04 UTC (permalink / raw)
To: Cletip Cletip; +Cc: Org Mode List
Ihor Radchenko <yantar92@posteo.net> writes:
>> if I have the following heading :
>>
>> * A test
>> [2023-10-10 Tue 17:25]--[2023-10-10 Tue 17:30]
>> <2023-10-10 Tue 17:25>--<2023-10-10 Tue 17:30>
>>
>> The "org interval" are not respected for the inactive timestamp. See what
>> is the result in org-agenda :
>>
>> 17:25-17:30 A test
>> 17:25-17:25 [ A test
>> 17:30-17:30 [ A test
>>
>> The first line is what I want : a beginning hour, with a end. But, the two
>> other are not normal : it must be the same line.
>
> I can reproduce. Indeed looks odd.
> I will look closer at this problem later.
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e1569918c
--
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] 8+ messages in thread
* Re: [BUG] Inactive interval is not correctly displayed in agenda view (was: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>")
2023-10-11 9:04 ` Ihor Radchenko
@ 2023-10-14 10:04 ` Cletip Cletip
0 siblings, 0 replies; 8+ messages in thread
From: Cletip Cletip @ 2023-10-14 10:04 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Org Mode List
[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]
Very cool, thanks !
Le mer. 11 oct. 2023 à 11:03, Ihor Radchenko <yantar92@posteo.net> a écrit :
> Ihor Radchenko <yantar92@posteo.net> writes:
>
> >> if I have the following heading :
> >>
> >> * A test
> >> [2023-10-10 Tue 17:25]--[2023-10-10 Tue 17:30]
> >> <2023-10-10 Tue 17:25>--<2023-10-10 Tue 17:30>
> >>
> >> The "org interval" are not respected for the inactive timestamp. See
> what
> >> is the result in org-agenda :
> >>
> >> 17:25-17:30 A test
> >> 17:25-17:25 [ A test
> >> 17:30-17:30 [ A test
> >>
> >> The first line is what I want : a beginning hour, with a end. But, the
> two
> >> other are not normal : it must be the same line.
> >
> > I can reproduce. Indeed looks odd.
> > I will look closer at this problem later.
>
> Fixed, on main.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e1569918c
>
> --
> 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>
>
[-- Attachment #2: Type: text/html, Size: 2013 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-10-14 10:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-10 15:14 [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>" Cletip Cletip
2023-10-10 15:48 ` Ihor Radchenko
2023-10-10 16:03 ` Cletip Cletip
2023-10-10 16:20 ` Ihor Radchenko
2023-10-10 16:33 ` [BUG] Inactive interval is not correctly displayed in agenda view (was: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>") Ihor Radchenko
2023-10-10 16:38 ` Cletip Cletip
2023-10-11 9:04 ` Ihor Radchenko
2023-10-14 10:04 ` Cletip Cletip
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.