all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [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

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.