From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25645: reproducer? Date: Wed, 04 Oct 2017 12:27:04 +0300 Message-ID: <83376zz2jb.fsf@gnu.org> References: <871svax7fy.fsf@wavexx.thregr.org> <87a818z4qn.fsf@linaro.org> <83efqk1bw4.fsf@gnu.org> <87r2ujycr8.fsf@linaro.org> <83k20bzcje.fsf@gnu.org> <87o9pnxpuu.fsf@linaro.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1507109294 28084 195.159.176.226 (4 Oct 2017 09:28:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2017 09:28:14 +0000 (UTC) Cc: 25645@debbugs.gnu.org To: Alex =?UTF-8?Q?Benn=C3=A9e?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 04 11:28:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzfyH-0006Le-CI for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 11:28:05 +0200 Original-Received: from localhost ([::1]:33877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzfyO-0003Cb-Jn for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 05:28:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzfyH-0003CV-ON for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 05:28:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzfyE-0004Sn-KF for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 05:28:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzfyE-0004SC-Ge for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 05:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzfyE-00056z-B3 for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 05:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Oct 2017 09:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25645 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 25645-submit@debbugs.gnu.org id=B25645.150710924819608 (code B ref 25645); Wed, 04 Oct 2017 09:28:02 +0000 Original-Received: (at 25645) by debbugs.gnu.org; 4 Oct 2017 09:27:28 +0000 Original-Received: from localhost ([127.0.0.1]:47527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzfxg-00056C-Du for submit@debbugs.gnu.org; Wed, 04 Oct 2017 05:27:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzfxe-00055x-1L for 25645@debbugs.gnu.org; Wed, 04 Oct 2017 05:27:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzfxV-0003Nu-R5 for 25645@debbugs.gnu.org; Wed, 04 Oct 2017 05:27:20 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzfxV-0003NR-Nr; Wed, 04 Oct 2017 05:27:17 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4041 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dzfxV-0008Ch-1P; Wed, 04 Oct 2017 05:27:17 -0400 In-reply-to: <87o9pnxpuu.fsf@linaro.org> (message from Alex =?UTF-8?Q?Benn=C3=A9e?= on Wed, 04 Oct 2017 09:46:17 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137891 Archived-At: > From: Alex Bennée > Cc: 25645@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))) > > Although I feel a slightly neater solution is needed. Hmm... what is non-neat about this one? The existing filtering already includes quite a bit of ad-hoc'ery. > So is the problem we are attempting to double encode an already encoded > buffer or something else? Something like that. I could look deeper, if needed, but frankly the thick forest of Gnus encoding-related stuff is not something I like to wander into. It's easy to break things there because effects are not localized. Thanks.