Gnus development mailing list
 help / color / mirror / Atom feed
* Printing Article Subject in Banner
@ 1998-03-04 16:36 Jake Colman
  1998-03-04 18:33 ` Alan Shutko
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jake Colman @ 1998-03-04 16:36 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1998-03-13 21:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-04 16:36 Printing Article Subject in Banner Jake Colman
1998-03-04 18:33 ` Alan Shutko
1998-03-04 19:52   ` Jake Colman
1998-03-05  6:37 ` Yair Friedman
1998-03-05 14:58   ` Lars Balker Rasmussen
1998-03-05 17:28     ` Kai Grossjohann
1998-03-05 21:23       ` Colin Rafferty
1998-03-07 13:03 ` Lars Magne Ingebrigtsen
1998-03-09 14:49   ` Jake Colman
1998-03-13 21:23     ` Lars Magne Ingebrigtsen

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).