Gnus development mailing list
 help / color / mirror / Atom feed
From: Jake Colman <colman@ppllc.com>
Subject: Printing Article Subject in Banner
Date: 04 Mar 1998 11:36:40 -0500	[thread overview]
Message-ID: <76btvml8fb.fsf@clay.principia.com> (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


             reply	other threads:[~1998-03-04 16:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-04 16:36 Jake Colman [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=76btvml8fb.fsf@clay.principia.com \
    --to=colman@ppllc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).