From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id aAWWAT6cTGasYQEAe85BDQ:P1 (envelope-from ) for ; Tue, 21 May 2024 15:06:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id aAWWAT6cTGasYQEAe85BDQ (envelope-from ) for ; Tue, 21 May 2024 15:06:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716296765; 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: 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=n5oWuRi1aIOqxKNZU4XpqDX4okvk/vvWni97ZvEU+budM6ahPZEeCQvNeYQIv1IaLH8e9W +Bywpb4GZxrTrELUxYxB09yGNl4jN7PcF4KbBx+r9Pc5TGitCQxcYcY93fpmhD5+zhyoYc bHvyeSUHD81CPE5B+1OozJO2bhvXMoWz87+2u7ie+Sa8MIN1wOdlADpJ5i+kW8R0IkcACu 5sLbnHZ8qgPCR7g7XlERlvjXV+/7PcXqafICRlaiISZ2HKP1IgF32TN70gg86mboZRuRxx 26Btiwb4OphZsEFmqPX42Cz+YzUZ3tl74PaBcJXMUF3vgotiXsnFlF1u8QMrLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716296765; a=rsa-sha256; cv=none; b=IYw+0NQjaUJrbQ1Uqk84CUrwiXSwZGNytQKkZEaZpQDFn6rzQNR2dwnsyV7EmeWV8tbPmO j2eb2j9AKPTcWlHF9Z74f/QVPG1T9sjP/le4wMfd+NH1BrM5tg+6r0wmNSEMRspi9x9Liz sX0qX97AUBCo5EiyjaN8JEROPiPOSVnx2IZIk4oNk0U5yD9J2yDYz1+IuZ5y3gHhVSCdnz 5vY2oZgbJvgB76M8Q53qq585qPKicyC8FLljBmcbG+YqiguOrcceP+7o2C+zu8R9wM8qZt lhTAVWSZD3gCbWo/WGzjMkkg/vlcQCKRhzCwsWm0mz5OozeteFuXiK6sWDOn0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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" 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 D3AD861201 for ; Tue, 21 May 2024 15:06:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9PB1-0004cG-6x; Tue, 21 May 2024 09:05:11 -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 1s9PAx-0004av-0Y for emacs-orgmode@gnu.org; Tue, 21 May 2024 09:05:07 -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 1s9PAv-0007gG-Ci for emacs-orgmode@gnu.org; Tue, 21 May 2024 09:05:06 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1s9PAs-0001NM-HB for emacs-orgmode@gnu.org; Tue, 21 May 2024 15:05:02 +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:31:18 +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 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: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, 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: -2.75 X-Spam-Score: -2.75 X-Migadu-Queue-Id: D3AD861201 X-Migadu-Scanner: mx11.migadu.com X-TUID: IEoLrOSJYjkf 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.