From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/16053 Path: main.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.gnus.general Subject: A useful washing function Date: Fri, 14 Aug 1998 18:11:43 GMT Organization: Carnegie Mellon University : KANTOO Project Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035154986 25582 80.91.224.250 (20 Oct 2002 23:03:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:03:06 +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 LAA07897 for ; Fri, 14 Aug 1998 11:19:21 -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 OAA27012 for ; Fri, 14 Aug 1998 14:12:54 -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 MAT14553; Fri, 14 Aug 1998 12:43:35 -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:12:04 -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 NAA08406 for ; Fri, 14 Aug 1998 13:11:56 -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 OAA09021 for ; Fri, 14 Aug 1998 14:11:48 -0400 (EDT) Original-Received: (qmail 13583 invoked by uid 509); 14 Aug 1998 18:11:45 -0000 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: emacs.ding Original-Lines: 24 X-Newsreader: Gnus v5.6.33/Emacs 19.34 Original-NNTP-Posting-Host: 128.2.110.42 Original-X-Trace: sunsite.auc.dk 903118303 128.2.110.42 (Fri, 14 Aug 1998 20:11:43 MET DST) Original-NNTP-Posting-Date: Fri, 14 Aug 1998 20:11:43 MET DST Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:16053 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:16053 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) .