all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] emacs-26 aca5f00: Avoid encoding errors in message.el
Date: Mon, 09 Oct 2017 11:57:11 -0400	[thread overview]
Message-ID: <jwv1smcb9j0.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <20171009134716.77ADE201F1@vcs0.savannah.gnu.org> (Eli Zaretskii's message of "Mon,  9 Oct 2017 09:47:16 -0400 (EDT)")

> -	   (set (make-local-variable (car local))
> -		(cdr local)))))
> +	   ;; Cloning message-default-charset could cause an already
> +	   ;; encoded text to be encoded again, yielding raw bytes
> +	   ;; instead of characters in the message.
> +	   (unless (string-match "message-default-charset"
> +				 (symbol-name (car local)))
> +	     (set (make-local-variable (car local))
> +		  (cdr local))))))

Could you add a comment explaining why we do

    (string-match "message-default-charset" (symbol-name (car local))

rather than

    (eq 'message-default-charset (car local))


-- Stefan "puzzled"



       reply	other threads:[~2017-10-09 15:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20171009134715.11038.14309@vcs0.savannah.gnu.org>
     [not found] ` <20171009134716.77ADE201F1@vcs0.savannah.gnu.org>
2017-10-09 15:57   ` Stefan Monnier [this message]
2017-10-09 16:18     ` [Emacs-diffs] emacs-26 aca5f00: Avoid encoding errors in message.el Eli Zaretskii
2017-10-09 16:33       ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=jwv1smcb9j0.fsf-monnier+emacsdiffs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.