From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/14409 Path: main.gmane.org!not-for-mail From: Jake Colman Newsgroups: gmane.emacs.gnus.general Subject: Printing Article Subject in Banner Date: 04 Mar 1998 11:36:40 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <76btvml8fb.fsf@clay.principia.com> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035153605 14770 80.91.224.250 (20 Oct 2002 22:40:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:40:05 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id IAA01906 for ; Wed, 4 Mar 1998 08:41:39 -0800 Original-Received: from gizmo.hpc.uh.edu (gizmo.hpc.uh.edu [129.7.102.31]) by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA28016 for ; Wed, 4 Mar 1998 10:37:08 -0600 (CST) 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 LAN08017; Wed, 4 Mar 1998 11:11:55 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 04 Mar 1998 10:34:46 -0600 (CST) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id KAA26079 for ; Wed, 4 Mar 1998 10:34:26 -0600 (CST) Original-Received: (qmail 1220 invoked by uid 504); 4 Mar 1998 16:34:16 -0000 Original-Received: (qmail 1217 invoked from network); 4 Mar 1998 16:34:16 -0000 Original-Received: from relay6.UU.NET (192.48.96.16) by claymore.vcinet.com with SMTP; 4 Mar 1998 16:34:16 -0000 Original-Received: from uucp6.UU.NET by relay6.UU.NET with SMTP (peer crosschecked as: uucp6.UU.NET [192.48.96.37]) id QQefgs21085; Wed, 4 Mar 1998 11:34:15 -0500 (EST) Original-Received: from ppllc.UUCP by uucp6.UU.NET with UUCP/RMAIL ; Wed, 4 Mar 1998 11:34:17 -0500 Original-Received: from clay.ppllc.com by washington.ppllc.com (5.x/SMI-SVR4) id AA27108; Wed, 4 Mar 1998 11:36:43 -0500 Original-Received: by clay.ppllc.com (5.x/SMI-SVR4) id AA17102; Wed, 4 Mar 1998 11:36:42 -0500 Original-To: ding@gnus.org X-Attribution: Jake X-Url: http://www.ppllc.com Original-Lines: 35 X-Mailer: Quassia Gnus v0.34/Emacs 20.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:14409 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:14409 Sometime ago, I posted a request for a method of printing the article's subject in the page banner when printing an article. I was sent the following code: (add-hook 'gnus-ps-print-hook (lambda () (setq ps-left-header (list (concat "(" (mail-header-subject gnus-current-headers) ")") (concat "(" (mail-header-from gnus-current-headers) ")"))) (setq ps-right-header (list "/pagenumberstring load" (concat "(" (mail-header-date gnus-current-headers) ")"))))) which does the job quite well. A problem and a comment: 1) Problem: after doing an AP, subsequent ps-print-buffer commands on other buffers do not display the buffer name in the banner. Instead, it continues to display the most recently printed article's subject. 2) Shouldn't the behavior of this hook be the default behavior of gnus? It would see that this is a reasonable behavior (the above problem notwithstanding) and should not have to be custimized individually. What do you think? -- Jake Colman Principia Partners LLC Phone: (201) 946-0300 Harborside Financial Center Fax: (201) 946-0320 902 Plaza II Beeper: (800) 505-2795 Jersey City, NJ 07311 E-mail: colman@ppllc.com E-mail: jcolman@jnc.com web: http://www.ppllc.com