From: Punit Arya <arya.punit@gmail.com>
To: emacs-orgmode@gnu.org
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/)]
Date: Tue, 21 May 2024 18:40:42 +0530 [thread overview]
Message-ID: <af8c22ef-0902-4fab-937e-190fd6430371@gmail.com> (raw)
In-Reply-To: <87v83c8xof.fsf@localhost>
On 2024-05-17 17:20, Ihor Radchenko wrote:
> Punit Arya <arya.punit@gmail.com> 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.
next prev parent reply other threads:[~2024-05-21 13:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-16 11:15 [BUG] Warning on executing keyboard macro that inserts time-stamp [9.6.27 ( @ /home/punit/.emacs.d/elpa/org-9.6.27/)] Punit Arya
2024-05-17 11:50 ` Ihor Radchenko
2024-05-21 13:01 ` Punit Arya
2024-05-21 13:10 ` Punit Arya [this message]
2024-06-18 12:39 ` Ihor Radchenko
2024-06-18 17:17 ` Punit Arya
2024-07-22 11:53 ` Ihor Radchenko
2024-07-22 12:30 ` Punit Arya
2024-07-22 12:43 ` Ihor Radchenko
2024-08-22 6:24 ` Ihor Radchenko
2024-08-27 5:58 ` Punit Arya
2024-08-27 6:21 ` Dov Grobgeld
2024-08-27 12:46 ` Punit Arya
2024-08-31 14:38 ` Ihor Radchenko
2024-09-01 6:25 ` Punit Arya
2024-10-02 16:35 ` Ihor Radchenko
2024-10-08 5:48 ` Punit Arya
2024-10-19 13:04 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=af8c22ef-0902-4fab-937e-190fd6430371@gmail.com \
--to=arya.punit@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).