From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yHFJO9xuCWWnyAAA9RJhRA:P1 (envelope-from ) for ; Tue, 19 Sep 2023 11:50:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yHFJO9xuCWWnyAAA9RJhRA (envelope-from ) for ; Tue, 19 Sep 2023 11:50:21 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B26D23D635 for ; Tue, 19 Sep 2023 11:50:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=C0uPaxap; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695117020; a=rsa-sha256; cv=none; b=YnGvnh4zAeFxxJmnWV/5oztUQol65cOVkSK1lnsyIN/WCUYGpCJU8vfiT7K9Gf9Y5pZkD5 j2fPy1z+MpOf5FCNKaH79eqX3zNlL035yRWJwwBQOq9Kf3EDNndCdcaH4HlQm6K3tFnKjo 34rGKCS8I2+W3JI9ceeKxfYJc8EH5s8n2bkr6kYtYvINmGPt1RO1gpiEWfRZUVURTEqUb6 ydpM6gI7a96hEfqY06IEkmyrhwbpZJfvWY3pA/Tl5SgZ9/vb4tH1Jz/j4/XOQ29NK0FZtc j7yaCWXPpH3WR+oolgJuX1b9ZU7KpofdaF54V3FqIvZdqj7aP7jaX5I9Q2o0jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695117020; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YqdGiHr48TAEwCCtCqiVbi9qQXd/JjKO18I1I9sPyWc=; b=FLKIx3AuRAS/fV0vCa7iAow4MHFKjJ5kLX9v35kEAGZmFVr7TA39K/R8g0DlB+/DZe9Bwh 6on5cKOFj5+k+vd2PRrTnfQt7cw/gCYmSchKVy59c4tnnwDYMV+PNpfWJ58i21Y0rmKETp tLL5HqgnZmlC4kbP05h9gVN/wJtqkhD8BRF2yz0pQTNeHel4U4Ulnjr1onhGLA3Ev0ey3M 77llQVlH85nkhX0uXBu4qmGHWWUQyqMAOU8vWW/C77SznJ3iv5Dv6YiQi0vdl0SJNndtTl DJ4QWYW9yHiMjgxvAWxwusHJ7mzlcqZPcFa58+yKIghbXfuyjz8XdK37p26K3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=C0uPaxap; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiXMY-0000r9-Jc; Tue, 19 Sep 2023 05:49:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiXMU-0000qj-Sn for emacs-orgmode@gnu.org; Tue, 19 Sep 2023 05:49:42 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiXMQ-0000K6-4E for emacs-orgmode@gnu.org; Tue, 19 Sep 2023 05:49:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E7A44240101 for ; Tue, 19 Sep 2023 11:49:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695116975; bh=hTiAGpWlPMpKzfUsS5APLNFviqON+m87IiEixn0kfcw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=C0uPaxapSM6ONa5baAiuPWj7JvO756TXF5VywItEzoUmMSHvlhvVTDzjxxUpPncG4 TC/P2+ALaNxT27cWWzrW4mFxZWHxgLPPi0nYfEmSkgDGNWaGdypr6XzLE7kjWShgLR ukolxbOCno3kOh4pYYcQl1mix21wUIZz+wiegFvtFJdPM6l1y8TS24C7tcd03WNX3D Dx7lAZiu1+wrT28LG+6RAPS0cMTFnWJNaiHaDBh6LvdArzDYIdNVgpBOI9Dn0mPqn1 iZmzuqwCiGcUgARvzccN2DWekx6IGc2LIsIVlBwtFpPShNZxku+TzYo4umr+ggzjad wNQBm09XRvwRQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RqcMM0xRvz6txF; Tue, 19 Sep 2023 11:49:34 +0200 (CEST) From: Ihor Radchenko To: sreenivas sumadithya Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Feature request: Add group checks for manual tag setting (not just fast tags) [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)] In-Reply-To: References: Date: Tue, 19 Sep 2023 09:50:50 +0000 Message-ID: <87cyyexzid.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.84 X-Spam-Score: -7.84 X-Migadu-Queue-Id: B26D23D635 X-Migadu-Scanner: mx2.migadu.com X-TUID: HZSnH4opjbzC sreenivas sumadithya writes: > Currently, tag groups/ mutually exclusive tags can be set when tags are set > manually (without shortcuts being assigned to the tags / fast tags). Need > the behavior seen in fast tags in manual tagging for tag groups. > > Reproduction: > - Create an org file > - "#+tags: {dog cat} mat" > - Save the file after setting this. > - Close buffer > - Open file > - Make a heading > - C-c C-q dog > - C-c C-q cat > > Result: > - Both 'cat' and 'dog' are assigned to the heading. > > Desired behavior: > - One of the tags should be replaced by the other. I can only follow the described recipe when setting org-use-fast-tag-selection to non-standard value of t. For such scenario, I just pushed a fix onto main - entering group tags from exclusive groups will now clear already applied tags from the same group. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=edcb8eca5 In case of the default settings (org-use-fast-tag-selection = auto), the interface is different - prompt will list all the tags already present in the heading: - C-c C-q dog from the recipe will look like TAGS: TAGS: dog * heading :dog: - Another C-c C-q will, however, yield TAGS: :dog: entering "cat" manually TAGS: :dog:cat will still force setting both the tags: * heading :dog:cat: In the above scenario, there is no non-ambiguous way to know which exclusive tag is implied by the user. So, I am inclined to keep the current behavior. Unless there are better ideas. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at