all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "JJ" <bug-gnu-emacs_gnu.org@sumou.com>
To: bug-gnu-emacs@gnus.org
Cc: 5981@debbugs.gnu.org
Subject: bug#5981: 24.0.50; Attempt to set a constant symbol: enable-multibyte-characters
Date: Sat, 24 Apr 2010 19:26:38 +0200	[thread overview]
Message-ID: <871ve47odt.fsf@sabayon.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <83hbn65x2v.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

>This bug persists for me with the current 100012 bzr Emacs
>trunk. Problems arise in Gnus.
>When trying to `S o m' forward a mail, it reports:
>Attempt to set a constant symbol: enable-multibyte-characters

Here is a patch to fix this error on the latest GNU Emacs bzr trunk:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mm-util.el-multibyte.patch --]
[-- Type: text/x-patch, Size: 786 bytes --]

--- trunk/lisp/gnus/mm-util.el	2010-04-24 18:49:21.189375459 +0200
+++ trunk-patched/lisp/gnus/mm-util.el	2010-04-24 18:50:30.610376339 +0200
@@ -1248,13 +1248,15 @@
 	 (let ((,multibyte enable-multibyte-characters)
 	       (,buffer (current-buffer)))
 	   (unwind-protect
-	       (letf (((default-value 'enable-multibyte-characters) nil))
+	       (letf ()
 		 (set-buffer-multibyte nil)
 		 ,@forms)
 	     (set-buffer ,buffer)
 	     (set-buffer-multibyte ,multibyte)))
-       (letf (((default-value 'enable-multibyte-characters) nil))
-	 ,@forms))))
+       (letf ()
+	 (set-buffer-multibyte nil)
+	 ,@forms
+	 (set-buffer-multibyte ,multibyte)))))
 (put 'mm-with-unibyte-current-buffer 'lisp-indent-function 0)
 (put 'mm-with-unibyte-current-buffer 'edebug-form-spec '(body))
 

[-- Attachment #3: Type: text/plain, Size: 8 bytes --]


-- 
JJ

      parent reply	other threads:[~2010-04-24 17:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-20  8:48 bug#5981: 24.0.50; Attempt to set a constant symbol: enable-multibyte-characters Eli Zaretskii
2010-04-20 14:50 ` Stefan Monnier
2010-04-23 17:40 ` ShiroiKuma
2010-04-23 21:20 ` JJ
2010-04-23 22:43 ` JJ
2010-04-24 17:26 ` JJ [this message]

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=871ve47odt.fsf@sabayon.i-did-not-set--mail-host-address--so-tickle-me \
    --to=bug-gnu-emacs_gnu.org@sumou.com \
    --cc=5981@debbugs.gnu.org \
    --cc=bug-gnu-emacs@gnus.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.