From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Loury Subject: Re: [PATCH] Fix `org-refresh-category-properties' Date: Tue, 28 Apr 2015 10:14:11 +0200 Message-ID: <87y4lcekks.fsf@konixwork.incubateur.ens-lyon.fr> References: <87386sitvl.fsf@konixwork.incubateur.ens-lyon.fr> <87egqcr6hb.fsf@nicolasgoaziou.fr> <874mo0g2wx.fsf@konixwork.incubateur.ens-lyon.fr> <871tj4g2gw.fsf@konixwork.incubateur.ens-lyon.fr> <878udcsnpc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn0ew-0006O4-Bm for emacs-orgmode@gnu.org; Tue, 28 Apr 2015 04:14:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yn0et-0005YS-7K for emacs-orgmode@gnu.org; Tue, 28 Apr 2015 04:14:26 -0400 Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:35235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yn0et-0005YK-0X for emacs-orgmode@gnu.org; Tue, 28 Apr 2015 04:14:23 -0400 Received: by widdi4 with SMTP id di4so129634730wid.0 for ; Tue, 28 Apr 2015 01:14:22 -0700 (PDT) In-Reply-To: <878udcsnpc.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: OrgMode ML --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Hello, > > Samuel Loury writes: > >> Samuel Loury writes: >> >>> Dear Nicolas, >> >> [...] >> >>> --8<---------------cut here---------------start------------->8--- >>> #+CATEGORY: c >>> * foo >>> :PROPERTIES: >>> :CATEGORY: a >>> :END: >>> ** bar >>> :PROPERTIES: >>> :CATEGORY: b >>> :END: >>> >>> --8<---------------cut here---------------end--------------->8--- >>> >>> `org-get-category' in the bar headline returns 'a', while I would expect >>> it to return 'b'. >> >> [...] >> >>> I don't understand why one would want to remove this behavior. Does it >>> raise a technical issue? > > No, it's a bug. > >> After a quick look at the code, I wonder if this new behavior is a >> technical choice or hopefully a simple mistake. > > The latter. > >> Please find attached a patch that restores the behavior of taking into >> account the CATEGORY keyword in sub-trees also. >=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > > Applied, with an additional test. Thank you. Thank you for the fast answer. =2D-=20 Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVP0FTAAoJEHXSPO10ORBqeqUH/3FqVwDzmpLSefmhMML7aVF9 Z6NZzMDi00ECqVAQBS9vFAAeBWede/E4m+gRuMePPSkE1gVsMiQF1OABPyd6a9XY Q052UMxn3zySFo17RzjO+KqeBzRLKcNPd6tSGWGY+pbm/caNRmn9odDStUgKxPzR 6O6nEZjLMTAnWITv0jt01mYnqU4/Ecu16AEpuxFSX3W++jZMPPyvOZSUIgMOKPFL b/Aunt1ZpzILPtJys7tmpQ3kkLlmKBAM7gvtwTLnpGCZnvZ5UHC9Cgf9K57Oc/C2 OD5vksjvF9pC4BAhLTkyY2MjmY4QjoHHX2pJX6n2S7fKY54CpZGe7xw1C3q1sSo= =UKQX -----END PGP SIGNATURE----- --=-=-=--