From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id +Pw6L2VER2aTnQAAe85BDQ:P1 (envelope-from ) for ; Fri, 17 May 2024 13:49:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +Pw6L2VER2aTnQAAe85BDQ (envelope-from ) for ; Fri, 17 May 2024 13:49:57 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ivj29Ms7; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715946597; 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:dkim-signature; bh=0haz7Kntaa10uhQhKwS0REs5Lp6wsPWKg21ZsoXzQbQ=; b=XlVHrO3SNeRxn8uHtLU0RLEl/xyVrNRWcxo7xrc5rx/eNmKcJKOZIhKXJGfWEvQgdSf2Pi HK+MgQxoQ1NMYaPbEqBo28DCGpMOLq4ecMFoKO3xokIjvBYBE8GeXCS+lhKYt7YH2iZdwL 6ep4ps0BOgrtFilkR8Dw/AA1JtNYHF9LXsg6uTfehKNsWYrqxrFO1xT4JFFzaKKBfkaSPV Qy7fu/HBymvj4pDrDNY8Z9PXULcnf3E1B5lD3UAAALy+1oZ8kM20kAjQ3UbY8z1gMkh1/N Nn8bQJ2OqFilpbKVUmYDawc+h+DkxadYXxZv9xIAr2kn6Gv2DdlBHGw/BAoqpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ivj29Ms7; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715946597; a=rsa-sha256; cv=none; b=k/BPpBICvHh3f6uyCvtTNK9PTys4ZQ2ru8eRFXysmCM0+pcUa1UT+H7nl6i+tt4mHCR/5U QyKX4zr25nhiO/4+zXUHOOgRs/F0ryIsC0XogbTxkZeTLatdj+6tDoaWVYD2HTydiAovgS ePnYglswnfa6VIJ36XrnnLgAA5qjiQxsggE7mNTOl4F5I17mkr/6egU2NsgiWiciJFPBCv gAjJpBUhe+NXwklzXiEnjD+hKvHZwZk8XeuIbspwsu4qgY57JHDuIFhjgpU3p2iVKcbiX9 wrISoDWHCXte0+IWz6gBEaj7+a8IaF18r5n3imi02h33C6fRME2TZVnkzoZXJg== 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 9183A7BF43 for ; Fri, 17 May 2024 13:49:57 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7w52-0005pV-FK; Fri, 17 May 2024 07:48:56 -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 1s7w4v-0005nw-Hc for emacs-orgmode@gnu.org; Fri, 17 May 2024 07:48:50 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7w4t-0006kI-GC for emacs-orgmode@gnu.org; Fri, 17 May 2024 07:48:49 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 54613240029 for ; Fri, 17 May 2024 13:48:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715946524; bh=crhoMEXMNn9ZBeNyCwk+mnX5wDNEXqbLhVSRhw1XcSU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=ivj29Ms7ZGDUQZRyBolSFZbKKOVhuucXh4UxKnimpP5kQxnMb51d+oq1UBq3V/skD Hs0geODd3Q6FCIHsPCUYdmrvzwrsP0l7/RJ12JxiYo+awTXSJDMMkm1heXFIB5bZUV RH+8757vU6QCJ+4y4P2rNiOL3eVITeOa/GGkaU9LcgN0bN079FrNZQWjj2s9K4iSPO 5Hn/l4XXypW6+p6Y+gV0LG2LpUjn6eqnIUzmAXr+l/Gd6Vxpkwv6cFqYdOofOkm1NK +ROH2CsYQOnkAY2YWnjI/cyU6Ex/ec6FeKXahmngq1ftSGSqPxVayNs70R5O76y5iK YvTXuvaz7JPEg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Vglbb32RPz6tvn; Fri, 17 May 2024 13:48:43 +0200 (CEST) From: Ihor Radchenko To: Punit Arya Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Warning on executing keyboard macro that inserts time-stamp [9.6.27 ( @ /home/punit/.emacs.d/elpa/org-9.6.27/)] In-Reply-To: References: Date: Fri, 17 May 2024 11:50:24 +0000 Message-ID: <87v83c8xof.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.58 X-Migadu-Queue-Id: 9183A7BF43 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.58 X-TUID: uaHt1ngp7UYe Punit Arya writes: > This is an EMACS keyboard macro that I've been using since more than 4-5= =20 > years now. > > (global-set-key [24 11 48] 'my-insert-timestamp)=C2=A0 ;; It translates t= o=20 > the key sequence: C-x C-k 0 > > Its definition is: > > (fset 'my-insert-timestamp > =C2=A0=C2=A0 (kmacro-lambda-form [?* ?\C-u ?\M-! ?p ?r ?i ?n ?t ?f ?=C2= =A0 ?\" ?% ?\(=20 > ?% ?F ?=C2=A0 ?% ?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=20 > "%(%F %T)".=C2=A0 This in turn executes the command to insert the time-st= amp=20 > at point's location. > > This macro does execute and the time-stamp does get printed, but I also=20 > 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=20 May you try to use the development version of Org mode and let me know if you keep seeing the warning? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at