From: Hrvoje Niksic <hniksic@srce.hr>
Cc: ding@ifi.uio.no
Subject: Re: Bug in toolbar? and some minor toolbar comments.
Date: 26 Nov 1996 17:31:40 +0100 [thread overview]
Message-ID: <kigbuckakcz.fsf@jagor.srce.hr> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of 26 Nov 1996 15:22:48 +0100
Lars Magne Ingebrigtsen (larsi@ifi.uio.no) wrote:
> Hrvoje Niksic <hniksic@srce.hr> writes:
>
> > The problem with this command is that it will print the entire buffer,
> > including the hidden headers.
>
> Yup. Fix in Red Gnus v0.71.
Speaking of that, could you add the feature that a prefix argument
behaves the way it does with ps-print-buffer-with-faces? The
following simple patch soves it:
*** gnus-sum.el.old Tue Nov 26 17:24:43 1996
--- gnus-sum.el Tue Nov 26 17:29:13 1996
***************
*** 6361,6369 ****
(when gnus-break-pages
(gnus-narrow-to-page))))
! (defun gnus-summary-print-article ()
! "Generate and print a PostScript image of the article buffer."
! (interactive)
(gnus-summary-select-article)
(gnus-eval-in-buffer-window gnus-article-buffer
(let ((buffer (generate-new-buffer " *print*")))
--- 6361,6374 ----
(when gnus-break-pages
(gnus-narrow-to-page))))
! (defun gnus-summary-print-article (&optional filename)
! "Generate and print a PostScript image of the article buffer.
!
! If the optional argument FILENAME is nil, send the image to the printer.
! If FILENAME is a string, save the PostScript image in a file with that
! name. If FILENAME is a number, prompt the user for the name of the file
! to save in."
! (interactive (list (ps-print-preprint current-prefix-arg)))
(gnus-summary-select-article)
(gnus-eval-in-buffer-window gnus-article-buffer
(let ((buffer (generate-new-buffer " *print*")))
***************
*** 6372,6378 ****
(copy-to-buffer buffer (point-min) (point-max))
(set-buffer buffer)
(article-delete-invisible-text)
! (ps-print-buffer-with-faces))
(kill-buffer buffer)))))
(defun gnus-summary-show-article (&optional arg)
--- 6377,6383 ----
(copy-to-buffer buffer (point-min) (point-max))
(set-buffer buffer)
(article-delete-invisible-text)
! (ps-print-buffer-with-faces filename))
(kill-buffer buffer)))))
(defun gnus-summary-show-article (&optional arg)
--
Hrvoje Niksic <hniksic@srce.hr> | Hocemo 101-icu!
--------------------------------+--------------------------------
If a President doesn't do it to his wife, he'll do it to his country.
prev parent reply other threads:[~1996-11-26 16:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-23 16:26 verzani
1996-11-23 17:35 ` Hrvoje Niksic
1996-11-23 20:01 ` Lars Magne Ingebrigtsen
1996-11-24 8:02 ` Steven L Baur
1996-11-25 3:48 ` Lars Magne Ingebrigtsen
1996-11-25 4:39 ` Hrvoje Niksic
1996-11-26 14:22 ` Lars Magne Ingebrigtsen
1996-11-26 16:31 ` Hrvoje Niksic [this message]
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=kigbuckakcz.fsf@jagor.srce.hr \
--to=hniksic@srce.hr \
--cc=ding@ifi.uio.no \
/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).