From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46081 Path: main.gmane.org!not-for-mail From: Reiner Steib <4uce.02.r.steib@gmx.net> Newsgroups: gmane.emacs.gnus.general Subject: Re: [Patch] printing articles differently than displaying them Date: Fri, 09 Aug 2002 23:53:10 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: Reply-To: reiner.steib@gmx.de NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1028930045 25667 127.0.0.1 (9 Aug 2002 21:54:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2002 21:54:05 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17dHhs-0006fs-00 for ; Fri, 09 Aug 2002 23:54:04 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17dHhT-0007YS-00; Fri, 09 Aug 2002 16:53:39 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 09 Aug 2002 16:54:07 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id QAA00335 for ; Fri, 9 Aug 2002 16:53:51 -0500 (CDT) Original-Received: (qmail 2455 invoked by alias); 9 Aug 2002 21:53:13 -0000 Original-Received: (qmail 2450 invoked from network); 9 Aug 2002 21:53:12 -0000 Original-Received: from theotp5.physik.uni-ulm.de (134.60.10.145) by gnus.org with SMTP; 9 Aug 2002 21:53:12 -0000 Original-Received: (from ste@localhost) by theotp5.physik.uni-ulm.de (8.11.2/8.11.2) id g79LrBB10988; Fri, 9 Aug 2002 23:53:11 +0200 X-Authentication-Warning: theotp5.physik.uni-ulm.de: ste set sender to reiner.steib@physik.uni-ulm.de using -f Original-To: ding@gnus.org Mail-Followup-To: ding@gnus.org X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Original-Lines: 59 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i586-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46081 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46081 On Fri, Aug 09 2002, Simon Josefsson wrote: > Reiner Steib <4uce.02.r.steib@gmx.net> writes: >> Well, I could change `gnus-treat-hide-citation' before (and after) >> printing manually, but I think there should be a hook to do this >> job. `gnus-ps-print-hook' comes too late. > > You could also press W W c before printing the article, does that > work? Sure, but `W W c' only affects the _current_ article. When printing several process marked articles, it's not useful. > I think it solves a general problem only in a very specific > situation. ACK. I just had in mind (un)hiding citation, but many other gnus-treat-* variables might be relevant too. (E.g. `g-t-date-lapsed' doesn't make much sense on paper.) FWIW, we already have some specific treatment: Setting `g-t-highlight-signature' and/or `g-t-highlight-citation' have no effect for printing. In `gnus-print-buffer' citation and signature are always highlighted: ,---- | (when (gnus-visual-p 'article-highlight 'highlight) | ;; Copy-to-buffer doesn't copy overlay. So redo | ;; highlight. | (let ((gnus-article-buffer buffer)) | (gnus-article-highlight-citation t) | (gnus-article-highlight-signature))) `---- > The problem is that users might not want to print the article the > same way they display it. Yes, that was exactly my motivation. > One way to solve it would be to make printing use completely > different article treatment than displaying -- by default it would > be normal Gnus display look, plus maybe a fancy Gnus icon or > something to make it spiffy. Is this overkill? I guess Gnus users are used to feature overkill. ;-) It would (more or less) require a set of ~48 gnus-treat-print-* variables and new (or modified) display functions. > I don't know how hard it would be, but just an idea. If it's too hard: could we have one hook before and one after printing? Or is if possible to use defadvice instead? Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- PGP key available via WWW http://rsteib.home.pages.de/