org-pcomplete: Fix tag completion
commit8b7ba29b601d1cc1b3f8d3e4aa96bdc3cd7605f6
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 25 Nov 2018 01:01:41 +0000 (25 02:01 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 25 Nov 2018 01:01:41 +0000 (25 02:01 +0100)
tree17557f47039512bc6f103d6ecb3561715adb7c50
parent4aa6a37d24b5fefaa8c963fc96f90f05c98c8e96
org-pcomplete: Fix tag completion

* lisp/org-pcomplete.el (org-thing-at-point): Only complete where tags
  could be located.
(pcomplete/org-mode/tag): Add paring argument to avoid looking at
other arguments on the same line.
* testing/lisp/test-org-pcomplete.el (test-org-pcomplete/tag): New test.

Reported-by: Alain.Cochard@unistra.fr
<http://lists.gnu.org/r/emacs-orgmode/2018-11/msg00154.html>
lisp/org-pcomplete.el
testing/lisp/test-org-pcomplete.el