From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67961 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Wash 0xA0 nbsp Date: Fri, 19 Dec 2008 13:39:55 +0900 Organization: Emacsen advocacy group Message-ID: References: <87hc50u7km.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229661661 22533 80.91.229.12 (19 Dec 2008 04:41:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2008 04:41:01 +0000 (UTC) Cc: ding@gnus.org To: jidanni@jidanni.org Original-X-From: ding-owner+M16407@lists.math.uh.edu Fri Dec 19 05:42:08 2008 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.50) id 1LDXBc-000368-Qi for ding-account@gmane.org; Fri, 19 Dec 2008 05:42:05 +0100 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 1LDXAE-0006qw-6K; Thu, 18 Dec 2008 22:40:38 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1LDXAC-0006qg-Uq for ding@lists.math.uh.edu; Thu, 18 Dec 2008 22:40:36 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LDXA9-0005bA-K3 for ding@lists.math.uh.edu; Thu, 18 Dec 2008 22:40:36 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LDXAM-0004Ko-00 for ; Fri, 19 Dec 2008 05:40:46 +0100 Original-Received: from localhost ([127.0.0.1]:34778) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1LDX9a-00070c-Co; Thu, 18 Dec 2008 22:39:58 -0600 X-Hashcash: 1:20:081219:jidanni@jidanni.org::QjLiF7yoGkl0md6j:0000000000000000000000000000000000000000002KBW X-Hashcash: 1:20:081219:ding@gnus.org::DiRmjS6yPI9YRrzb:00002IJL X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:C5154eJvIbjCNLpvU8v+Y00baBA= 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: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67961 Archived-At: >>>>> jidanni@jidanni.org wrote: >>> http://article.gmane.org/gmane.org.wikimedia.mediawiki/29506/raw , KY> t means display nbsp as "_". > I already see the glowing "_"'s. I just want to wash the article > before using > S W runs the command gnus-summary-wide-reply-with-original > because --- imaging me sending non-ASCII mess when my reply could > instead be pure ASCII. Ok. How about this workaround? (defun my-replace-nbsp-with-spc () "Replace nbsp with spc in the current buffer." (let ((nbsp (string (make-char 'latin-iso8859-1 160)))) (goto-char (point-min)) (while (search-forward nbsp nil t) (replace-match " ")))) (add-hook 'gnus-message-setup-hook 'my-replace-nbsp-with-spc) If you want to run this also in the article buffer: (add-hook 'gnus-article-prepare-hook 'my-replace-nbsp-with-spc) I have no idea to add it to the Gnus wash functions. Regards,