Eli Zaretskii <e...@gnu.org> writes: >> I think that I see what you mean. What we can do to achieve this is >> changing `kill-line-query-function' into abnormal hook >> `kill-line-query-functions'. Then, `kill-line'/`kill-whole-line' will >> use (run-hook-with-args-until-success 'kill-line-query-functions) to >> decide whether to show a query. >> >> Does it make sense? > > It might, yes. But do we have to _replace_ the hook? cannot we have > both? I.e. if the new one is defined, call it, otherwise call the old > one. That would be more backward-compatible, I think.
May you please elaborate what you mean by "old one"? -- 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>