From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex =?UTF-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.bugs Subject: bug#25645: reproducer? Date: Wed, 04 Oct 2017 09:46:17 +0100 Message-ID: <87o9pnxpuu.fsf@linaro.org> References: <871svax7fy.fsf@wavexx.thregr.org> <87a818z4qn.fsf@linaro.org> <83efqk1bw4.fsf@gnu.org> <87r2ujycr8.fsf@linaro.org> <83k20bzcje.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507106829 14020 195.159.176.226 (4 Oct 2017 08:47:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Oct 2017 08:47:09 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.60 Cc: 25645@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 04 10:47: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 1dzfKb-0002yR-0o for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 10:47:05 +0200 Original-Received: from localhost ([::1]:33757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzfKg-0002YZ-Rs for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Oct 2017 04:47:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzfKb-0002VU-6r for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 04:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzfKY-0008Nq-1p for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 04:47:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38786) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzfKX-0008NI-U1 for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 04:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzfKX-00043Y-Hl for bug-gnu-emacs@gnu.org; Wed, 04 Oct 2017 04:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex =?UTF-8?Q?Benn=C3=A9e?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Oct 2017 08:47:01 +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.150710678615547 (code B ref 25645); Wed, 04 Oct 2017 08:47:01 +0000 Original-Received: (at 25645) by debbugs.gnu.org; 4 Oct 2017 08:46:26 +0000 Original-Received: from localhost ([127.0.0.1]:47467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzfJy-00042h-0q for submit@debbugs.gnu.org; Wed, 04 Oct 2017 04:46:26 -0400 Original-Received: from mail-wm0-f47.google.com ([74.125.82.47]:48063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzfJw-00042U-NG for 25645@debbugs.gnu.org; Wed, 04 Oct 2017 04:46:25 -0400 Original-Received: by mail-wm0-f47.google.com with SMTP id t69so21237615wmt.2 for <25645@debbugs.gnu.org>; Wed, 04 Oct 2017 01:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=7zZNZ3r5K44YjC+7EPwLfvjHmYP3VbH4Uu4VLKtvrb8=; b=d8YU2m2aaCuwXNZaNU/5mUENXS7t+NevD2cC2h0HldBk91LIxZah4XOzdeuV6lJqeq oPysPV+rf0LxqXvnpAFvb7ErKWqZoaT5Xal8umeI/PVO7n/oCEWz1xPPhqjaYvJ01T+Q cbT50oYIpuYJKttG1qCYUe3OXrnwoggNOCKGE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=7zZNZ3r5K44YjC+7EPwLfvjHmYP3VbH4Uu4VLKtvrb8=; b=BruuiN5LlNXeMLsugTXz+EU2Uq1rIvFEG0J9LYyHHvZPsuCj2DyrEBkaWg1BO89Akl HY9HMXWP/M4kjRgDkUBON0Xkgnhrg98yC2deQIVXpPiYmLVYZzfXTGRZyqeV7u0P7ktz u1rdelGJoD8M5x3jLbWICCA48PRSfvX+p7Z1CeDemBkIyZ+nMj79FZwzhcdq2dbhIMGM 6ZqZOTglfv/UvsQhPRLWBSRWwx12VldBI0NrGQ+Z78wLY2fpU6N3p69afzMJlJGLN41p wahLgUWp0X/njy99gBc14IL3x1dXg5Lsnju93K8siVJRWwK69j4TrmupaV44NaHn22uD T5hQ== X-Gm-Message-State: AHPjjUiD0BxxXOJtB1Hb0aTgdaEzPIXoV50OggkKv4+xeyHWDex7WAIe ZzzCKWdIF2NTUFvYFOmWOIhm64Ov6F0= X-Google-Smtp-Source: AOwi7QBwEJ7l4WvEg0p6dix3HyEDWTx4A6O8zlfUOTwwwOAQSBopjbnim28JDcoCS+Tq8/+kTPQsxQ== X-Received: by 10.28.9.130 with SMTP id 124mr13332524wmj.65.1507106778287; Wed, 04 Oct 2017 01:46:18 -0700 (PDT) Original-Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c37sm2069477wra.73.2017.10.04.01.46.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 01:46:17 -0700 (PDT) Original-Received: from zen (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id 2E3623E01C7; Wed, 4 Oct 2017 09:46:17 +0100 (BST) In-reply-to: <83k20bzcje.fsf@gnu.org> 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:137882 Archived-At: Eli Zaretskii writes: >> From: Alex Benn=C3=A9e >> Cc: 25645@debbugs.gnu.org >> Date: Wed, 04 Oct 2017 01:31:39 +0100 >> >> copying: message-default-charset -> utf-8 > > 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 (ca= r 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. So is the problem we are attempting to double encode an already encoded buffer or something else? -- Alex Benn=C3=A9e