From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: mm-with-unibyte-current-buffer Date: Mon, 10 May 2010 16:26:29 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273476497 7516 80.91.229.12 (10 May 2010 07:28:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 May 2010 07:28:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M18062@lists.math.uh.edu Mon May 10 09:28:14 2010 connect(): No such file or directory Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OBNPS-0005uQ-AK for ding-account@gmane.org; Mon, 10 May 2010 09:28:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1OBNOY-0004vM-Ey; Mon, 10 May 2010 02:27:18 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OBNOX-0004vA-32 for ding@lists.math.uh.edu; Mon, 10 May 2010 02:27:17 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1OBNOS-0003Hp-9G for ding@lists.math.uh.edu; Mon, 10 May 2010 02:27:16 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OBNOO-0002YC-00 for ; Mon, 10 May 2010 09:27:08 +0200 Original-Received: from localhost ([127.0.0.1]:44537) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1OBNNo-0001iU-N0; Mon, 10 May 2010 02:26:33 -0500 X-Hashcash: 1:20:100510:ding@gnus.org::hgaFN8B4fGU6zq2J:00000Fgc X-Hashcash: 1:20:100510:emacs-devel@gnu.org::9hdrNGKd31GLebjK:0000000000000000000000000000000000000000000RNP User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:CBFC2DHvb7LTj9OtA8UPa7DwB1c= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69671 gmane.emacs.devel:124657 Archived-At: I've redefined the `mm-with-unibyte-current-buffer' macro so as not to bind the default value of `enable-multibyte-characters' to nil, since it is no longer allowed (causes an error actually) in Emacs 24. Formerly it did in a multibyte buffer: (letf (((default-value 'enable-multibyte-characters) nil)) (set-buffer-multibyte nil) bla bla bla (set-buffer-multibyte t)) Now it only does: (set-buffer-multibyte nil) bla bla bla (set-buffer-multibyte t) The main purpose of having bound it seems to make a unibyte buffer with `generate-new-buffer', `with-temp-buffer', etc. Anyway changing the multibyteness of a buffer may cause a serious trouble to buffer's contents especially if there are multibyte or 8-bit characters. Though many Gnus modules still use the macro; I'm not capable to fix them all. Due to this change some of them may malfunction. Please report it together with a recipe; I may be able to fix it or may not. ,---- | mm-with-unibyte-current-buffer is a Lisp macro in `mm-util.el'. | | (mm-with-unibyte-current-buffer &rest FORMS) | | Evaluate FORMS with current buffer temporarily made unibyte. | Equivalent to `progn' in XEmacs. | | Note: We recommend not using this macro any more; there should be | better ways to do a similar thing. The previous version of this macro | bound the default value of `enable-multibyte-characters' to nil while | evaluating FORMS but it is no longer done. So, some programs assuming | it if any may malfunction. `----