From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Scala Subject: [Patch] org-capture.el Date: Wed, 11 Aug 2010 23:02:50 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0481530441==" Return-path: Received: from [140.186.70.92] (port=54741 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjP0J-0003pb-2L for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 00:02:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjP0H-0006f8-Cp for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 00:02:54 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:51081) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjP0H-0006ew-7k for emacs-orgmode@gnu.org; Thu, 12 Aug 2010 00:02:53 -0400 Received: by wyg36 with SMTP id 36so1023361wyg.0 for ; Wed, 11 Aug 2010 21:02:51 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0481530441== Content-Type: multipart/alternative; boundary=0016364165999aacb2048d987064 --0016364165999aacb2048d987064 Content-Type: text/plain; charset=ISO-8859-1 When capture templates with tags are finalized, those tags are not realigned. I think this fixes it (does in the cases I've tested). diff --git a/lisp/org-capture.el b/lisp/org-capture.el index ece5006..03911da 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -500,7 +500,8 @@ bypassed." (save-excursion (when (ignore-errors (org-back-to-heading)) (org-update-parent-todo-statistics) - (org-update-checkbox-count))) + (org-update-checkbox-count) + (org-set-tags nil t))) ;; FIXME Here we should do the sorting ;; If we have added a table line, maybe recompute? (when (and (eq (org-capture-get :type 'local) 'table-line) -- Mark Scala --0016364165999aacb2048d987064 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable When capture templates with tags are finalized, those tags are not realigne= d.=A0 I think this fixes it (does in the cases I've tested).

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index ece5006..= 03911da 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -500,7 +500,8 = @@ bypassed."
(save-excursion
(when (ignore-errors (org-ba= ck-to-heading))
(org-update-parent-todo-statistics)
- (org-= update-checkbox-count)))
+ (org-update-checkbox-count)
+ (org-set-tags nil t)))
;; F= IXME Here we should do the sorting
;; If we have added a table line, m= aybe recompute?
(when (and (eq (org-capture-get :type 'local) '= ;table-line)

--
Mark Scala

--0016364165999aacb2048d987064-- --===============0481530441== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0481530441==--