emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHED


From: Cletip Cletip
Subject: [BUG?] Org-agenda doesn't work with this error : Search failed: "\<SCHEDULED: *<\([^>]+\)>"
Date: Tue, 10 Oct 2023 17:14:40 +0200

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!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]