From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ndDgJaEwUV9xbgAA0tVLHw (envelope-from ) for ; Thu, 03 Sep 2020 18:06:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yHk9IaEwUV8+XQAA1q6Kng (envelope-from ) for ; Thu, 03 Sep 2020 18:06:25 +0000 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 1D0BD9403D2 for ; Thu, 3 Sep 2020 18:06:25 +0000 (UTC) Received: from localhost ([::1]:51114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDtcs-00010S-EQ for larch@yhetil.org; Thu, 03 Sep 2020 14:06:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDtcK-0000yf-HL for emacs-orgmode@gnu.org; Thu, 03 Sep 2020 14:05:48 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]:33107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDtcI-0007qu-CN for emacs-orgmode@gnu.org; Thu, 03 Sep 2020 14:05:48 -0400 Received: by mail-pf1-x42a.google.com with SMTP id u20so2980229pfn.0 for ; Thu, 03 Sep 2020 11:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=MdVe8vNR/ZOYIDRM/VcCFeL1/2WClwHNw9D/ag1RcGU=; b=KwUyTL7a/dZ76KnowQnU7V2UfYXc1bjnQZCJRHl+lQx3+qfRZs39xuCWNWWw9qcF+8 3KVXSYE/+9YfrnDnFT65Fvh72/OMHNToxj6sLRUen0TaJKSRLk1d7xRWx5TTH96ckTP7 POgoUphq3y0drG+ZiYjbPlE+fS5cCQB/biPreLiMJqCweRC2QBWZjOB4MruKkMEpIKEU VXHacP2XmzHuz/uZju6agRwdB2TUVsVnkyJlqdpNwXA9yvLcR+TLx5oiIWc7jLtbjkht eB8rU0iCMno9HtlubZy/V83T1CyNzdp4v5oPFnEjFl7dlq+YI+W5n7ehHdWRfe0EBO2f vi2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=MdVe8vNR/ZOYIDRM/VcCFeL1/2WClwHNw9D/ag1RcGU=; b=fRDN3yJ1ate/Qi2qb68Xb8/mSNQRJOxS6ZXA51/Rs9dtvqsMgT681CgagaLOZZJoJT 9TS2IVi1ThATU0PPCJJ6//uoGzND9jGNUlObbUR3optHR804AIrO/Q5JuKPWm0jbtY7D I3EA5obwn30lsUrGQEvJAtwvZoDjMGOJYPkmupW8f5pucHpU4iSc8AY0peajJvKdcBrA jZIjsOz37EyBM9aa6xNNbLDymIsYNc9UnhHRa7RmfuNVQH+lyOGA8yIHoqj0y/jHfXww 18uCPuy1A9DxAcNiXYt74tKAMVH8hQPd8lUEon0+xl0bJ9T6wPuO6bBMV7HLhvmEgmKk fXZg== X-Gm-Message-State: AOAM531Oesax8sJaWcA50NTgnCdkXM8QYBjfPVWwSeZFH2LhHlvjZp8A 6TBOeZvzOtvanyQARwFJEY4= X-Google-Smtp-Source: ABdhPJyqaAk2fMn964zEO/Egn0jlsmykk8QRHNovOq83yp1ZZFhmZ3luKQAIaGFZODeD1sY/2J6Twg== X-Received: by 2002:a62:cdc2:: with SMTP id o185mr4752105pfg.170.1599156343686; Thu, 03 Sep 2020 11:05:43 -0700 (PDT) Received: from localhost ([155.94.199.8]) by smtp.gmail.com with ESMTPSA id j10sm3933392pff.171.2020.09.03.11.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 11:05:42 -0700 (PDT) From: Ihor Radchenko To: Michael Heerdegen Subject: Re: Headline generation as in diary? In-Reply-To: <87imcukd60.fsf@web.de> References: <878sdth8fm.fsf@web.de> <87zh697ctp.fsf@ucl.ac.uk> <874kohh6el.fsf@web.de> <87v9gxcg9k.fsf@web.de> <87mu28l2bj.fsf@web.de> <87h7sflrmv.fsf@web.de> <87zh67j92p.fsf@web.de> <875z8vm18l.fsf@localhost> <87r1rjj6wx.fsf@web.de> <87363ynah7.fsf@localhost> <87imcukd60.fsf@web.de> Date: Fri, 04 Sep 2020 02:04:45 +0800 Message-ID: <87wo1alosi.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Pluim , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=KwUyTL7a; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.21 X-TUID: ru2LUOBsoKIU > I didn't know that eval specs support multi-line sexps, but seems that > works, so I can indeed use this. Thanks for the suggestion. Hmm. According to manual, it should support multi-line string. Not sure about sexps. In the worst case when you absolutely want multi-line sexp to be really multi-line and that is also not possible in file-local eval, you can define your sexp in a named src block. Then, you can execute the named block using file-local eval statement calling the following function: (defun org-link-babel-follow (name &optional return-info) "Run src block NAME. The NAME is parsed as in #+CALL: specification. The src block should be in the same org file." (let* ((call (with-temp-buffer (interactive) (org-mode) (insert "#+CALL: " (format "%s" (org-link-unescape name)) "\n") (beginning-of-buffer) (org-element-babel-call-parser (point-max) (list (point-min))) )) (info (org-babel-lob-get-info call))) (if return-info info (flet ((org-babel-insert-result (result &optional result-params info hash lang) nil)) (org-babel-execute-src-block nil info))))) Michael Heerdegen writes: > Ihor Radchenko writes: > >> I do not think there is support of multi-line planning everywhere. > > I see. > >> You can always use file-local definition at the beginning or end of your >> org file. Below is an example of local definition at the end of an org >> file. >> >> # Local Variables: >> # eval: (defun your-function () (sexp)) > > I didn't know that eval specs support multi-line sexps, but seems that > works, so I can indeed use this. Thanks for the suggestion. > > Michael.