From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/16054 Path: main.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: Re: A useful washing function Date: Fri, 14 Aug 1998 18:33:11 GMT Organization: Carnegie Mellon University : KANTOO Project Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035154987 25584 80.91.224.250 (20 Oct 2002 23:03:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:03:07 +0000 (UTC) Return-Path: Original-Received: from gwyn.tux.org (gwyn.tux.org [207.96.122.8]) by altair.xemacs.org (8.9.1/8.9.1) with ESMTP id LAA08083 for ; Fri, 14 Aug 1998 11:40:37 -0700 Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by gwyn.tux.org (8.8.8/8.8.8) with ESMTP id OAA27612 for ; Fri, 14 Aug 1998 14:34:24 -0400 Original-Received: from sina.hpc.uh.edu (sina.hpc.uh.edu [129.7.3.5]) by gizmo.hpc.uh.edu (8.7.6/8.7.3) with ESMTP id NAT14671; Fri, 14 Aug 1998 13:05:12 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 14 Aug 1998 13:33:30 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id NAA09099 for ; Fri, 14 Aug 1998 13:33:22 -0500 (CDT) Original-Received: from sunsite.auc.dk (sunsite.auc.dk [130.225.51.30]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id OAA09315 for ; Fri, 14 Aug 1998 14:33:14 -0400 (EDT) Original-Received: (qmail 15123 invoked by uid 509); 14 Aug 1998 18:33:12 -0000 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: emacs.ding Original-Lines: 23 X-Newsreader: Gnus v5.6.33/Emacs 19.34 Original-NNTP-Posting-Host: 128.2.110.42 Original-X-Trace: sunsite.auc.dk 903119591 128.2.110.42 (Fri, 14 Aug 1998 20:33:11 MET DST) Original-NNTP-Posting-Date: Fri, 14 Aug 1998 20:33:11 MET DST Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:16054 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:16054 Michael Welsh Duggan 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) .