From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6010: 24.0.50; setting-constant enable-multibyte-characters Date: Fri, 23 Apr 2010 12:16:24 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272042372 1271 80.91.229.12 (23 Apr 2010 17:06:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2010 17:06:12 +0000 (UTC) To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 23 19:06:10 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O5MKQ-0004HU-1t for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Apr 2010 19:06:10 +0200 Original-Received: from localhost ([127.0.0.1]:41160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5MKP-0004o6-GA for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Apr 2010 13:06:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5Lh8-0007Se-Fl for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 12:25:34 -0400 Original-Received: from [140.186.70.92] (port=52638 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5Lh6-0007RE-TK for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 12:25:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5Lh5-0005lN-9L for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 12:25:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54195) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5Lh5-0005lH-7d for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 12:25:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O5Ldi-0004Xu-Dd for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 12:22:02 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Apr 2010 16:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 6010 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 6010@debbugs.gnu.org, monnier@IRO.UMontreal.CA Original-Received: via spool by 6010-done@debbugs.gnu.org id=D6010.127203970717465 (code D ref 6010); Fri, 23 Apr 2010 16:22:02 +0000 Original-Received: (at 6010-done) by debbugs.gnu.org; 23 Apr 2010 16:21:47 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5LdT-0004Xe-56 for submit@debbugs.gnu.org; Fri, 23 Apr 2010 12:21:47 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5LYR-0004Tv-Mz for 6010-done@debbugs.gnu.org; Fri, 23 Apr 2010 12:16:36 -0400 Original-Received: from alfajor.home (x-132-204-252-65.xtpr.umontreal.ca [132.204.252.65]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with SMTP id o3NGGRqr026485; Fri, 23 Apr 2010 12:16:27 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id 9C2084A0CA; Fri, 23 Apr 2010 12:16:24 -0400 (EDT) In-Reply-To: (Katsumi Yamaoka's message of "Fri, 23 Apr 2010 16:50:28 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3520=0 X-Mailman-Approved-At: Fri, 23 Apr 2010 12:21:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 23 Apr 2010 12:22:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36447 Archived-At: > Debugger entered--Lisp error: (setting-constant enable-multibyte-characters) > set-default(enable-multibyte-characters nil) > mm-find-buffer-file-coding-system("~/bt.gz") Thanks. The patch below should have fixed it, Stefan === modified file 'lisp/gnus/mm-util.el' --- lisp/gnus/mm-util.el 2010-03-15 01:38:28 +0000 +++ lisp/gnus/mm-util.el 2010-04-23 15:04:34 +0000 @@ -1239,6 +1239,9 @@ harmful since it is likely to modify existing data in the buffer. For instance, it converts \"\\300\\255\" into \"\\255\" in Emacs 23 (unicode)." + ;; 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. (let ((multibyte (make-symbol "multibyte")) (buffer (make-symbol "buffer"))) `(if mm-emacs-mule @@ -1593,8 +1596,8 @@ filename)) (mm-decompress-buffer filename nil t)))) (when decomp - (set-buffer (letf (((default-value 'enable-multibyte-characters) nil)) - (generate-new-buffer " *temp*"))) + (set-buffer (generate-new-buffer " *temp*")) + (mm-disable-multibyte) (insert decomp) (setq filename (file-name-sans-extension filename))) (goto-char (point-min)) === modified file 'lisp/gnus/yenc.el' --- lisp/gnus/yenc.el 2010-01-13 08:35:10 +0000 +++ lisp/gnus/yenc.el 2010-04-23 14:59:23 +0000 @@ -89,8 +89,9 @@ (when (re-search-forward "^=yend.*$" end t) (setq last (match-beginning 0)) (setq footer-alist (yenc-parse-line (match-string 0))) - (letf (((default-value 'enable-multibyte-characters) nil)) - (setq work-buffer (generate-new-buffer " *yenc-work*"))) + (with-current-buffer + (setq work-buffer (generate-new-buffer " *yenc-work*")) + (set-buffer-multibyte nil)) (while (< first last) (setq char (char-after first)) (cond ((or (eq char ?\r)