From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 6IBeGpKdTGbCVAAAe85BDQ:P1 (envelope-from ) for ; Tue, 21 May 2024 15:11:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6IBeGpKdTGbCVAAAe85BDQ (envelope-from ) for ; Tue, 21 May 2024 15:11:46 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716297106; 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; bh=0sqOU1iW5xU9UBWM5V3WveIgnNz4Ad+e4fRwZ5Axyp4=; b=bcdpWaYu1Sm9/OGOnLsZ/iIwVnuuWw7jurj10oVrOFdT09nROu506510YMhmEYRCMzLRPY DyBQhp1K0YBqyPGLXgEs2XLRcXky0gFeJIrn807vNJ+6eOffGNKzdV/QsFRfSOkJvB0CG9 v8PK38TVFEaD4MZGw2haEAb92wqYHIgeqDNBh+aIFxxg4rCpKDtJhRxBGXOR82cQ4+lBff meyHM6LlVvhsChfDP7FAb2/3yjXq/QL9KcZp28YeA3Vjma/r8OgvJse6bRSXi90zpvhTye CzhRUMlWgu0SuuS4j18mHDcuHDNSn9ryJI2ciqG2RfWFyBF23n5zizTD/GydCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716297106; a=rsa-sha256; cv=none; b=Jn+LaE6lOlbNPOGFAIvN9Kzg5Z6WACjwWcIiUS7312khW2ip/SWDaSILiB+Gr0az3TpJPE K47I7RTqQ3sn9YR7bBOunMvM/jX/Zdob+UDvteuhqlGgx8Y5g2zI32IQhclGOvuyny10Hc SI5T+/HPz6paAxrlvjfh2dLhsM1Ylm+Y6n26o3eTmlIQuvwQH+h3mKl1yHR13KQMohygeq 5FpXUftjc4OIslSUNyKBEGyVeD7K5dVZ6FRJjl0je0k+6x8inoA2DlO+O3mijtAEmjLRjB yCTHHC/lKV33g/vMXax1tHBYhoB5bdenrnbQ7pjO3+vKS9wNR9EkcEUE0nSyvg== 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 49C663BD99 for ; Tue, 21 May 2024 15:11:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9PGe-0007DN-8G; Tue, 21 May 2024 09:11:00 -0400 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 1s9PGW-0007Bb-OP for emacs-orgmode@gnu.org; Tue, 21 May 2024 09:10:54 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9PGV-0001Lw-7E for emacs-orgmode@gnu.org; Tue, 21 May 2024 09:10:52 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1s9PGS-0000Bk-1G for emacs-orgmode@gnu.org; Tue, 21 May 2024 15:10:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Punit Arya Subject: Re: [BUG] Warning on executing keyboard macro that inserts time-stamp [9.6.27 ( @ /home/punit/.emacs.d/elpa/org-9.6.27/)] Date: Tue, 21 May 2024 18:40:42 +0530 Message-ID: References: <87v83c8xof.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla Thunderbird Cc: emacs-orgmode@gnu.org Content-Language: en-US In-Reply-To: <87v83c8xof.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: -0.85 X-Spam-Score: -0.85 X-Migadu-Queue-Id: 49C663BD99 X-Migadu-Scanner: mx13.migadu.com X-TUID: gaj18rOlOBJk On 2024-05-17 17:20, Ihor Radchenko wrote: > Punit Arya writes: > >> This is an EMACS keyboard macro that I've been using since more than 4-5 >> years now. >> >> (global-set-key [24 11 48] 'my-insert-timestamp)  ;; It translates to >> the key sequence: C-x C-k 0 >> >> Its definition is: >> >> (fset 'my-insert-timestamp >>    (kmacro-lambda-form [?* ?\C-u ?\M-! ?p ?r ?i ?n ?t ?f ?  ?\" ?% ?\( >> ?% ?F ?  ?% ?T ?\) ?T ?\" ?* ?\C-m ?\C-e ?\C-m ?\C-m] 0 "%d")) >> >> Which basically means to to execute the key sequence: C-u M-! printf >> "%(%F %T)".  This in turn executes the command to insert the time-stamp >> at point's location. >> >> This macro does execute and the time-stamp does get printed, but I also >> get a Warning pop-up in the EMACS frame as a window. > > Thanks for reporting! > Unfortunately, I am unable to reproduce this on my side because C-u M-! > printf ... command does not work with my shell: > > /bin/bash: line 1: printf: warning: `': invalid time format specification > /bin/bash: line 1: printf: `T': invalid format character > %(0.000000 > > May you try to use the development version of Org mode and let me know > if you keep seeing the warning? > Sorry, I missed the "T" there in the command. The whole command is: printf "%(%F %T)T" I'm working on setting up the Org mode dev environment. Will try to reproduce in that environment and update.