Ihor Radchenko <[email protected]> writes: > > #+begin_src emacs-lisp > > (add-hook 'org-ctrl-c-ctrl-c-final-hook > > #'my-org-ctrl-c-ctrl-c-final-hook-fun) > > ... > > Now, this changed recently: while dispatching is still done when hitting > > C-c C-c, I _additionally_ get > > > > user-error: `C-c C-c' can do nothing useful here > > > > I don't think this is intended...? > > I am unable to reproduce. Can you try starting from emacs -Q? > See https://orgmode.org/manual/Feedback.html#Feedback
Let me see... Ok, this didn't change recently, so it is probably my own fault. Hmm - `org-ctrl-c-ctrl-c-final-hook' is run with `run-hook-with-args-until-success' and the return value is used so my function just needs to ensure to return non-nil if I don't want to end in the catchall "dunno what to do" branch. Problem solved - no bug. Forgive me, sometimes my heuristic that helps to decide to either (1) "dig and debug" or (2) "just ask what they may have messed up" doesn't give a good advice - I should just have looked what I was doing in this case. I'm sure the next time I do (1) for one hour just to see that someone just messed up something. Thx, Michael.
