From: Michael Welsh Duggan <md5i@cs.cmu.edu>
Subject: Re: A useful washing function
Date: Fri, 14 Aug 1998 18:33:11 GMT [thread overview]
Message-ID: <v1t90kro1lm.fsf@peoria.mt.cs.cmu.edu> (raw)
In-Reply-To: <v1tbtpno2le.fsf@peoria.mt.cs.cmu.edu>
Michael Welsh Duggan <md5i@cs.cmu.edu> writes:
> (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."
Actually, this version might be better:
(defun gnus-summary-modify-display-table (chars string)
"Changes the display table of the article buffer.
This function takes CHARS and modifies the display table in the article
buffer such that instances of those characters show up as STRING."
(interactive (list (read-string "Char: ")
(read-string "Replacement: ")))
(gnus-eval-in-buffer-window gnus-article-buffer
(let ((bdt (or buffer-display-table (make-display-table))))
(mapcar chars (lambda (char) (aset bdt char (vconcat string))))
(setq buffer-display-table bdt))))
--
Michael Duggan
(md5i@cs.cmu.edu)
.
next prev parent reply other threads:[~1998-08-14 18:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-14 18:11 Michael Welsh Duggan
1998-08-14 18:33 ` Michael Welsh Duggan [this message]
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=v1t90kro1lm.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).