bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21174: 24.5; please make message-do-fcc respect local settings of me


From: Lars Ingebrigtsen
Subject: bug#21174: 24.5; please make message-do-fcc respect local settings of message-handler-fcc-function
Date: Thu, 26 Jan 2017 21:33:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

David Bremner <address@hidden> writes:

> I'm trying to wrap message-mail in a function that (effectively)
> temporarily sets the value of message-fcc-handler-function. This isn't
> as easy as let-binding the variable since message-do-fcc is invoked
> after the call to message-mail returns. The obvious next thing to try is
> setting the variable buffer-locally. This fails because message-do-fcc
> creates a new buffer and copies the buffer content from the message-mode
> buffer, but not any of the buffer-local variables.

Hm...  perhaps it would make sense to copy over all buffer-local
variables to this temporary buffer?  Does Emacs have a function to copy
buffer-local variables from one buffer to another?

Or would there be hideous consequences?  I can see how copying over
buffer-local mode-specific variables might be...  challenging in some
cases...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]