emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: [PATCH] org-capture: Update plist before finalizing (Leo Vivier)
       [not found] <mailman.45.1595779211.26639.emacs-orgmode@gnu.org>
@ 2020-07-26 17:40 ` No Wayman
  0 siblings, 0 replies; only message in thread
From: No Wayman @ 2020-07-26 17:40 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: emacs-orgmode-request


I needed a similar workaround in doct:

https://github.com/progfolio/doct/blob/80d291e5f1cbdabd4eb7f88c917653c59d3f14be/doct.el#L589-L592

I restore `org-capture-plist' to the value of 
`org-capture-current-plist' after the 
`org-capture-before-finalize-hook' is run.

As of: 
https://code.orgmode.org/bzg/org-mode/commit/3ba4f056d736c4ed4261ad3b234e0199edec6e8c
`org-capture-current-plist' is available during all hooks except 
`org-capture-after-finalize-hook'.
So `org-capture-plist' should be ignored in favor of 
`org-capture-current-plist' after the initialization of the 
capture process.
I came to the same conclusion. Restoring `org-capture-plist' after 
finalizing a capture should not cause any harm.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-26 17:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.45.1595779211.26639.emacs-orgmode@gnu.org>
2020-07-26 17:40 ` [PATCH] org-capture: Update plist before finalizing (Leo Vivier) No Wayman

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