From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eGgyEOZ7AGNCPwAAbAwnHQ (envelope-from ) for ; Sat, 20 Aug 2022 08:15:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iDtAEOZ7AGPMmwAA9RJhRA (envelope-from ) for ; Sat, 20 Aug 2022 08:15:02 +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 E3D2215A9F for ; Sat, 20 Aug 2022 08:15:01 +0200 (CEST) Received: from localhost ([::1]:46822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPHl6-0002FV-Mu for larch@yhetil.org; Sat, 20 Aug 2022 02:15:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPHjx-0002F7-2n for Emacs-orgmode@gnu.org; Sat, 20 Aug 2022 02:13:49 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:37695) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPHjv-00037E-G3 for Emacs-orgmode@gnu.org; Sat, 20 Aug 2022 02:13:48 -0400 Received: by mail-pl1-x62b.google.com with SMTP id m2so5756551pls.4 for ; Fri, 19 Aug 2022 23:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=PiKYcCX0aMJmmqiu0VYxBESshG/Hm8vhzKcmnm3bxmE=; b=py8C5QKOtkWT4MlV3ibMKtgrPbgDMhMeZAZeR8Bn4C1rO6tseow/e3PbH+T83bmD95 aS6+4AAFLJ0b+Ym2mMYzQoByoIAp2M7R5lmUtpB6VbmtGNgEX37zIgJeOcFNHvfPk3xo ZN74Az4tpAm2ahOIdjogxO1iSXoYIYUqO3bqK6bBFZhSBVH2jbXFYqBPXTW15HAqGHEG m6x27uniP3nxdgb49L0HmzRz6jaHr9FaFTU+pivMSO5gWGfFjR/BjnHTtPZ3oFIW6BKr 8dZmYsNzWiGw1eFTmNynAy690wiladNOQJQh0Bo6ahONqW+6WqWUFf9oBHVTp94Rt9K8 hiow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=PiKYcCX0aMJmmqiu0VYxBESshG/Hm8vhzKcmnm3bxmE=; b=H6/dlGwTaq1SuvBn7TQ3aY29S1LBAEJh+yTUhSWe8N/dBP2cfi5e3F6IuVFPZx+kPv owCuAmEfbzQ0xapFbO1ztkJhcHpnbFzx+TZ7ceHa19zO43goluTIm0KBrTbNVqEsxDuo R2ZVRf7JTNIyLEbVA/ZLfQfh8jLYtcaUxLTsfLGmfnJDqkcVbNkkP14DA+GtMFh8XRiQ BRQIGAiNQgucdiynPhrcVAu5Hmp3+H9oEBhmT2jkZZ82Ya3jITD2XjZIO5Gay5ev5vhF IPMoj0yFFwHYSVcg6ohtNjLmiWaBjHQ9q7X05VVbVveZIE/zLp8A2cPBuw0Os64sirjI D66A== X-Gm-Message-State: ACgBeo0QjzUiNIXRv57S7Qq33R2eeICd0qOvSSJoGINUBmKSJ5M5ZdHV wHI087f6yXTH0lTzE9phP/0= X-Google-Smtp-Source: AA6agR5YQnh5jjlwUwBGVDJBqra77Y3I6jEG4XMyO71TPPnnSlgxewAXqRxhFggjDOByMSFeA0nuMg== X-Received: by 2002:a17:90b:3ec1:b0:1f5:15a6:aaf5 with SMTP id rm1-20020a17090b3ec100b001f515a6aaf5mr12199536pjb.123.1660976025337; Fri, 19 Aug 2022 23:13:45 -0700 (PDT) Received: from localhost ([2409:8a70:2b9:1e80:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id j184-20020a636ec1000000b00429f03c0e36sm3649666pgc.48.2022.08.19.23.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Aug 2022 23:13:44 -0700 (PDT) From: Ihor Radchenko To: Duy Nguyen Cc: Emacs-orgmode@gnu.org Subject: Re: [PATCH v3] Show org file title in org-clock clocktable In-Reply-To: References: <87edxk7etq.fsf@localhost> <87tu6g5qbp.fsf@localhost> <87fshv1aet.fsf@localhost> Date: Sat, 20 Aug 2022 14:14:47 +0800 Message-ID: <87k073o2zs.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62b.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=1660976102; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PiKYcCX0aMJmmqiu0VYxBESshG/Hm8vhzKcmnm3bxmE=; b=t7fEWNd6R0mAoppkGkDjphFhqvjTni9F3RNJ+umlfHr9UJ052Gk8yg7Y/zDkM+OYMtS4gK tAszHwSFVPMSpw7orq/piIdsj7vjYRW+0mgwJB2U9s1n3Fa9b+PBICOWsRqRexCnhbT1CM jA6Q/9msH7+myTBoFsiA294HYWKz+lOG9fXBxwtPBBZwHfjCM9TFnsPatz3qnxKG7cHCpz 0w1ao9qdMWIWqG1dkN1vctF2xwPbgUvnU+TrdwlCU1YxJj59NAtjbhjhyyMrcfETwoX9yI WzKf+lQyKMwZq56FKvqF8f0N05ndHW1nTzLO+g67QWu8cfmE8eYimV+zuzZNuA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660976102; a=rsa-sha256; cv=none; b=oYZH5FRpRF6Uv+FEvSGBaG6XvSj7rahusrnNS4435HFIpBoggbhVEEFxtZ24UfIfZeKr1P 44EeqqB+JdqUuImDJgP1xNFK4xAEmcDWxhODKxoo6ZRCxFY86dF54HmdFBiGDL6Ts4UV/H 2rGB7pNJcYM6OcaY0Pq+O2T20ZPIT+glQprDQUbZCpazJYP+Se4rs0FCI09z6dldug5B1k 74G1d6T+JZrdSwbaTdV7b/kSLHDuvp9cVSAAWOq/M1vLjxQ7PRffwgL1vZuL2XaBOz44X3 F2MPfeowNxEH/dfyxFFOwTbfyijaoXu7HXvLYSt0wEHuS/q7XyxcFPmLeI/EMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=py8C5QKO; 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: -3.35 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=py8C5QKO; 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: E3D2215A9F X-Spam-Score: -3.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: Av1nUhUd9bXS Duy Nguyen writes: > Thanks for letting me know. The reason I chose that method is because the > org-macro-templates are not updated immediately after I change the title > and save the file. However, I think I found a solution using > org-macro-initialize-templates and org-macro-templates. Please see the > attached patch. Hope this is OK, otherwise please let me know how to > improve. Thanks for the update! Applied onto main via 2cc2d8f1f with amendments. I fixed on double space " " between sentences, removed autoload cookie (that function is not used outside org-clock), and altered the docstring making the first line a single sentence and clarifying about the return value a bit. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2cc2d8f1f6265d12c92b734931f2e3e417276b05 -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92