From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id d1OqJN+qh2WBnAAAkFu2QA (envelope-from ) for ; Sun, 24 Dec 2023 04:51:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gKCJHt+qh2XuMQAAqHPOHw (envelope-from ) for ; Sun, 24 Dec 2023 04:51:59 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm2 header.b=jgwvmS6I; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=czQfTr5p; 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"; dmarc=pass (policy=none) header.from=fastmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703389919; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZxvDsNPM/9EwJKiX/uph47AxqVjNNPw6butJ71ahWYU=; b=O8nOYLfkPrNMa9jOkX4EtDdC5LWo0v2Ho/0GDDdjmXE8WmArR3O+3Rd0BYkn2IRgbbcOS3 WzRduPh13yKwzUUShdGAUbik5Z2WcUl/d/QIBgH5agj9CKnKnWeJj4FdwKhS98fvDOaL2k ss7otxJzLTzrwEQjcb5zX0ypLxP8CuAv69vkQnZw7z2wlTWd+AtWUaUbAY9YZJp9TGWnZ9 +ExP3/UAVhk8Y8y17BzgS3MpKzUz38vRrUD0Cr4HA6HySE/LU5eRiS17GjmV0JBOPh0CFh VPXONrbWd/+m9fOHt0+OZoa+Xdt2Y9ZSlBVBhy/FI/S7o0+5Cb2O0qXeN85iTg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703389919; a=rsa-sha256; cv=none; b=WJIm+DKYnrwml/pETBznGqQ09cZMVIOGegejm4RmNXwOxqO7uIVTnkkOBRGNdhzvlm5SX5 DYu4rFtcSIxQ1PsiyXO1oGYdKxZJwrxIwltW8zRLefYDIdN8O3UDml3a9tMqSnV/Jr2y5Z WSVtvTIXoXF9eyc4DQY8eDB95H8TChDdsbyjvVYmeoFyHIBHIqmt3mo9D3NPzGuDzuQhjD 0rM4iOmwjt82Gs1RvUj8rHsmQ0nGJR5hXjyQ4yPE9NRcflB32x9y6Ecs1Kfz0ReQixB2RH c9igE1O1bvo79x2c6tvGvTtvKYOznPeUYa5bBT9gm3wgeoD9l4xLs5cGxb0L2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm2 header.b=jgwvmS6I; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=czQfTr5p; 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"; dmarc=pass (policy=none) header.from=fastmail.com 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 C24533FAB9 for ; Sun, 24 Dec 2023 04:51:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rHFVw-0001nP-3U; Sat, 23 Dec 2023 22:50:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rHFVu-0001n2-6I for emacs-orgmode@gnu.org; Sat, 23 Dec 2023 22:50:54 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rHFVs-0003N8-Hm for emacs-orgmode@gnu.org; Sat, 23 Dec 2023 22:50:53 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4BFB8320025E for ; Sat, 23 Dec 2023 22:50:51 -0500 (EST) Received: from imap43 ([10.202.2.93]) by compute4.internal (MEProxy); Sat, 23 Dec 2023 22:50:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2; t=1703389850; x=1703476250; bh=ZxvDsNPM/9EwJKiX/uph47AxqVjNNPw6 butJ71ahWYU=; b=jgwvmS6IV5Y2hxirYb1oQie/cKZWMWZ4fyeREEK6pSkSLjGK fXp6hMKpndKvO2Y1vAPQJBgoahSc0nfVZF//TQx29sDn6LQoxUKQ3Ok2ruX70usf L0otQuOPV6BLhlLK2cpu/l6NlfZAUSZk2fo58ubaOUCIKsCbImZcY9X2atIl6Zev CogmfephS+kXuc2oBlgF4RLaUoT/yHfoV3OwF6ahzRd004kQd6mcLst6R4+Zc7zZ 3UL7eYotcfAXE8GkUZwNWaL7f+Yu41Hjn6UZ/lAfEog3d2ULdR2CrldV9yUORWUR XxdI24xmeY1ol2tVT1QySAgBMbfNs4APrlsuag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1703389850; x=1703476250; bh=ZxvDsNPM/9EwJKiX/uph47AxqVjNNPw6but J71ahWYU=; b=czQfTr5pPdT8SLxBJwVkOnbF63cXWrhajJ5YzhoovmweuHzisAn kMAshnH3h5Q2l4LglGGsz3ahywbwuiMC+Ul6u48vRRHyduw9HUXKbH9EICvROqXN KDTi4gWFD52s/gjevbBWYjOS5ufkBj0TthHNfpdQI+MPM/Ds3SB72/zT/a2X4T8Q Mcu0uXZq/sTJVhHpoZlQXKKtQDNYVkLW+xfkcwOQRvdZCwYqOT8O8OoEMp9pT3I7 4iyah7lomC8gjzrXX5ZJvmgDqd1t3yvjX0qd6rRDAlgSr6XPLX4s/v6iTB60Hspo vD9eGLf/aRjyoF2otWIDJS9CPrXzxq3n0JQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddvtddgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpegvqhhurghlrdhmohhonhdtfeegieesfhgrshhtmhgrihhlrdgt ohhmnecuggftrfgrthhtvghrnhepueffjeeikeefgeffvdetheduheelteffteelueeuje efudetudegjeffveelgfeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepvghquhgrlhdrmhhoohhntdefgeeisehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i35d941ae:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9671D2D4007D; Sat, 23 Dec 2023 22:50:50 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 MIME-Version: 1.0 Message-Id: <7153af42-cfbe-45d6-bc77-7e6441484a08@app.fastmail.com> Date: Sun, 24 Dec 2023 03:50:29 +0000 From: equal.moon0346@fastmail.com To: emacs-orgmode@gnu.org Subject: How can I use org-add-note with emacsclient? Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.24; envelope-from=equal.moon0346@fastmail.com; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.57 X-Spam-Score: -6.57 X-Migadu-Queue-Id: C24533FAB9 X-Migadu-Scanner: mx11.migadu.com X-TUID: fLRiEaPPUQM5 Hello Org mode users, I'm trying to figure out how to start a note (C-c C-z) on the currently clocked task from emacsclient. Here's what I have so far: Start Emacs: emacs --fg-daemon=test -Q -nw --eval "(setq-default org-agenda-files '(\"~/org-agenda-files\"))" Connect to the daemon in a different terminal, load the agenda: emacsclient -s test -nw --eval '(org-agenda nil "a")' ^ In this frame I'll also clock in to some heading with I in the agenda. Then I close the terminal. In another terminal, try to start a new note on the currently clocked task: emacsclient -s test -nw --eval '(progn (org-clock-goto) (org-add-note))' This seems to have no effect. Oddly, if I paste this into M-:, it works fine. I've tried a number of things with e.g. plain capture templates that run the above code :after-finalize, using call-interactively, etc. After a cursory reading through the info manual on interactivity I find I'm still a bit lost. Can anyone explain what I'm doing wrong and hopefully point me to the right manual page to read on this? Thanks and Happy Holidays! Moon