emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Warning on executing keyboard macro that inserts time-stamp [9.6.27 ( @ /home/punit/.emacs.d/elpa/org-9.6.27/)]
@ 2024-05-16 11:15 Punit Arya
  2024-05-17 11:50 ` Ihor Radchenko
  0 siblings, 1 reply; 16+ messages in thread
From: Punit Arya @ 2024-05-16 11:15 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 9179 bytes --]

Hi

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.

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------



Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
3.24.33, cairo version 1.16.0)
of 2023-08-16, modified by Debian
Package: Org mode version 9.6.27 ( @ /home/punit/.emacs.d/elpa/org-9.6.27/)

current state:
==============
(setq
org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
org-fontify-whole-heading-line t
org-link-shell-confirm-function 'yes-or-no-p
org-num-format-function 'org-num-default-format
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-time-stamp-custom-formats '("<%Y-%m-%d>" . "<%Y-%m-%d %T>")
org-pretty-entities t
org-latex-default-packages-alist '(("AUTO" "inputenc" t ("pdflatex")) 
("T1" "fontenc" t ("pdflatex")) ("" "graphicx" t nil)
("" "grffile" t nil) ("" "longtable" nil nil) ("" "wrapfig" nil nil) ("" 
"rotating" nil nil)
("normalem" "ulem" t nil) ("" "amsmath" t nil) ("" "textcomp" t nil) ("" 
"amssymb" t nil)
("" "capt-of" nil nil) ("" "hyperref" nil nil))
org-edit-src-content-indentation 0
org-special-ctrl-a/e t
org-persist-before-write-hook '(org-element--cache-persist-before-write)
org-tag-alist '(("HIG" . 104) ("MED" . 109) ("LOW" . 108))
org-modules '(ol-bbdb ol-bibtex ol-docview ol-eww ol-gnus ol-info ol-irc 
ol-mhe ol-rmail org-tempo ol-w3m)
org-startup-folded nil
org-mode-hook '(org-tempo-setup (lambda nil (define-key org-mode-map 
(kbd "<f5>") 'org-export-as-pdf)) org-indent-mode
org-fancy-priorities-mode olivetti-mode org-variable-pitch-minor-mode 
org-sticky-header-mode org-superstar-mode
#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook 
org-show-all append local] 5]
#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook 
org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes
#[0 "\301\211\207" [imenu-create-index-function org-imenu-get-tree] 2]
(lambda nil (font-lock-add-keywords 'org-mode '(("^.*:TT:.*$" . 
font-lock-warning-face)))) org-pretty-tags-mode
prettify-symbols-mode)
org-columns-ellipses ""
org-fancy-priorities-list '("Ⓐ" "Ⓑ" "Ⓒ" "Ⓓ" "Ⓔ")
org-indent-indentation-per-level 4
org-outline-path-complete-in-steps nil
org-archive-hook '(org-attach-archive-delete-maybe)
org-persist-before-read-hook '(org-element--cache-persist-before-read)
org-agenda-restore-windows-after-quit t
org-superstar-headline-bullets-list '(8203)
org-confirm-elisp-link-function 'yes-or-no-p
org-agenda-finalize-hook '(org-pretty-tags-refresh-agenda-lines 
org-fancy-priorities-create-overlays)
org-startup-indented t
org-startup-with-inline-images t
org-sticky-header-outline-path-reversed-separator "❮"
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-pretty-tags-mode-hook '(org-pretty-tags-mode-set-explicitly)
org-persist-after-read-hook '(org-element--cache-persist-after-read)
org-startup-with-latex-preview t
org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 
"\n\n(fn ENTRY)"]
org-babel-pre-tangle-hook '(save-buffer)
org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) 
("\\.x?html?\\'" . default) ("\\.pdf\\'" . "okular %s"))
org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
org-hide-leading-stars t
org-variable-pitch-fixed-font "M+ 1mn Light"
org-read-date-popup-calendar nil
org-babel-load-languages '((emacs-lisp . t) (python . t) (jupyter . t))
org-log-done 'time
org-hide-emphasis-markers t
org-export-backends '(ascii html latex man md odt org texinfo)
org-list-use-circular-motion t
org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
org-pretty-tags-surrogate-strings '(("HIG" . "ℋ") ("MED" . "ℳ") ("LOW" . 
"ℒ"))
org-priority-lowest 69
org-agenda-loop-over-headlines-in-active-region nil
org-src-preserve-indentation t
org-fontify-quote-and-verse-blocks t
org-superstar-remove-leading-stars t
org-fold-core-isearch-open-function 'org-fold--isearch-reveal
org-occur-hook '(org-first-headline-recenter)
org-log-into-drawer t
org-export-before-processing-hook '(org-babel-jupyter-setup-export)
org-after-tags-change-hook '(org-pretty-tags-refresh-overlays-org-mode)
org-sticky-header-heading-star ""
org-ctrl-c-ctrl-c-hook '(org-pretty-tags-refresh-overlays-org-mode)
org-pretty-tags-surrogate-images '(("@HIG" . "/home/punit/dl/HIG.jpg") 
("@MED" . "/home/punit/dl/MED.jpg")
("@LOW" . "/home/punit/dl/LOW.jpg"))
org-cycle-hook '(org-cycle-hide-archived-subtrees 
org-cycle-show-empty-lines 
org-cycle-optimize-window-after-visibility-change
org-cycle-display-inline-images)
org-todo-keywords '((sequence "DOI(d!/@)" "TOD(t!/@)" "VER(v!/@)" 
"WAI(w!/@)" "|" "FIN(f!/@)" "SCR(s!/@)"))
org-speed-command-hook '(org-speed-command-activate 
org-babel-speed-command-activate)
org-tags-column 0
org-attach-id-dir "attachments/"
org-safe-remote-resources 
'("\\`https://fniessen\\.github\\.io/org-html-themes/org/theme-readtheorg\\.setup\\'")
org-sticky-header-full-path 'reversed
org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el") 
("elisp" . "el"))
org-format-latex-options '(:foreground "#b0b0b0" :background "#232627" 
:scale 1.5 :html-foreground "#fcfcfc" :html-background
"Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" 
"\\["))
org-display-remote-inline-images 'cache
org-priority-faces '((65 . "#FFC300") (66 . "#FF9733") (67 . "#B73F39") 
(68 . "#7F1F3F") (69 . "#581845"))
org-export-before-parsing-hook '(org-attach-expand-links 
org-babel-jupyter-strip-ansi-escapes)
org-id-locations-file "~/.emacs.d/org-id-locations"
org-pretty-tags-mode-lighter " PrettyTags"
org-confirm-shell-link-function 'yes-or-no-p
org-link-parameters '(("attachment" :follow org-attach-follow :complete 
org-attach-complete-link) ("id" :follow org-id-open)
("w3m" :store org-w3m-store-link) ("rmail" :follow org-rmail-open :store 
org-rmail-store-link)
("mhe" :follow org-mhe-open :store org-mhe-store-link)
("irc" :follow org-irc-visit :store org-irc-store-link :export 
org-irc-export)
("info" :follow org-info-open :export org-info-export :store 
org-info-store-link :insert-description
org-info-description-as-command)
("gnus" :follow org-gnus-open :store org-gnus-store-link) ("eww" :follow 
org-eww-open :store org-eww-store-link)
("docview" :follow org-docview-open :export org-docview-export :store 
org-docview-store-link)
("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete 
org-bbdb-complete-link :store
org-bbdb-store-link)
("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell)
("news" :follow #[514 "\301\300\302Q\"\207" ["news" browse-url ":"] 6 
"\n\n(fn URL ARG)"])
("mailto" :follow #[514 "\301\300\302Q\"\207" ["mailto" browse-url ":"] 
6 "\n\n(fn URL ARG)"])
("https" :follow #[514 "\301\300\302Q\"\207" ["https" browse-url ":"] 6 
"\n\n(fn URL ARG)"])
("http" :follow #[514 "\301\300\302Q\"\207" ["http" browse-url ":"] 6 
"\n\n(fn URL ARG)"])
("ftp" :follow #[514 "\301\300\302Q\"\207" ["ftp" browse-url ":"] 6 
"\n\n(fn URL ARG)"])
("help" :follow org-link--open-help :store org-link--store-help) ("file" 
:complete org-link-complete-file)
("elisp" :follow org-link--open-elisp))
org-tag-faces '(("HIG" . "Brown1") ("MED" . "Cyan1") ("LOW" . 
"Aquamarine"))
org-link-elisp-confirm-function 'yes-or-no-p
org-todo-keyword-faces '(("DOI" . "Orange") ("TOD" . "Red") ("VER" . 
"Yellow") ("WAI" . "White") ("FIN" . "Green")
("SCR" . "AntiqueWhite4"))
org-tab-before-tab-emulation-hook '(org-tempo-complete-tag)
org-sticky-header-prefix nil
org-latex-packages-alist '(("" "listingsutf8" nil) ("" "color" nil) ("" 
"listings" t)
("margins=3cm,paperwidth=21cm,paperheight=29.7cm" "geometry" t)
("compactitem,compactdesc,compactenum" "paralist" nil))
org-fontify-todo-headline t
org-display-custom-times t
org-startup-truncated nil
org-priority-default 67
org-superstar-item-bullet-alist '((42 . 10057) (43 . 1805) (45 . 10144))
org-pretty-entities-include-sub-superscripts nil
org-variable-pitch-fontify-headline-prefix t
org-directory "~/doc"
org-table-default-size "8x2"
org-num-face 'comint-highlight-prompt
org-indent-mode-turns-off-org-adapt-indentation nil
org-default-notes-file "~/.emacs.d/org-notes"
org-list-allow-alphabetical t
org-treat-insert-todo-heading-as-state-change t
)

-- 

*Punit Arya*
+91 9035 312 634

/Sent From Mozilla Thunderbird/


//

[-- Attachment #2: Type: text/html, Size: 11768 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-10-02 16:35 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).