From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OOMAG3Ske2IwVAAAbAwnHQ (envelope-from ) for ; Wed, 11 May 2022 13:56:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UG7+GnSke2JL3AAAauVa8A (envelope-from ) for ; Wed, 11 May 2022 13:56:36 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B6C2C26640 for ; Wed, 11 May 2022 13:55:07 +0200 (CEST) Received: from localhost ([::1]:56538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nokvq-00012c-Jh for larch@yhetil.org; Wed, 11 May 2022 07:55:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nokrL-0004a9-JZ for emacs-orgmode@gnu.org; Wed, 11 May 2022 07:50:30 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:41668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nokrI-0002Tw-6l for emacs-orgmode@gnu.org; Wed, 11 May 2022 07:50:25 -0400 Received: by mail-pf1-x430.google.com with SMTP id p8so1758148pfh.8 for ; Wed, 11 May 2022 04:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=84pD8fKJ6XFKU+Ce1imqGjuDl9HsrtkrUmmCUCbYG6U=; b=kqr9RlJ2mawfkNfEecTmqnMCW0EpgdYn8dN1S+L++O+XPCozwKLR7+IixGPho8alg8 guOyAWggfGN2EP6RG/cp1f5AgJHjz9KjY7QfBwPkSiZjA95Y15C6fyJiCbiVlmNVEYVi o7PcX5qWjDSA/DL7Msh/H0IYwVMGq6tNBbdRAXi12mroXCUi3CvJP53V28YeoallY+Ja PbsKfDmdr/Cn9CILo9+vvgiGkyD3ogDGdBDP6c8G8FTwurG6+4vQLOkOI0w47kuE46qx nXaX9TkN4gm7D8fPEOUgCVyQ2JS8ktnLI2HaF/e1RifS1vOBVaZqvN7zDgc/LqiGjFT8 6RNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=84pD8fKJ6XFKU+Ce1imqGjuDl9HsrtkrUmmCUCbYG6U=; b=cI2Bml2nF3q6UL/HCGMPzqJOzA8CIEpxgLOtAcdr2+dOJBAKHCiJhtqTpi5iApNFaR fNGZMG+Cu3eX+WGmLBarDFIdvDyonX7Un1MW/pqKLCoOoTQhFN0zzsnZT2C+AElRwlJn X8W0FDlwptA/vMiGKtScWf/tbKUw2A9Ao3LbIuQuZ9yOR2+0UG1zMHcPviRgd5esTigF dBwpXnQoDsnunu6jpILmqh3SSOfVgQoANl/4HCmi+sLAcZz3Gmf5Xe8RQSOpAXZ6UQQ1 SHpEv0qgDx2fZ99LKHLOqHirmeEjdvfjy8ZUBWJp7n0YheidunTnVZowPqXhiuDDTgUh OygA== X-Gm-Message-State: AOAM530gmXf1izqvW+BT5yr8nAqNjy9Ed8uT6NCt5QofCifyNGhQxm7n kxM7r6ctRoz4dzk/tkVzhv0= X-Google-Smtp-Source: ABdhPJzGwb2ZrOmLEYLs5mMnw+A5y3VqQL4azxXyZJ5uf5ioU8Slz7BPy0GTW7nqCubSQokPpuH6dw== X-Received: by 2002:a63:8343:0:b0:3c6:b375:9584 with SMTP id h64-20020a638343000000b003c6b3759584mr12490882pge.546.1652269822765; Wed, 11 May 2022 04:50:22 -0700 (PDT) Received: from localhost ([66.154.104.4]) by smtp.gmail.com with ESMTPSA id g12-20020a170902c38c00b0015eb200cc00sm1642002plg.138.2022.05.11.04.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 04:50:22 -0700 (PDT) From: Ihor Radchenko To: Tyler Grinn Cc: org-mode-email Subject: Re: Concatenate properties In-Reply-To: <87mtfq8np8.fsf@gmail.com> References: <87y1zfk3ls.fsf@gmail.com> <87zgjuis8z.fsf@gmail.com> <87pmkpykiz.fsf@localhost> <87v8uhikzx.fsf@gmail.com> <87sfpkqkos.fsf@localhost> <87zgjst8lq.fsf@gmail.com> <877d6wqdxs.fsf@localhost> <87mtfq8np8.fsf@gmail.com> Date: Wed, 11 May 2022 19:51:06 +0800 Message-ID: <87czgkjnit.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=yantar92@gmail.com; helo=mail-pf1-x430.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652270108; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=84pD8fKJ6XFKU+Ce1imqGjuDl9HsrtkrUmmCUCbYG6U=; b=q+JJMYbM2+uAU7pUF83eVZmERuVGT0XGk5vAxMhqrVVo3e8joVgs3bYglBKG+4asReE2rf ZCJbEnvhybv7yFL3pO7vbfuCrnqGBym1LC95DrH8332T5bgEztq/jiBOoBc079IiLO6shi gILWRLadWtnXq9Eohrsohg9CyUCO8hMKF0RDUkSaaqiBgUSpznUWJMYw3l8DmOy14MkmmX vJXLc4VGCQfubw/B8a/I8wwbaokZwfEH83bM015O/Z3vmeS4Y+Ei7+wrXbiXOZ6xCZ+pYO 0iEirq84hrJRl/UvCRMdydMYDMTY9Fmdarn23Qq4E46I4taow2TuaQZQ3PQpOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652270108; a=rsa-sha256; cv=none; b=WHOMxaUDNgAsmvP/XddkhdAjU4knXQ90CSifeGhOHFeJAkphA7lumjOy7csiiYjKIuzev5 2KH37poiXW0IHAJ0tLRbNfLYSJ7LWPT+KNKbRlIWuo5IMEM4wchBXaJ56uFr12disZfDqm 3jFD+bmTRLIpwbeqORukzsv4dLBZqUAir1QlVy3tEgwEg/WirBZr9UfbopJAZMT1pXvt7J q9Qfbtf+fpEnMfjcysC70iiNDGA+gqrb2z0+4HN9UVCeHQQoVj6bupjptmP75NF4NljpEk EdnTfeFCARcC/foCUsZRbYKMP30CuDqgvrO3dUplDwBGHnA/bs0IW3wiNJva2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kqr9RlJ2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kqr9RlJ2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B6C2C26640 X-Spam-Score: -9.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: hiKyRzf7/VpC Tyler Grinn writes: > Ihor Radchenko writes: > >> Tyler Grinn writes: >> >>> >>> Could you provide an example of what the value of that variable would be >>> if, for instance, I wanted PROP_A and PROP_B to be joined with a single >>> space and PROP_C and PROP_D to be concatenated? Or better yet, have the >>> default be to join with a single space for any property and have only >>> PROP_C and PROP_D concatenated? >> >> Say, >> >> '(("PROP_[CD]" . "")) >> >> or >> >> '(("PROP_[AB]" . "/") ("PROP_[CD]" . "") (".+" . "=E2=88=BF")) >> >> Best, >> Ihor > > I'm not sure forcing regular expressions for all use cases is ideal. Is > there a way to allow the option (I'm calling it org-property-separators) > to allow either regular expressions or exact matches, like > org-use-property-inheritance does? It's up to you. I merely suggested that the new option should work similarly to org-use-property-inheritance. It will not be the exact match since we also need to provide the separator string. > Other than that I'm mostly ready to send in my first patch. Should I > attach it in this thread or start a new one? Keeping the patch within this thread will be more reasonable for future readers. Just remember to prefix the subject line with [PATCH]. Best, Ihor