all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* error "Can’t expand minibuffer to full frame"
@ 2021-02-22 14:42 Florian Lindner
  2021-02-22 16:58 ` TRS-80
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Lindner @ 2021-02-22 14:42 UTC (permalink / raw)
  To: emacs-orgmode

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


Hello,
I try to configure my org mode (Org mode version  ( @ /lhome/lindnfl/.emacs.d/elpa/org-9.4.4/)) to ask for a note and also for a specific property when moving a state to WAIT. For that I use

(setq
  org-todo-keywords '((sequence "NEXT" "TODO" "WAIT(w@)" "|" "DONE(d!)" "NODO(n@)"))
  org-log-into-drawer t
)

(defun flo/org-state-change()
  (when (string= org-state "WAIT")
    (org-set-property "DELEGATED_TO" (read-string "Delegate To: "))))

(setq org-after-todo-state-change-hook 'flo/org-state-change)


However, I suspect the state-change-hook and the note when leaving WAIT state conflict:

Error in post-command-hook (org-add-log-note): (error "Can’t expand minibuffer to full frame")

resulting in that I am only asked to set the property, note the note.

What can i do about it? I don't really care in which order I enter the two note / property.

Thanks,
Florian
 

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

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

* Re: error "Can’t expand minibuffer to full frame"
  2021-02-22 14:42 error "Can’t expand minibuffer to full frame" Florian Lindner
@ 2021-02-22 16:58 ` TRS-80
  0 siblings, 0 replies; 2+ messages in thread
From: TRS-80 @ 2021-02-22 16:58 UTC (permalink / raw)
  To: emacs-orgmode

On 2021-02-22 09:42, Florian Lindner wrote:
> Hello,
> I try to configure my org mode (Org mode version  ( @
> /lhome/lindnfl/.emacs.d/elpa/org-9.4.4/)) to ask for a note and also
> for a specific property when moving a state to WAIT. For that I use
> 
> (setq
>   org-todo-keywords '((sequence "NEXT" "TODO" "WAIT(w@)" "|"
> "DONE(d!)" "NODO(n@)"))
>   org-log-into-drawer t
> )
> 
> (defun flo/org-state-change()
>   (when (string= org-state "WAIT")
>     (org-set-property "DELEGATED_TO" (read-string "Delegate To: "))))
> 
> (setq org-after-todo-state-change-hook 'flo/org-state-change)
> 
> However, I suspect the state-change-hook and the note when leaving
> WAIT state conflict:
> 
> Error in post-command-hook (org-add-log-note): (error "Can’t expand
> minibuffer to full frame")
> 
> resulting in that I am only asked to set the property, note the note.
> 
> What can i do about it? I don't really care in which order I enter the
> two note / property.
> 
> Thanks,
> Florian

I seem to recall having a similar conflict.  In my case, I realized that
the calling script "kept going" instead of waiting for the note entry to
be completed.  Therefore, try and make sure that org-log-into-drawer
gets called "last."  I am pretty sure this will require digging into Org
internals to see in what order things go.

Sorry if that's vague, it's been a while since I dealt with this.  And
it may or may not even actually be your problem.

Cheers,
TRS-80


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

end of thread, other threads:[~2021-02-22 16:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-22 14:42 error "Can’t expand minibuffer to full frame" Florian Lindner
2021-02-22 16:58 ` TRS-80

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.