From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69673 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: mm-with-unibyte-current-buffer Date: Mon, 10 May 2010 13:51:27 -0400 Message-ID: References: <83y6frptd7.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273513938 24720 80.91.229.12 (10 May 2010 17:52:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 May 2010 17:52:18 +0000 (UTC) Cc: Katsumi Yamaoka , ding@gnus.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 10 19:52:14 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 1OBX9I-0000Er-7f for ged-emacs-devel@m.gmane.org; Mon, 10 May 2010 19:52:12 +0200 Original-Received: from localhost ([127.0.0.1]:60149 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBX9G-00061C-QV for ged-emacs-devel@m.gmane.org; Mon, 10 May 2010 13:52:10 -0400 Original-Received: from [140.186.70.92] (port=38948 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBX95-0005xW-90 for emacs-devel@gnu.org; Mon, 10 May 2010 13:52:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBX90-00030f-E4 for emacs-devel@gnu.org; Mon, 10 May 2010 13:51:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:63438 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBX8q-0002zA-N2; Mon, 10 May 2010 13:51:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEABfl50tLd+Zs/2dsb2JhbACeInK9NYUUBIwy X-IronPort-AV: E=Sophos;i="4.52,363,1270440000"; d="scan'208";a="63837730" Original-Received: from 75-119-230-108.dsl.teksavvy.com (HELO pastel.home) ([75.119.230.108]) by ironport2-out.pppoe.ca with ESMTP; 10 May 2010 13:51:27 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 2001480B1; Mon, 10 May 2010 13:51:27 -0400 (EDT) In-Reply-To: <83y6frptd7.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 10 May 2010 20:19:16 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:124674 gmane.emacs.gnus.general:69673 Archived-At: > 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). Stefan