From: David Maus <maus.david@gmail.com>
To: Manish <mailtomanish.sharma@gmail.com>
Cc: Emacs Orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: [Worg] Addition to org-hacks: Remove redundant tags
Date: Tue, 26 Jan 2010 17:22:59 +0100 [thread overview]
Message-ID: <873a1sj0nw.wl%maus.david@gmail.com> (raw)
In-Reply-To: <e7cdbe31001252134t5c09cbbct233ac8ac4178f364@mail.gmail.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 302 bytes --]
At Tue, 26 Jan 2010 11:04:06 +0530,
Manish wrote:
>
> Applied to Worg.
>
> Thanks
Ooops, attached patch fixes a small glitch in this function that
prevented it working on headlines without tags.
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... maus.david@gmail.com
[-- Attachment #1.1.2: 0001-fix-small-glitch-in-dmj-org-remove-redundant-tags.patch --]
[-- Type: application/octet-stream, Size: 859 bytes --]
From 234f58218da08119432212dfe16bbe649b4c9827 Mon Sep 17 00:00:00 2001
From: David Maus <maus.david@gmail.com>
Date: Tue, 26 Jan 2010 17:21:26 +0100
Subject: [PATCH] fix small glitch in dmj/org-remove-redundant-tags
---
org-hacks.org | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/org-hacks.org b/org-hacks.org
index 6d0c915..76a7dcd 100644
--- a/org-hacks.org
+++ b/org-hacks.org
@@ -860,7 +860,7 @@ headline or the #+FILETAGS: statement.
(save-excursion
(org-map-entries
'(lambda ()
- (let ((alltags (split-string (org-entry-get (point) "ALLTAGS") ":"))
+ (let ((alltags (split-string (or (org-entry-get (point) "ALLTAGS") "") ":"))
local inherited tag)
(dolist (tag alltags)
(if (get-text-property 0 'inherited tag)
--
1.6.5
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-01-26 16:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-25 19:23 [Worg] Addition to org-hacks: Remove redundant tags David Maus
2010-01-26 5:34 ` Manish
2010-01-26 16:22 ` David Maus [this message]
2010-01-26 16:54 ` Manish
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=873a1sj0nw.wl%maus.david@gmail.com \
--to=maus.david@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mailtomanish.sharma@gmail.com \
/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).