unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: David Bremner <david@tethera.net>
Cc: 21174@debbugs.gnu.org
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	[thread overview]
Message-ID: <87efzpk1dc.fsf@gnus.org> (raw)
In-Reply-To: <87vbcze8jn.fsf@maritornes.cs.unb.ca> (David Bremner's message of "Sat, 01 Aug 2015 10:07:24 +0200")

David Bremner <david@tethera.net> 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	other threads:[~2017-01-26 20:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-01  8:07 bug#21174: 24.5; please make message-do-fcc respect local settings of message-handler-fcc-function David Bremner
2017-01-26 20:33 ` Lars Ingebrigtsen [this message]
2017-01-26 20:39 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efzpk1dc.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=21174@debbugs.gnu.org \
    --cc=david@tethera.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).