From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Basic Q: Display specific property in custom agenda view Date: Fri, 27 Sep 2019 03:30:42 -0500 Message-ID: References: <87a7armxtw.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001e17c6059384aee2" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:46138) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDlcn-0007yw-Va for emacs-orgmode@gnu.org; Fri, 27 Sep 2019 04:29:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDlcm-00087R-St for emacs-orgmode@gnu.org; Fri, 27 Sep 2019 04:29:13 -0400 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:41505) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDlcm-00084K-Ol for emacs-orgmode@gnu.org; Fri, 27 Sep 2019 04:29:12 -0400 Received: by mail-io1-xd35.google.com with SMTP id r26so14129899ioh.8 for ; Fri, 27 Sep 2019 01:29:11 -0700 (PDT) In-Reply-To: <87a7armxtw.fsf@ucl.ac.uk> 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" To: "Fraga, Eric" Cc: emacs-orgmode --0000000000001e17c6059384aee2 Content-Type: text/plain; charset="UTF-8" Thanks Eric, this does it! On Thu, Sep 26, 2019 at 12:27 AM Fraga, Eric wrote: > On Thursday, 26 Sep 2019 at 00:06, Nathan Neff wrote: > > Got it! Now, all I need to do is add the cool ":" functionality > > where a ":" is appended to the result if there is a result :-) > > Maybe something like > > ;; Return PROJ property or category property > (defun njn-get-proj-property() > (if (org-entry-get (point) "PROJ" t) > (concat (org-get-category) ":") > "")) > > (untested) > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d > --0000000000001e17c6059384aee2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Eric, this does it!

On Thu, Sep 26, 2019 at 12:27 AM= Fraga, Eric <e.fraga@ucl.ac.uk= > wrote:
On Thursday, 26 Sep 2019 at 00:06, Na= than Neff wrote:
> Got it!=C2=A0 Now, all I need to do is add the cool ":" func= tionality
> where a ":" is appended to the result if there is a result := -)

Maybe something like

;; Return PROJ property or category property
(defun njn-get-proj-property()
=C2=A0 (if (org-entry-get (point) "PROJ" t)
=C2=A0 =C2=A0 =C2=A0 (concat (org-get-category) ":")
=C2=A0 =C2=A0 ""))

(untested)
--
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d
--0000000000001e17c6059384aee2--