spacemacs
spacemacs copied to clipboard
org-tags-view broken.
None of the advanced search options in org-tags-view described in the manual https://orgmode.org/manual/Matching-tags-and-properties.html#Matching-tags-and-properties, like logical operators, excluding tags, searching for properties or todo states work. This issue still persists if I use a fresh autogenerated .spacemacs file with only the org layer uncommented so it's not an issue with the settings in my own dotfile, it also persists using the develop branch. Everything works as expected in vanilla emacs.
Reproduction guide beetle
- Start Emacs
- M-x org-tags-view
- Search the contents of org-agenda-files with an expression that is more complicated than a list of tags divided with space.
Observed behaviour: eyes broken_heart
- Searching for a tag or a list of tags divided with space works.
- Anything more complicated, like +apple-orange, or work+TODO="WAITING" doesn't.
Expected behaviour: heart smile
- Searching works as described in the org-mode manual.
System Info computer
- OS: gnu/linux
- Emacs: 26.3
- Spacemacs: 0.200.13
- Spacemacs branch: master (rev. d46eacd83)
- Graphic display: t
- Distribution: spacemacs
- Editing style: vim
- Completion: helm
- Layers:
(helm auto-completion git markdown org
(shell :variables shell-default-height 30 shell-default-position 'bottom shell-default-shell 'eshell)
spell-checking syntax-checking version-control emacs-lisp shell-scripts python c-c++ html bibtex
(latex :variables latex-build-command "LatexMk" TeX-view-program-list
'(("Zathura"
("zathura %o"
(mode-io-correlate " --synctex-forward %n:0:%b -x \"emacsclient +%{line} %{input}\""))))
TeX-view-program-selection
'((output-pdf "Zathura"))
TeX-source-correlate-mode t latex-enable-auto-fill t latex-enable-folding t latex-enable-magic t TeX-source-correlate-start-server t TeX-source-correlate-method 'synctex)
pdf-tools evil-snipe evil-cleverparens themes-megapack)
- System configuration features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2
If you temporarily deactivate helm-mode, do you get the org-tags-view functions that you need?
(You can toggle helm-mode by doing <SPC> <SPC>
and searching for helm-mode.)
Yes, it seems to work without helm on. Temporarily switching to Ivy is one solution I suppose.
Yes, it feels less like a solution and more like a temporary work-around. I have no idea whether Helm can be made to handle org-tags in a more helpful/more correct way.
Could the issue be that helm selects the first existing tag that it finds.
And the selection needs to be moved up to the line that starts with: [?]
For example, when typing: +apple-orange
or work+TODO="WAITING"
- In Spacemacs, the
work
tag is selected.
- Without Spacemacs, just Emacs and Helm, the
apple
tag is selected.
If that's not the issue for you, then something might be different in your setup, because this is what I'm seeing in both Linux and Windows:
- Spacemacs (on both branches:
master
anddevelop
) (updated packages) - Emacs and just
helm
installed (only tested inWindows
) (updated packages) - Emacs without any packages (
emacs --quick
)
The org versions are:
- Spacemacs:
Org mode version 9.3.7 (9.3.7-2-g706970-elpaplus @ c:/Users/username/.emacs.d/elpa/26.3/develop/org-plus-contrib-20200608/)
- Without Spacemacs:
Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ c:/Users/username/Applications/emacs-26.3-x86_64/share/emacs/26.3/lisp/org/)
With this example org file: org-tags-view_broken._13509.org
#+TODO: TODO WAITING | DONE CANCELED
* a :apple:
* b :orange:
* c :apple:orange:
* d :work:
* WAITING e :work:
It's added to the org-agenda-files
list:
(setq org-agenda-files '("~/temp/org-tags-view_broken._13509.org"))
In the screenshots below:
- Spacemacs is to the left
- Emacs and
helm
in the middle - and just
emacs --quick
to the right
Opening M-x org-tags-view
and searching for: +apple-orange
Finds the heading with the apple
tag, but not the one with the apple
and orange
tags, as expected.
Opening M-x org-tags-view
and searching for: work+TODO="WAITING"
Finds the heading with both the work
tag and the WAITING
state, but not the heading with only the work
tag, as expected.
Searching for a tag or a list of tags divided with space works.
Adding a space between the tags doesn't work for me.
When helm-mode
is enabled, then it's possible to add a space between the tags, but it only searches for the first word.
With helm-mode
disabled, then SPC
is bound to: minibuffer-complete-word
Pressing SPC
shows `[Sole completion].
System Info
PopOS 20.04 (click to expand)
#### System Info :computer: - OS: gnu/linux - Emacs: 26.3.50 - Spacemacs: 0.300.0 - Spacemacs branch: develop (rev. 5fcd84d84) - Graphic display: t - Distribution: spacemacs - Editing style: vim - Completion: helm - Layers: ```elisp (auto-completion command-log emacs-lisp fasd git helm lsp markdown multiple-cursors (org :variables org-agenda-files '("~/org/notes.org")) ranger (shell :variables shell-default-height 30 shell-default-position 'bottom) spell-checking syntax-checking themes-megapack treemacs version-control) ``` - System configuration features: XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS
Windows 1903 (click to expand)
#### System Info :computer: - OS: windows-nt - Emacs: 26.3 - Spacemacs: 0.300.0 - Spacemacs branch: develop (rev. 5fcd84d84) - Graphic display: t - Distribution: spacemacs - Editing style: vim - Completion: helm - Layers: ```elisp (autohotkey (auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-enable-snippets-in-popup t) emacs-lisp git helm html javascript lsp (markdown :variables markdown-live-preview-engine 'vmd markdown-command "vmd") multiple-cursors (org :variables org-agenda-files '("~/org/notes.org" "~/temp/org-tags-view_broken._13509.org")) (python :variables) ranger (shell :variables shell-default-shell 'eshell shell-default-height 30) spell-checking (syntax-checking :variables syntax-checking-enable-by-default nil) treemacs version-control) ``` - System configuration features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!