From: Cletip Cletip <clement020302@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>"
Date: Tue, 10 Oct 2023 17:14:40 +0200 [thread overview]
Message-ID: <CAPHku6PrLE-N9bYZiR=a9==WkTAbOYGr9LyCPSOURHp7OLd1_w@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2023-10-10 15:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-10 15:14 Cletip Cletip [this message]
2023-10-10 15:48 ` [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>" 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
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='CAPHku6PrLE-N9bYZiR=a9==WkTAbOYGr9LyCPSOURHp7OLd1_w@mail.gmail.com' \
--to=clement020302@gmail.com \
--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).