From: Ihor Radchenko <yantar92@posteo.net>
To: Punit Arya <arya.punit@gmail.com>
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: Fri, 17 May 2024 11:50:24 +0000 [thread overview]
Message-ID: <87v83c8xof.fsf@localhost> (raw)
In-Reply-To: <c8a73536-6315-4671-852b-46f3f10933ad@gmail.com>
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?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2024-05-17 11:49 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 [this message]
2024-05-21 13:01 ` Punit Arya
2024-05-21 13:10 ` Punit Arya
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v83c8xof.fsf@localhost \
--to=yantar92@posteo.net \
--cc=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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.