Gnus development mailing list
 help / color / mirror / Atom feed
From: Michael Welsh Duggan <md5i@cs.cmu.edu>
Subject: A useful washing function
Date: Fri, 14 Aug 1998 18:11:43 GMT	[thread overview]
Message-ID: <v1tbtpno2le.fsf@peoria.mt.cs.cmu.edu> (raw)


I don't know who else this would be of use to, but I find it extremely
useful when looking at some of the crufty messages I see people send
out full of system-dependent control characters and such.

(defun gnus-summary-modify-display-table (char string)
  "Changes the display table of the article buffer.
This function takes CHAR and modifies the display table in the article
buffer such that instances of the character show up as STRING."
  (interactive (list (string-to-char (read-string "Char: "))
                     (read-string "Replacement: ")))
  (gnus-eval-in-buffer-window gnus-article-buffer
    (let ((bdt (or buffer-display-table (make-display-table))))
      (aset bdt char (vconcat string))
      (setq buffer-display-table bdt))))

It might be nice to have this or something like this as an article
washing function in gnus.  Of course, to be useful you also have to
have a function in the gnus-article-diplay-hook which resets the
buffer-display-table to some default.

-- 
Michael Duggan
(md5i@cs.cmu.edu)

.



             reply	other threads:[~1998-08-14 18:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-14 18:11 Michael Welsh Duggan [this message]
1998-08-14 18:33 ` Michael Welsh Duggan
1998-08-14 19:10 ` Lars Magne Ingebrigtsen

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=v1tbtpno2le.fsf@peoria.mt.cs.cmu.edu \
    --to=md5i@cs.cmu.edu \
    /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).