From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Changing the default for `send-mail-function' Date: Mon, 27 Jun 2011 07:04:50 -0400 Message-ID: References: <87pqm0moff.fsf@stupidchicken.com> <4E07A2BB.7090809@gmail.com> <4E07AA38.2000301@gmail.com> <4E07B75C.2020003@gmail.com> <83vcvsrnhw.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1309174315 20739 80.91.229.12 (27 Jun 2011 11:31:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2011 11:31:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 27 13:31:51 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QbA2d-0003uC-UC for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2011 13:31:48 +0200 Original-Received: from localhost ([::1]:47348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbA2c-00034a-LA for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2011 07:31:46 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qb9cf-0004Et-1t for emacs-devel@gnu.org; Mon, 27 Jun 2011 07:04:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qb9cZ-0002PK-MA for emacs-devel@gnu.org; Mon, 27 Jun 2011 07:04:56 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:34296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qb9cZ-0002PB-7e for emacs-devel@gnu.org; Mon, 27 Jun 2011 07:04:51 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Qb9cY-0004jr-Dn; Mon, 27 Jun 2011 07:04:50 -0400 In-reply-to: (message from Lars Magne Ingebrigtsen on Mon, 27 Jun 2011 11:39:13 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141061 Archived-At: > From: Lars Magne Ingebrigtsen > Date: Mon, 27 Jun 2011 11:39:13 +0200 > Mail-Copies-To: never > > Eli Zaretskii writes: > > >> (with-current-buffer process-buffer > >> + (set-buffer-multibyte nil) > >> (setq buffer-undo-list t) > >> (erase-buffer)) > > > > Why? What purpose would or could making the buffer unibyte possible > > serve in this case? > > Pure cargo-culting. :-) I looked at what nnimap did differently with > encoding/charsets, and it was `coding-system-for-*', and > `set-buffer-multibyte'. Whenever you see that a buffer is set to unibyte, you should first suspect that the code is wrong. > If somebody on Windows could try removing the `set-buffer-multibyte' > again and post via Gmail, that would be nice... Cristoph already did, and said it still worked for him.