* Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags @ 2018-05-02 11:24 Alain.Cochard 2018-05-04 21:44 ` Nicolas Goaziou 2018-05-08 8:17 ` Bastien 0 siblings, 2 replies; 11+ messages in thread From: Alain.Cochard @ 2018-05-02 11:24 UTC (permalink / raw) To: emacs-orgmode Hello. With variable org-complete-tags-always-offer-all-agenda-tags set to true, tag completion does not work as I expect. Specifically, upon 'C-c C-q' or 'C-c C-c', it works fine if I enter in the minibuffer some letter and then press <TAB>, but not if I just press <TAB>; in that case, a colon (:) is inserted in the minibuffer, and another colon for each subsequent <TAB>, ad infinitum. Is this normal? Incidentally, shouldn't this variable be documented in the manual? (Section "6.2 Setting tags" would seem a natural place for that.) I had to resort to internet search... Regards, Alain I have: GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Org mode version 9.1.12 (9.1.12-elpa @ /home/cochard/.emacs.d/elpa/org-20180427/) -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-02 11:24 Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags Alain.Cochard @ 2018-05-04 21:44 ` Nicolas Goaziou 2018-05-08 8:17 ` Bastien 1 sibling, 0 replies; 11+ messages in thread From: Nicolas Goaziou @ 2018-05-04 21:44 UTC (permalink / raw) To: Alain.Cochard; +Cc: emacs-orgmode Hello, Alain.Cochard@unistra.fr writes: > With variable org-complete-tags-always-offer-all-agenda-tags set to > true, tag completion does not work as I expect. Specifically, upon > 'C-c C-q' or 'C-c C-c', it works fine if I enter in the minibuffer > some letter and then press <TAB>, but not if I just press <TAB>; in > that case, a colon (:) is inserted in the minibuffer, and another > colon for each subsequent <TAB>, ad infinitum. Is this normal? Could you try again with master branch? Some changes related to tags happened there recently. > Incidentally, shouldn't this variable be documented in the manual? > (Section "6.2 Setting tags" would seem a natural place for that.) I > had to resort to internet search... I don't know specifically about this one, but not all variables can be documented in the manual, there are too many of them. An alternate way to find about a variable is to explore Org variables with M-x customize-group <RET> org Regards, -- Nicolas Goaziou ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-02 11:24 Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags Alain.Cochard 2018-05-04 21:44 ` Nicolas Goaziou @ 2018-05-08 8:17 ` Bastien 2018-05-12 6:32 ` Alain.Cochard 1 sibling, 1 reply; 11+ messages in thread From: Bastien @ 2018-05-08 8:17 UTC (permalink / raw) To: Alain.Cochard; +Cc: emacs-orgmode Hi Alain, Alain.Cochard@unistra.fr writes: > With variable org-complete-tags-always-offer-all-agenda-tags set to > true, tag completion does not work as I expect. Specifically, upon > 'C-c C-q' or 'C-c C-c', it works fine if I enter in the minibuffer > some letter and then press <TAB>, but not if I just press <TAB>; in > that case, a colon (:) is inserted in the minibuffer, and another > colon for each subsequent <TAB>, ad infinitum. Is this normal? I could not reproduce this problem from Org 9.1.12 and the master branch. Can you try with a bare emacs -Q and report against maint or master branch? Thanks, -- Bastien ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-08 8:17 ` Bastien @ 2018-05-12 6:32 ` Alain.Cochard 2018-05-12 8:20 ` Gregor Zattler 2018-05-13 21:01 ` Nicolas Goaziou 0 siblings, 2 replies; 11+ messages in thread From: Alain.Cochard @ 2018-05-12 6:32 UTC (permalink / raw) To: Bastien; +Cc: emacs-orgmode Bastien writes on Tue 8 May 2018 10:17: > Hi Alain, > > Alain.Cochard@unistra.fr writes: > > > With variable org-complete-tags-always-offer-all-agenda-tags set to > > true, tag completion does not work as I expect. Specifically, upon > > 'C-c C-q' or 'C-c C-c', it works fine if I enter in the minibuffer > > some letter and then press <TAB>, but not if I just press <TAB>; in > > that case, a colon (:) is inserted in the minibuffer, and another > > colon for each subsequent <TAB>, ad infinitum. Is this normal? > > I could not reproduce this problem from Org 9.1.12 and the master > branch. Can you try with a bare emacs -Q and report against maint > or master branch? Hello. Sorry for the late feedback. Since Nicolas' answer I have been trying to get acquainted with getting Org from git. I made some progress, but am not sure I am there yet. So there is the initial issue and there is the git issue, hence the probably poorly-ordered/poorly-thought points which follow. * Since 9.1.13 appeared, I have updated to it: (Fedora 23) Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: Org mode version 9.1.13 (9.1.13-elpa @ /home/cochard/.emacs.d/elpa/org-20180507/) and the problem remains. * I have been able to test on another machine: (Fedora 26) Emacs : GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.19) of 2017-09-12 Package: Org mode version 9.1.13 (9.1.13-elpa @ /root/.emacs.d/elpa/org-20180507/) and the problem is /not/ there. * In all cases above I used command 'emacs' with a void .emacs, setting variables org-agenda-files and org-complete-tags-always-offer-all-agenda-tags using 'M-x eval-expression'. * You ask "Can you try with a bare emacs -Q and report against maint or master branch?" Sorry, your question is not explicit enough for me (one or two questions?). For sure, with emacs -Q, it gives: Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/) and the problem is there. Did you mean 'emacs -Q' with some git branch? If so, I don't know how to do it... * I have learned about master and maint at https://orgmode.org/worg/dev/index.html * I have tried to install a git repository. For this I have tried to follow https://orgmode.org/worg/org-tutorials/org4beginners.html section "Running the latest version of Org mode" It might be for beginners, but it was not easy for me, so I am not sure I did it right. [In particular I had to hide my .emacs.d directory, and was not sure about (require 'org-install) vs (require 'org) vs no require at all, in the .emacs file.] I got: Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: Org mode version 9.1.13 (release_9.1.13-744-g13fb6a @ /home/cochard/Org/Coch-git/org-mode/lisp/) Is that the master branch? With this setup, the problem remains. * About getting git: In addition to section "Running the latest version of Org mode" at https://orgmode.org/worg/org-tutorials/org4beginners.html, I also read https://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development, as well as section "1.2 Installation" of the manual (v9.1.13), subsection "Using Org's git repository". Are those 3 sources are supposed to provide essentially the same pieces of information? If so maybe they could be merged/updated/coordinated? -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-12 6:32 ` Alain.Cochard @ 2018-05-12 8:20 ` Gregor Zattler 2018-05-12 14:20 ` Alain.Cochard 2018-05-13 21:01 ` Nicolas Goaziou 1 sibling, 1 reply; 11+ messages in thread From: Gregor Zattler @ 2018-05-12 8:20 UTC (permalink / raw) To: emacs-orgmode Hi Alain, * Alain.Cochard@unistra.fr [2018-05-12; 08:32]: > I got: > > Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version > 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: > Org mode version 9.1.13 (release_9.1.13-744-g13fb6a @ > /home/cochard/Org/Coch-git/org-mode/lisp/) > > Is that the master branch? Seems so. > Did you mean 'emacs -Q' with some git branch? If so, I don't know how > to do it... emacs -Q -L /home/cochard/Org/Coch-git/org-mode/lisp/ which ads git Org to the load-path perhaps even emacs -Q -L /home/cochard/Org/Coch-git/org-mode/lisp/ -l /home/cochard/Org/Coch-git/org-mode/lisp/org.el which even loads Org mode. You could write a small file with the necessary settings and load it also emacs -Q -L /home/cochard/Org/Coch-git/org-mode/lisp/ -l /home/cochard/Org/Coch-git/org-mode/lisp/org.el -l /tmp/minimal-exaple.el Ciao; Gregor -- -... --- .-. . -.. ..--.. ...-.- ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-12 8:20 ` Gregor Zattler @ 2018-05-12 14:20 ` Alain.Cochard 0 siblings, 0 replies; 11+ messages in thread From: Alain.Cochard @ 2018-05-12 14:20 UTC (permalink / raw) To: Gregor Zattler; +Cc: emacs-orgmode Gregor Zattler writes on Sat 12 May 2018 10:20: > > Did you mean 'emacs -Q' with some git branch? If so, I don't > > know how to do it... > > emacs -Q -L /home/cochard/Org/Coch-git/org-mode/lisp/ > > which ads git Org to the load-path > > perhaps even > > emacs -Q -L /home/cochard/Org/Coch-git/org-mode/lisp/ -l > /home/cochard/Org/Coch-git/org-mode/lisp/org.el > > which even loads Org mode. Many thanks, Gregor. With both of your suggestions, the problem is there. -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-12 6:32 ` Alain.Cochard 2018-05-12 8:20 ` Gregor Zattler @ 2018-05-13 21:01 ` Nicolas Goaziou 2018-05-14 14:20 ` Alain.Cochard 1 sibling, 1 reply; 11+ messages in thread From: Nicolas Goaziou @ 2018-05-13 21:01 UTC (permalink / raw) To: Alain.Cochard; +Cc: Bastien, emacs-orgmode Hello, Alain.Cochard@unistra.fr writes: > Did you mean 'emacs -Q' with some git branch? If so, I don't know how > to do it... Yes. It means "emacs -Q" and a recent Org loaded. See below. > Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version > 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: > Org mode version 9.1.13 (release_9.1.13-744-g13fb6a @ > /home/cochard/Org/Coch-git/org-mode/lisp/) > > Is that the master branch? It looks like so. > With this setup, the problem remains. Here is what I did. I created a file "mini-init.el", containing the following lines: --8<---------------cut here---------------start------------->8--- (add-to-list 'load-path "/path/to/org-mode/lisp/") (setq org-complete-tags-always-offer-all-agenda-tags t) (setq org-agenda-files '("/tmp/bug-agenda.org")) (find-file "/tmp/bug-agenda2.org") --8<---------------cut here---------------end--------------->8--- The file "/tmp/bug-agenda.org" contains the following: --8<---------------cut here---------------start------------->8--- * Foo :bar: --8<---------------cut here---------------end--------------->8--- The file "/tmp/bug-agenda2.org" is an empty file. I then run: emacs -Q -l mini-init.el When in the empty document ("bug-agenda2.org"), I type "* H", then C-c C-q then <TAB>, I get "bar" in the minibuffer and no colon is inserted. So, I cannot reproduce your issue. > Are those 3 sources are supposed to provide essentially the same > pieces of information? If so maybe they could be > merged/updated/coordinated? The sole official documentation is the manual. Worg is edited by users. Of course, it would be nice if they could be coordinated, but we need volunteers for that. Regards, -- Nicolas Goaziou ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-13 21:01 ` Nicolas Goaziou @ 2018-05-14 14:20 ` Alain.Cochard 2018-05-14 14:43 ` Nicolas Goaziou 0 siblings, 1 reply; 11+ messages in thread From: Alain.Cochard @ 2018-05-14 14:20 UTC (permalink / raw) To: Nicolas Goaziou; +Cc: Bastien, emacs-orgmode, Alain.Cochard Nicolas Goaziou writes on Sun 13 May 2018 23:01: > Here is what I did. > > I created a file "mini-init.el", containing the following lines: > > --8<---------------cut here---------------start------------->8--- > (add-to-list 'load-path "/path/to/org-mode/lisp/") > (setq org-complete-tags-always-offer-all-agenda-tags t) > (setq org-agenda-files '("/tmp/bug-agenda.org")) > (find-file "/tmp/bug-agenda2.org") > --8<---------------cut here---------------end--------------->8--- > > The file "/tmp/bug-agenda.org" contains the following: > > --8<---------------cut here---------------start------------->8--- > * Foo :bar: > --8<---------------cut here---------------end--------------->8--- > > The file "/tmp/bug-agenda2.org" is an empty file. > > I then run: > > emacs -Q -l mini-init.el > > When in the empty document ("bug-agenda2.org"), I type "* H", then C-c > C-q then <TAB>, I get "bar" in the minibuffer and no colon is inserted. > > So, I cannot reproduce your issue. Thank you for not giving up on me! Turned out that the problem was due to a "::" in one of my tag lists in one of my agenda files... Specifically, doing as you did above, I don't have the problem, while I do get it if replacing ":bar:" by "::bar:" or ":foo::bar:" in "/tmp/bug-agenda.org". I should note, however, that org-lint does not complain about the "::" occurrence. Regards -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-14 14:20 ` Alain.Cochard @ 2018-05-14 14:43 ` Nicolas Goaziou 2018-05-14 14:52 ` Alain.Cochard 0 siblings, 1 reply; 11+ messages in thread From: Nicolas Goaziou @ 2018-05-14 14:43 UTC (permalink / raw) To: Alain.Cochard; +Cc: Bastien, emacs-orgmode Hello, Alain.Cochard@unistra.fr writes: > Thank you for not giving up on me! Turned out that the problem was > due to a "::" in one of my tag lists in one of my agenda files... > > Specifically, doing as you did above, I don't have the problem, while > I do get it if replacing ":bar:" by "::bar:" or ":foo::bar:" in > "/tmp/bug-agenda.org". > > I should note, however, that org-lint does not complain about the "::" > occurrence. Could you describe exactly the context where that happened? I.e., what is exactly "a "::" in one of my tag lists in one of my agenda files...": * This :tag::tag2: or that: #+TAGS: tag1 :: tag2 Regards, -- Nicolas Goaziou 0x80A93738 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-14 14:43 ` Nicolas Goaziou @ 2018-05-14 14:52 ` Alain.Cochard 2018-05-14 15:42 ` Nicolas Goaziou 0 siblings, 1 reply; 11+ messages in thread From: Alain.Cochard @ 2018-05-14 14:52 UTC (permalink / raw) To: Nicolas Goaziou; +Cc: Bastien, emacs-orgmode Nicolas Goaziou writes on Mon 14 May 2018 16:43: > Hello, > > Alain.Cochard@unistra.fr writes: > > > Thank you for not giving up on me! Turned out that the problem was > > due to a "::" in one of my tag lists in one of my agenda files... > > > > Specifically, doing as you did above, I don't have the problem, while > > I do get it if replacing ":bar:" by "::bar:" or ":foo::bar:" in > > "/tmp/bug-agenda.org". > > > > I should note, however, that org-lint does not complain about the "::" > > occurrence. > > Could you describe exactly the context where that happened? I.e., what > is exactly "a "::" in one of my tag lists in one of my agenda > files...": > > * This :tag::tag2: Yes, this. > or that: > > #+TAGS: tag1 :: tag2 Not that, but I just tried: it does not trigger the problem. -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.cochard@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France | Fax: +33 (0)3 68 85 01 25 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags 2018-05-14 14:52 ` Alain.Cochard @ 2018-05-14 15:42 ` Nicolas Goaziou 0 siblings, 0 replies; 11+ messages in thread From: Nicolas Goaziou @ 2018-05-14 15:42 UTC (permalink / raw) To: Alain.Cochard; +Cc: Bastien, emacs-orgmode Alain.Cochard@unistra.fr writes: > > Could you describe exactly the context where that happened? I.e., what > > is exactly "a "::" in one of my tag lists in one of my agenda > > files...": > > > > * This :tag::tag2: > > Yes, this. OK. I added a checker in Org Lint. ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2018-05-14 15:42 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-05-02 11:24 Tag completion does not work well with org-complete-tags-always-offer-all-agenda-tags Alain.Cochard 2018-05-04 21:44 ` Nicolas Goaziou 2018-05-08 8:17 ` Bastien 2018-05-12 6:32 ` Alain.Cochard 2018-05-12 8:20 ` Gregor Zattler 2018-05-12 14:20 ` Alain.Cochard 2018-05-13 21:01 ` Nicolas Goaziou 2018-05-14 14:20 ` Alain.Cochard 2018-05-14 14:43 ` Nicolas Goaziou 2018-05-14 14:52 ` Alain.Cochard 2018-05-14 15:42 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).