syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

org-tags-view broken. #13509

Closed acosmicjoke closed 2 months ago

acosmicjoke commented 4 years ago

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

Observed behaviour: eyes broken_heart

Expected behaviour: heart smile

System Info computer

davidpiano commented 4 years ago

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.)

acosmicjoke commented 4 years ago

Yes, it seems to work without helm on. Temporarily switching to Ivy is one solution I suppose.

davidpiano commented 4 years ago

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.

duianto commented 4 years ago

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"

emacs_2020-06-13_08-49-19 emacs_2020-06-13_08-50-50

emacs_2020-06-13_08-53-12 emacs_2020-06-13_08-54-00

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:

The org versions are:

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:

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.

+apple-orange

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.

work+TODO=(dblquote)WAITING(dblquote)


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

github-actions[bot] commented 3 years ago

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!

github-actions[bot] commented 2 years ago

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!

github-actions[bot] commented 5 months ago

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!