From: Carsten Dominik <cdominik@newartisans.com>
To: emacs-orgmode@gnu.org
Subject: [Accepted] org-get-tags-at: exclude filetags when local is t
Date: Mon, 2 May 2011 09:17:53 +0200 (CEST) [thread overview]
Message-ID: <20110502071753.9EFE94366F7@u016822.science.uva.nl> (raw)
In-Reply-To: 87zkn792zq.fsf@fastmail.fm
Patch 774 (http://patchwork.newartisans.com/patch/774/) is now "Accepted".
Maintainer comment: none
This relates to the following submission:
http://mid.gmane.org/%3C87zkn792zq.fsf%40fastmail.fm%3E
Here is the original message containing the patch:
> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [O] org-get-tags-at: exclude filetags when local is t
> Date: Sat, 30 Apr 2011 20:19:54 -0000
> From: Matt Lundin <mdl@imapmail.org>
> X-Patchwork-Id: 774
> Message-Id: <87zkn792zq.fsf@fastmail.fm>
> To: Org Mode <emacs-orgmode@gnu.org>
>
> * lisp/org.el (org-get-tags-at): Don't include filetags if local is t.
>
> The function org-get-tags-at and the functions that called it were
> including inherited file tags even if the user requested only local
> tags. This patch fixes the behavior.
>
> ---
> lisp/org.el | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/lisp/org.el b/lisp/org.el
> index 61668ce..afcd4cb 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -12798,7 +12798,9 @@ ignore inherited ones."
> (or (org-up-heading-safe) (error nil))
> (setq parent t)))
> (error nil)))))
> - (append (org-remove-uniherited-tags org-file-tags) tags)))))
> + (if local
> + tags
> + (append (org-remove-uniherited-tags org-file-tags) tags))))))
>
> (defun org-add-prop-inherited (s)
> (add-text-properties 0 (length s) '(inherited t) s)
>
prev parent reply other threads:[~2011-05-02 7:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-30 15:19 [PATCH] org-get-tags-at: exclude filetags when local is t Matt Lundin
2011-05-02 7:17 ` Carsten Dominik [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=20110502071753.9EFE94366F7@u016822.science.uva.nl \
--to=cdominik@newartisans.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
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).