Eli Zaretskii writes: >> From: Akib Azmain Turja >> Cc: tumashu@163.com, 59793@debbugs.gnu.org >> Date: Fri, 09 Dec 2022 16:44:36 +0600 >> >> But how can I copy 'yank-transform-functions' hook to the temporary >> buffer? > > By using add-hook, of course. > > But I feel that I don't understand the question, or am missing > something, because you basically are asking how to assign to a > variable the value of another variable, and what is the difficulty > with that that needs such a question to be answered? Yes, you didn't understand. Hooks can have global and local function. I'm asking how to copy the local functions in 'yank-transform-functions' hook to the temporary buffer? (So that 'run-hook-wrapped' calls the same functions on both (original and temporary) buffers.) -- Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption."