-
Hi! I don't know what I am doing wrong with org-ql-search. I'm using Emacs 29.3 on Linux, with org-ql 0.8.6 and org-mode 9.7.3 (and no other package). I've got a really simple tasks file (
When I try
However, if I try Where am I wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi, I'm guessing it has something to do with using the French for the day of the week there. I don't know how that works internally in Org, as I haven't used that functionality myself, and I haven't heard from anyone with this problem before. Looking at our code, I guess it's because the regexp in In the Org manual, the relevant section seems to be:
So a potential workaround would be to remove the periods from the abbreviations I guess you've set in that variable (and then change your Org files accordingly). Otherwise, if this represents a small incompatibility with Org itself, then it would be a bug to be fixed in Org QL. Let me know what you think. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. I'm not sure I understand: (org-ql-search "/tmp/task.org" '(ts :on -1)) gives, as expected:
Moreover, I didn't change anything in Emacs or Org configuration for french abbreviations. Here is my (defvar elpaca-installer-version 0.7)
(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 :depth 1
:files (:defaults "elpaca-test.el" (: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 (apply #'call-process `("git" nil ,buffer t "clone"
,@(when-let ((depth (plist-get order :depth)))
(list (format "--depth=%d" depth) "--no-single-branch"))
,(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)))
(progn (message "%s" (buffer-string)) (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")))
(add-hook 'after-init-hook #'elpaca-process-queues)
(elpaca `(,@elpaca-order))
;; Install use-package support
(elpaca elpaca-use-package
;; Enable :elpaca use-package keyword.
(elpaca-use-package-mode)
(setq use-package-verbose nil))
(elpaca-wait)
(use-package org
:ensure ( org
:branch "bugfix" ))
(use-package org-ql
:ensure t
:defer t) Here is the value of (("sun" . 0)
("mon" . 1)
("tue" . 2)
("wed" . 3)
("thu" . 4)
("fri" . 5)
("sat" . 6)
("sunday" . 0)
("monday" . 1)
("tuesday" . 2)
("wednesday" . 3)
("thursday" . 4)
("friday" . 5)
("saturday" . 6)) |
Beta Was this translation helpful? Give feedback.
-
This should be fixed on v0.8.7 and master now. Thanks. |
Beta Was this translation helpful? Give feedback.
This should be fixed on v0.8.7 and master now. Thanks.