emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Fleischer <danflscr@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Fast tag de-selection face
Date: Wed, 27 Oct 2021 00:00:41 +0300	[thread overview]
Message-ID: <m2cznrv6va.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

Bumping a patch; it solves a minor bug in which the tags in the fast tag
selection buffer do not toggle their face back to default after being
selected and deselected.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Patch --]
[-- Type: text/x-patch, Size: 1055 bytes --]

From 50fd7e953eed7c339886722c8247d9e492113eb8 Mon Sep 17 00:00:00 2001
From: Daniel Fleischer <danflscr@gmail.com>
Date: Fri, 8 Oct 2021 12:55:04 +0300
Subject: [PATCH] lisp/org.el: Fast tag selection disabled tag face

* lisp/org.el (org-fast-tag-selection): Disabled tags face

A tag can be either selected in "current", "inherited" or disabled. When
disabled, it should have the default face. Previously, if a tag was
already selected, when deselection it will still have an org-todo face.
 lisp/org.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 21b2c5470..bcc8356bb 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12566,8 +12566,7 @@ (defun org-fast-tag-selection (current inherited table &optional todo-table)
 				((member tag current) c-face)
 				((member tag inherited) i-face)
-				(t (get-text-property (match-beginning 1) '
-						      face))))))))
+				(t 'default)))))))
 		  (goto-char (point-min)))))
 	(delete-overlay org-tags-overlay)
 	(if rtn

[-- Attachment #3: Type: text/plain, Size: 23 bytes --]


Daniel Fleischer

             reply	other threads:[~2021-10-26 21:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-26 21:00 Daniel Fleischer [this message]
2022-11-14  5:51 ` [PATCH] Fast tag de-selection face Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2cznrv6va.fsf@gmail.com \
    --to=danflscr@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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