unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Sascha Wilde <wilde@sha-bang.de>
To: emacs-devel@gnu.org
Cc: ding <ding@gnus.org>
Subject: mm-with-unibyte-current-buffer broken in Emacs trunk
Date: Tue, 11 May 2010 12:25:32 +0200	[thread overview]
Message-ID: <m2zl06spk3.fsf@kenny.sha-bang.de> (raw)

Hi *,

with an current build of GNU Emacs from bzr I can not forward
(gnus-summary-mail-forward) mail any more.

The problem boils down to message-forward-make-body-mml calling
mm-with-unibyte-current-buffer which in turn tries to set the read only
variable enable-multibyte-characters.

According to this comment in mm-with-unibyte-current-buffer:

  ;; FIXME: (default-value 'enable-multibyte-characters) is read-only
  ;; so let-binding it is wrong.  The right fix is to not use this
  ;; macro at all any more, since it's been ill-defined from the start.

the problem is known, but I'd say not being able to forward messages
(and there might be other serious problems, too) is an regression, so
this _really_ needs fixing.

FWIW: simply removing the call to mm-with-unibyte-current-buffer from
message-forward-make-body-mml worked for me -- but I suspect there are
corner cases where this would cause problems.

cheers
sascha
-- 
Sascha Wilde : xedit? Das sieht zwar wie vi aus als könne es nix, aber im
             : Gegensatz zu vi kann es wirklich nix und nix ist noch geschönt!
             : (Michael Core in dafc)



             reply	other threads:[~2010-05-11 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-11 10:25 Sascha Wilde [this message]
2010-05-11 23:28 ` mm-with-unibyte-current-buffer broken in Emacs trunk Katsumi Yamaoka

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=m2zl06spk3.fsf@kenny.sha-bang.de \
    --to=wilde@sha-bang.de \
    --cc=ding@gnus.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 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).