From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stephen J. Barr" Subject: helm-mode-org-set-tags adding additional tags Date: Tue, 11 Aug 2015 14:36:11 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3c6360e6a2b051d0fe46d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPHDX-0001sN-P6 for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 17:36:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPHDU-0007bO-IA for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 17:36:19 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:36165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPHDU-0007b8-AX for emacs-orgmode@gnu.org; Tue, 11 Aug 2015 17:36:16 -0400 Received: by lbbpu9 with SMTP id pu9so93755404lbb.3 for ; Tue, 11 Aug 2015 14:36:11 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --001a11c3c6360e6a2b051d0fe46d Content-Type: text/plain; charset=UTF-8 Hello, I am using org-mode 8.2.10 with helm. When I am adding tags to a headline, the first tag offers me completions of all possible tags in the file. However, if I go back later and add additional tags, I am not offered completion. How can I fix this? Thanks, Stephen Stephen J. Barr PhD Student, Operations Management Dept: Information Systems and Operations Management (ISOM) Michael G. Foster School of Business University of Washington Phone: 425 516 5012 Email: stevejb@uw.edu Twitter: @stevejb Website: http://steve.planetbarr.com --001a11c3c6360e6a2b051d0fe46d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I am using org-mode 8.2.10 with = helm. When I am adding tags to a headline, the first tag offers me completi= ons of all possible tags in the file. However, if I go back later and add a= dditional tags, I am not offered completion. How can I fix this?
=
Thanks,
Stephen


Stephen J. Barr
PhD Student, Operations Management
Dept: Information Systems and Operations Management (ISOM)
Michael G. Fost= er School of Business
University of Washi= ngton
Phone: =C2=A0425 516 5012
Tw= itter: @stevejb

--001a11c3c6360e6a2b051d0fe46d-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: [PATCH] Re: helm-mode-org-set-tags adding additional tags Date: Wed, 12 Aug 2015 23:31:50 -0500 Message-ID: <87y4hfu7ux.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPkBH-0003ht-L2 for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 00:31:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPkBE-00040T-Ei for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 00:31:55 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:58601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPkBE-00040J-5E for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 00:31:52 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Stephen J. Barr" Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain "Stephen J. Barr" writes: > I am using org-mode 8.2.10 with helm. When I am adding tags to a > headline, the first tag offers me completions of all possible tags in > the file. However, if I go back later and add additional tags, I am > not offered completion. How can I fix this? I can confirm that this is not just a helm problem. There is a bug with all completion backends with the the following *default* settings: (setq org-use-fast-tag-selection 'auto) ;; provided that shortcuts are ;; defined in org-tag-alist (setq org-fast-tag-selection-single-key nil) (setq org-complete-tags-always-offer-all-agenda-tags nil) Steps to replicate (without helm): M-x org-set-tags [Tab] Select via completion [Ret] [Tab] Only the most recent tab appears [Ret] The following patch should fix the problem. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-completion-when-selecting-more-than-one-tag.patch >From 370ba61a4647bb97d2233ccb6ef84db033824248 Mon Sep 17 00:00:00 2001 From: Matt Lundin Date: Wed, 12 Aug 2015 23:22:22 -0500 Subject: [PATCH] Fix completion when selecting more than one tag * lisp/org.el (org-fast-tag-selection): Make sure to set local variable buffer-tags to actual buffer-tags before pushing selected tag to the list; otherwise, the subsequent completion list will be limited to the one selected tag. --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index a908d9e..d7528fc 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -15314,7 +15314,8 @@ Returns the new tags string, or nil to not change the current settings." "Tag: " (or buffer-tags (with-current-buffer buf - (org-get-buffer-tags))))) + (setq buffer-tags + (org-get-buffer-tags)))))) (quit (setq tg ""))) (when (string-match "\\S-" tg) (add-to-list 'buffer-tags (list tg)) -- 2.5.0 --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Re: helm-mode-org-set-tags adding additional tags Date: Fri, 14 Aug 2015 02:04:49 +0200 Message-ID: <87y4heenvi.fsf@nicolasgoaziou.fr> References: <87y4hfu7ux.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ2So-0003N2-BW for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 20:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQ2Sn-0007Fa-Lb for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 20:03:14 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:60003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ2Sn-0007FT-FT for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 20:03:13 -0400 In-Reply-To: <87y4hfu7ux.fsf@fastmail.fm> (Matt Lundin's message of "Wed, 12 Aug 2015 23:31:50 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Lundin Cc: "Stephen J. Barr" , emacs-orgmode@gnu.org Hello, Matt Lundin writes: > The following patch should fix the problem. Applied. Thank you. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: helm-mode-org-set-tags adding additional tags Date: Tue, 18 Aug 2015 18:17:01 +0200 Message-ID: <87wpws8tc2.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRja7-0006hX-8N for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 12:17:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRja2-0008Kb-37 for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 12:17:47 -0400 Received: from so1.mailgun.net ([198.61.254.11]:35215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRja1-0008IJ-VL for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 12:17:42 -0400 In-Reply-To: (Stephen J. Barr's message of "Tue, 11 Aug 2015 14:36:11 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Stephen J. Barr" Cc: emacs-orgmode@gnu.org Hi Stephen, "Stephen J. Barr" writes: > I am using org-mode 8.2.10 with helm. When I am adding tags to a > headline, the first tag offers me completions of all possible tags in > the file. However, if I go back later and add additional tags, I am > not offered completion. How can I fix this? I'm not clear on how to reproduce this problem. Can you go through the details step by step? Thanks, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: helm-mode-org-set-tags adding additional tags Date: Tue, 18 Aug 2015 18:17:36 +0200 Message-ID: <87si7g8tb3.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRjaX-0007fk-0m for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 12:18:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRjaR-0000Cl-HO for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 12:18:12 -0400 Received: from so1.mailgun.net ([198.61.254.11]:35215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRjaR-0008IJ-DL for emacs-orgmode@gnu.org; Tue, 18 Aug 2015 12:18:07 -0400 In-Reply-To: (Stephen J. Barr's message of "Tue, 11 Aug 2015 14:36:11 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Stephen J. Barr" Cc: emacs-orgmode@gnu.org PS: also, if an external package is used, please explain how to install and use it for the debugging purpose. -- Bastien