From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Danjou Subject: Re: [PATCH] Always return refreshed category Date: Fri, 24 Dec 2010 17:33:50 +0100 Message-ID: <87tyi3p1u9.fsf@keller.adm.naquadah.org> References: <1293026785-12467-1-git-send-email-julien@danjou.info> <74C83FF2-959A-4C7D-B161-0C333EEE36DD@gmail.com> <87d3osa42b.fsf@fastmail.fm> <87r5d7xjfv.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1539928340==" Return-path: Received: from [140.186.70.92] (port=50760 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PWAaf-00046E-2h for emacs-orgmode@gnu.org; Fri, 24 Dec 2010 11:34:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PWAad-0000n5-Rw for emacs-orgmode@gnu.org; Fri, 24 Dec 2010 11:34:00 -0500 Received: from prometheus.naquadah.org ([212.85.154.174]:45918 helo=mx1.naquadah.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PWAad-0000mb-N1 for emacs-orgmode@gnu.org; Fri, 24 Dec 2010 11:33:59 -0500 In-Reply-To: <87r5d7xjfv.fsf@fastmail.fm> (Matt Lundin's message of "Fri, 24 Dec 2010 10:46:28 -0500") 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: Matt Lundin Cc: emacs-orgmode@gnu.org, Carsten Dominik --===============1539928340== Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain On Fri, Dec 24 2010, Matt Lundin wrote: > With your original patch, I am also frequently seeing "???" as a > category in the agenda buffer. E.g., > > ???: In -1 d.: TODO Christmas gifts wrapped :home: > > This occurs with files/entries that do not have an in-buffer category > statement (e.g, #+CATEGORY: or :CATEGORY:). Seems like the refresh function set this by default if no category is found. That looks stupid, I wonder why there's that line. Here's a patch that should fix it. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-in-category.patch Content-Transfer-Encoding: quoted-printable From=2089464e137f66cfeb144938692479bf95e9187a4d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 24 Dec 2010 17:32:45 +0100 Subject: [PATCH] Fix ??? in category * org.el (org-refresh-category-properties): Do not set ??? as default category if no default. Signed-off-by: Julien Danjou =2D-- lisp/org.el | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 863a80b..5fb2ba4 100644 =2D-- a/lisp/org.el +++ b/lisp/org.el @@ -8154,8 +8154,7 @@ call CMD." ((null org-category) (if buffer-file-name (file-name-sans-extension =2D (file-name-nondirectory buffer-file-name)) =2D "???")) + (file-name-nondirectory buffer-file-name)))) ((symbolp org-category) (symbol-name org-category)) (t org-category))) beg end cat pos optionp) =2D-=20 1.7.2.3 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =2D-=20 Julien Danjou =E2=9D=B1 http://julien.danjou.info --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk0Uy24ACgkQpGK1HsL+5c0LgwCgiEeidjW1bPe4RLGpzx3e1S8L fNUAn3TgAP3uL6pcTyYHj20r+wLWY4lG =fYpq -----END PGP SIGNATURE----- --==-=-=-- --===============1539928340== 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 --===============1539928340==--