emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Tyler Grinn <tylergrinn@gmail.com>
Cc: org-mode-email <emacs-orgmode@gnu.org>
Subject: Re: Concatenate properties
Date: Thu, 5 May 2022 18:56:24 -0400	[thread overview]
Message-ID: <CAJ51ETrdpOuVHuaLSV9VD3iMZvUhghLzeZrm9usCDjkK7Sc-XA@mail.gmail.com> (raw)
In-Reply-To: <87y1zfk3ls.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1523 bytes --]

I believe this is hard coded in org-entry-get-with-inheritance. The fastest
option would be an override advice with your own function that
replaces (and value " ") with (and value ""), and maybe the two other " "
with "".

John

-----------------------------------
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Thu, May 5, 2022 at 6:38 PM Tyler Grinn <tylergrinn@gmail.com> wrote:

>
> I'm exporting sub-trees as pdf files for some classes I'm taking:
>
> # -*- org-use-property-inheritance: t; -*-
>
> * Class A
>   :PROPERTIES:
>   :EXPORT_FILE_NAME: support/Class A
>   :END:
> ** Assignment 1
>    :PROPERTIES:
>    :EXPORT_FILE_NAME+: /assignment-1
>    :END:
>    Some assignment for Class A
> ** Assignment 2
>    :PROPERTIES:
>    :EXPORT_FILE_NAME+: /assignment-2
>    :END:
>    Some other assignment for Class A
> * Class B
>   :PROPERTIES
>   :EXPORT_FILE_NAME: support/Class B
>   :END:
> ** Assignment 1
>    :PROPERTIES:
>    :EXPORT_FILE_NAME+: /assignment-1
>    :END:
>    Some assignment for Class B
> ** Assignment 2
>    :PROPERTIES:
>    :EXPORT_FILE_NAME+: /assignment-2
>    :END:
>    Some other assignment for Class B
>
> And this works great, except there's always a space between
> 'support/Class A' and '/assignment-1.pdf'. Is there any way to
> concatenate the two properties rather than join them with spaces?
>
> Best,
>
> Tyler
>
>

[-- Attachment #2: Type: text/html, Size: 2335 bytes --]

  reply	other threads:[~2022-05-05 22:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-05 22:37 Concatenate properties Tyler Grinn
2022-05-05 22:56 ` John Kitchin [this message]
2022-05-06 15:40   ` Tyler Grinn
2022-05-07  5:33     ` Ihor Radchenko
2022-05-07 11:44       ` John Kitchin
2022-05-07 12:29         ` Tyler Grinn
2022-05-08 12:21           ` Ihor Radchenko
2022-05-08 14:14             ` Tyler Grinn
2022-05-08 14:47               ` Ihor Radchenko
2022-05-09 20:18                 ` Tyler Grinn
2022-05-11 11:51                   ` Ihor Radchenko
2022-05-11 17:47                     ` [PATCH] " Tyler Grinn
2022-05-12  9:59                       ` Ihor Radchenko
2022-05-12 23:27                         ` Tyler Grinn
2022-05-13 12:21                           ` Ihor Radchenko
2022-05-14  2:11                             ` Tyler Grinn
2022-05-20  8:04                             ` Ihor Radchenko
2022-05-07 13:20     ` John Kitchin
2022-05-07 14:09       ` Tyler Grinn

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=CAJ51ETrdpOuVHuaLSV9VD3iMZvUhghLzeZrm9usCDjkK7Sc-XA@mail.gmail.com \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=tylergrinn@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).