From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: mm-with-unibyte-current-buffer Date: Mon, 10 May 2010 21:47:24 +0300 Message-ID: <83tyqfppab.fsf@gnu.org> References: <83y6frptd7.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1273517428 6903 80.91.229.12 (10 May 2010 18:50:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 May 2010 18:50:28 +0000 (UTC) Cc: yamaoka@jpl.org, ding@gnus.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 10 20:50:25 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@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 1OBY3d-0005S2-3B for ged-emacs-devel@m.gmane.org; Mon, 10 May 2010 20:50:25 +0200 Original-Received: from localhost ([127.0.0.1]:52291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBY3c-00069j-GR for ged-emacs-devel@m.gmane.org; Mon, 10 May 2010 14:50:24 -0400 Original-Received: from [140.186.70.92] (port=52982 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBY3U-00066h-2P for emacs-devel@gnu.org; Mon, 10 May 2010 14:50:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBY3Q-0004JD-EJ for emacs-devel@gnu.org; Mon, 10 May 2010 14:50:15 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:64251) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBY3Q-0004J6-5m for emacs-devel@gnu.org; Mon, 10 May 2010 14:50:12 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0L2700D00W1HVP00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Mon, 10 May 2010 21:49:22 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.0.144]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L2700B4KWA9UK80@a-mtaout23.012.net.il>; Mon, 10 May 2010 21:49:22 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124677 gmane.emacs.gnus.general:69674 Archived-At: > From: Stefan Monnier > Date: Mon, 10 May 2010 13:51:27 -0400 > Cc: Katsumi Yamaoka , ding@gnus.org, emacs-devel@gnu.org > > > Binding the value of enable-multibyte-characters may be a no-no, but > > _testing_ its value is still possible. So I see no reason to > > set-buffer-multibyte unconditionally, because you may already be in a > > unibyte buffer. > > But calling set-buffer-multibyte with the current value is harmless (it > checks a returns right away if there's nothing to do; this check might > even be faster than doing it in Elisp). That's true, but the unconditional call `(set-buffer-multibyte t)' at the end of the macro is _not_ harmless, if the buffer was originally a unibyte one.