From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aNb3LXF1WWGYJQAAgWs5BA (envelope-from ) for ; Sun, 03 Oct 2021 11:18:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id PzuzKXF1WWHzUwAAB5/wlQ (envelope-from ) for ; Sun, 03 Oct 2021 09:18:41 +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 48FDE617 for ; Sun, 3 Oct 2021 11:18:41 +0200 (CEST) Received: from localhost ([::1]:47434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWxdo-0006Ap-GB for larch@yhetil.org; Sun, 03 Oct 2021 05:18:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWxd1-00069k-12 for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 05:17:51 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:51950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWxcz-0008HK-Hj for emacs-orgmode@gnu.org; Sun, 03 Oct 2021 05:17:50 -0400 Received: by mail-pj1-x102c.google.com with SMTP id kk10so163707pjb.1 for ; Sun, 03 Oct 2021 02:17:49 -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; bh=EoidywjcEEeB4MjlHkNDMDlbCaU5dU7yJAkbm8agh8s=; b=eAPp1ljzkxJPHuirjYLdNX6MseecPu7ul5Eoz/UhxNMGLFrHuGD+QHtt9n0r8ZexhP UxidEm3Fi1z9peKbrnmoVO+Pio5ZdStSu0kjSWOXLmUl0t72voTkLaAv0j/HFjTR7mbJ z4iFj42SsuD1erIdpPKiSve3ai9+Hcz6GYWB2WWvXOM1YS/71gzguymCdPiPApBucVGy sP6LvkHfS3FN/KU2Y3MUAP7gJzM3sqv9IcDRjyr/KnDvrYvOX5v7cQdyYW1xl6YnzBrh kn4ef1QFM770cmwvE7mLoQgjndM4y6gRBawHms7quVqZI0JxD3m+RoiPKnsa2VHkfLYM i6Jw== 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; bh=EoidywjcEEeB4MjlHkNDMDlbCaU5dU7yJAkbm8agh8s=; b=yEqo2LXqo5pVEjMlIwVc+9fGov3ons9Osix8IQllOUsZmWxSZl02/CP7XY1d5tIKiY FHxLBX5WyfhPSw8i5FQF3YZGwi+Dy25eWhz3PzDbeZ46MRbVo68+0PBKPSPEI+7yuC+N ZPr5GgHntCELeGr0tCUr7pOEzBrN4nZKmeROd+G6FC8ds2M3HIAR8vVEtsY+yWVTpcAu PAcs28qE2bxohmighcjaI/FXYUuYq1m3iL0squXAOFTJVtGrqkGzbwPozqvIaVOH7P9e /jOWOj09DnTA1NUdaTq8HDGL0OsbvGF8rilq8ovnyxZShdHDbhqNXbKr5YHhE3SwWy5C Z+Qw== X-Gm-Message-State: AOAM5331X2JGHKWynp8mTuS0k7MmDqZu4sraZl9yRd5SDTsdJ8GhvfqT ucced9EIzsIdfQOyJfrJJyUwEKwns+R9KzsK X-Google-Smtp-Source: ABdhPJx8Jb1swZ5tTJIx9xO7rQ95sexxE/vJgSO3/ZJVQylrC7Zh/EVRdtcL1xeQV2y+cqwBjHzlrg== X-Received: by 2002:a17:902:b696:b0:13a:7871:55f5 with SMTP id c22-20020a170902b69600b0013a787155f5mr17921817pls.60.1633252668110; Sun, 03 Oct 2021 02:17:48 -0700 (PDT) Received: from localhost (61-219-114-7.hinet-ip.hinet.net. [61.219.114.7]) by smtp.gmail.com with ESMTPSA id k2sm12046598pjq.28.2021.10.03.02.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 02:17:47 -0700 (PDT) From: Ihor Radchenko To: Uwe Brauer Subject: Re: org-capture-template with changing heading (including a TIMESTAMP) In-Reply-To: <87ilyein6x.fsf@mat.ucm.es> References: <87czvvh69m.fsf@mat.ucm.es> <87mtnq7grc.fsf@localhost> <87ilyein6x.fsf@mat.ucm.es> Date: Sun, 03 Oct 2021 17:19:06 +0800 Message-ID: <87lf3a5uut.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102c.google.com 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: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633252721; 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=EoidywjcEEeB4MjlHkNDMDlbCaU5dU7yJAkbm8agh8s=; b=LusoxltPuUNRovhYZBhChCYq86jdXAcajqF4lcW13JChst2dsYRnUznejF8ruE0hiz0vk2 aCCk/iqo3fhA99ktxxUeR0SifdJjl4Vcn4Hln3j3qwUWVUaCkwDDfLrl/q+yvOIGLlWIQN +4lRbjek1Ucl7XxCnOIytfefHybtfVUXNgzyvwx9fsqkKQQEvSNOvwhiJumBi9+lr0aUif BHhL76I/SSbF5MGgMHPTQonc17a2C6U1b7RYi3gTFGDZJIeDNLTEB+4Zd6bUhNaEKojHqW k2/WwNT8Xw2eg27C3eqqiwczJ222a8P+lDk5A5Qtq0l5ebBphEh4SHWpU3Ptdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633252721; a=rsa-sha256; cv=none; b=Vbm4GTLVj+be5d1z5iaOuZ8jVipw2ktScoYUSq6etwwaz8XRisQzBhRq0Y1baoA57hnOz8 y98/xDZl0F9HqK6UobcOWos+cpAIpQfBk+pQ/rm7q1pD5I0xyNXv0Fz8KZm9Z57zSNL/zZ 08tDqcUA7i7BqTnFI7BPAg9eLBQnwgF3CZOfg0UxNbjnUrauF6+YNYtkufYfFifenUZerz xm2g4dUMM7tDMNqlSuIyAthkFeYoJso+w+Qr6UmwJOd4uNk3CH2oOe/C11U7iEIhYhKaLl BLdNmXClP5GoLW8CQ7U2RWhfas7Mea/w0SFmktMKOWskr8je0r8tESBPMzruvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eAPp1ljz; 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-Migadu-Spam-Score: -3.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eAPp1ljz; 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-Migadu-Queue-Id: 48FDE617 X-Spam-Score: -3.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5Sorbc+NKIv1 Uwe Brauer writes: > I tried > > ("mg" "Ejercicios Annu21: hechos, solicitados y asignados" > table-line (file+function "~/ALLES/HGs/tex/vorlesungen/HGAnnu/Ejercios-Alumnos-Grupos/2021/Ejercios-Teoria21.org" "Ejercicios Annu21: hechos, solicitados y asignados" (clock)) > "| |%^{Grp|1|2|3|4|5|6|7|8} |%^{Hj|1|2|3|4|5|6|7} |%^{Ej-As|1|2|3|4|5} |%^{Tit}| | [] | | | %:fromname| |%:fromaddress | %(my-extract-cc) |%:subject | %:date |%a | " :prepend t :empty-lines 1 :unnarrowed t > ) > > But it does not work, I receive the error Because you did not supply a function. The docstring says: (file+function "path/to/file" function-finding-location) function-finding-location should be a valid Elisp function that will need to take care about moving point to target heading. What you have in your template is (key description table-line (file+function file-name !some-string-that-should-not-be-there! !(clock)-which-is-a-third-element-and-also-should-not-be-there!) ... Best, Ihor