Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: jidanni@jidanni.org
Cc: ding@gnus.org
Subject: Re: Wash 0xA0 nbsp
Date: Fri, 19 Dec 2008 13:39:55 +0900	[thread overview]
Message-ID: <b4m3agk4w2s.fsf@jpl.org> (raw)
In-Reply-To: <87hc50u7km.fsf@jidanni.org>

>>>>> 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,



  reply	other threads:[~2008-12-19  4:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-18 23:42 jidanni
2008-12-19  1:48 ` Katsumi Yamaoka
2008-12-19  4:12   ` jidanni
2008-12-19  4:39     ` Katsumi Yamaoka [this message]
2008-12-19  5:07       ` jidanni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4m3agk4w2s.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    --cc=jidanni@jidanni.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).