GNU bug report logs - #25645
26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26

Previous Next

Package: emacs;

Reported by: Yuri D'Elia <wavexx <at> thregr.org>

Date: Tue, 7 Feb 2017 17:01:01 UTC

Severity: normal

Tags: unreproducible

Found in version 26.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #62 received at 25645-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alex Bennée <alex.bennee <at> linaro.org>
Cc: 25645-done <at> debbugs.gnu.org
Subject: Re: bug#25645: reproducer?
Date: Mon, 09 Oct 2017 16:47:37 +0300
> From: Alex Bennée <alex.bennee <at> linaro.org>
> Cc: 25645 <at> debbugs.gnu.org
> Date: Wed, 04 Oct 2017 09:46:17 +0100
> 
> > A stab in the dark: what if you filter out message-default-charset
> > from the cloned locals?
> 
> Good guess:
> 
> (defun message-clone-locals (buffer &optional varstr)
>   "Clone the local variables from BUFFER to the current buffer."
>   (message "message-clone-locals: %s" buffer)
>   (let ((locals (with-current-buffer buffer (buffer-local-variables)))
> 	(regexp "^gnus\\|^nn\\|^message\\|^sendmail\\|^smtp\\|^user-mail-address"))
>     (mapcar
>      (lambda (local)
>        (when (and (consp local)
> 		  (car local)
> 		  (string-match regexp (symbol-name (car local)))
> 		  (or (null varstr)
> 		      (string-match varstr (symbol-name (car local)))))
> 	 (ignore-errors
>            (unless (string-match "message-default-charset" (symbol-name (car local)))
>              (message "copying: %s -> %s" (car local) (cdr local))
> 	     (set (make-local-variable (car local))
> 		  (cdr local))))))
>      locals)))

Thanks, I installed this, and I'm marking the bug done.




This bug report was last modified 7 years and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.