unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* ps-print doesn't omit invisible text
@ 2006-12-08  9:44 John Halton
  2006-12-08 16:02 ` Kevin Rodgers
  0 siblings, 1 reply; 5+ messages in thread
From: John Halton @ 2006-12-08  9:44 UTC (permalink / raw)


I'm using an emacs mode (tagging.el) that uses invisible overlays to
hide text that doesn't match a given tag (a la folding.el).

However, when I print out the buffer, I get the whole buffer including
invisible text, not just the text displaying on screen. By contrast,
quick print via web browser (from the File menu) only prints out the
visible text.

Looking at the ps-print.el file, it looks like ps-print does have the
ability to skip invisible text when printing, but I'm too much of a
LISP ignoramus to understand why it should be failing to do so in this
instance.

I'm running Emacs 22.0.91.1 under Windows (work PC...), installed from
EmacsW32. However, the same issue also occurs in Emacs 21.

Thanks,

John

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

* Re: ps-print doesn't omit invisible text
       [not found] <mailman.1670.1165585809.2155.help-gnu-emacs@gnu.org>
@ 2006-12-08 14:11 ` Robert Thorpe
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Thorpe @ 2006-12-08 14:11 UTC (permalink / raw)


John Halton wrote:
> I'm using an emacs mode (tagging.el) that uses invisible overlays to
> hide text that doesn't match a given tag (a la folding.el).
>
> However, when I print out the buffer, I get the whole buffer including
> invisible text, not just the text displaying on screen. By contrast,
> quick print via web browser (from the File menu) only prints out the
> visible text.
>
> Looking at the ps-print.el file, it looks like ps-print does have the
> ability to skip invisible text when printing, but I'm too much of a
> LISP ignoramus to understand why it should be failing to do so in this
> instance.
>
> I'm running Emacs 22.0.91.1 under Windows (work PC...), installed from
> EmacsW32. However, the same issue also occurs in Emacs 21.

If the result of ps-print-buffer is different from that of print-buffer
then this is an Emacs bug and should be reported.

If not it may be a bug in "tagging.el" using odd ways to make things
invisible.

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

* Re: ps-print doesn't omit invisible text
  2006-12-08  9:44 John Halton
@ 2006-12-08 16:02 ` Kevin Rodgers
  2006-12-08 22:14   ` John Halton
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Rodgers @ 2006-12-08 16:02 UTC (permalink / raw)


John Halton wrote:
> I'm using an emacs mode (tagging.el) that uses invisible overlays to
> hide text that doesn't match a given tag (a la folding.el).
> 
> However, when I print out the buffer, I get the whole buffer including
> invisible text, not just the text displaying on screen. By contrast,
> quick print via web browser (from the File menu) only prints out the
> visible text.
> 
> Looking at the ps-print.el file, it looks like ps-print does have the
> ability to skip invisible text when printing, but I'm too much of a
> LISP ignoramus to understand why it should be failing to do so in this
> instance.
> 
> I'm running Emacs 22.0.91.1 under Windows (work PC...), installed from
> EmacsW32. However, the same issue also occurs in Emacs 21.

Are you using `M-x ps-print-buffer-with-faces' to print the buffer?

-- 
Kevin

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

* Re: ps-print doesn't omit invisible text
  2006-12-08 16:02 ` Kevin Rodgers
@ 2006-12-08 22:14   ` John Halton
  2006-12-11  9:44     ` John Halton
  0 siblings, 1 reply; 5+ messages in thread
From: John Halton @ 2006-12-08 22:14 UTC (permalink / raw)
  Cc: help-gnu-emacs

Kevin Rodgers wrote:
> John Halton wrote:
>> I'm using an emacs mode (tagging.el) that uses invisible overlays to
>> hide text that doesn't match a given tag (a la folding.el).
>>
>> However, when I print out the buffer, I get the whole buffer including
>> invisible text, not just the text displaying on screen. By contrast,
>> quick print via web browser (from the File menu) only prints out the
>> visible text.
>>
>> Looking at the ps-print.el file, it looks like ps-print does have the
>> ability to skip invisible text when printing, but I'm too much of a
>> LISP ignoramus to understand why it should be failing to do so in this
>> instance.
>>
>> I'm running Emacs 22.0.91.1 under Windows (work PC...), installed from
>> EmacsW32. However, the same issue also occurs in Emacs 21.
> 
> Are you using `M-x ps-print-buffer-with-faces' to print the buffer?

No, just ps-print-buffer. I take it that's where I may be going wrong? 
Makes sense.

Will try it when I'm back at work on Monday. Thanks!

John

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

* Re: ps-print doesn't omit invisible text
  2006-12-08 22:14   ` John Halton
@ 2006-12-11  9:44     ` John Halton
  0 siblings, 0 replies; 5+ messages in thread
From: John Halton @ 2006-12-11  9:44 UTC (permalink / raw)


On 12/8/06, John Halton <johnhalton@gmail.com> wrote:
> Kevin Rodgers wrote:
> > John Halton wrote:
> >> I'm using an emacs mode (tagging.el) that uses invisible overlays to
> >> hide text that doesn't match a given tag (a la folding.el).
> >>
> >> However, when I print out the buffer, I get the whole buffer including
> >> invisible text, not just the text displaying on screen. By contrast,
> >> quick print via web browser (from the File menu) only prints out the
> >> visible text.
> >>
> >> Looking at the ps-print.el file, it looks like ps-print does have the
> >> ability to skip invisible text when printing, but I'm too much of a
> >> LISP ignoramus to understand why it should be failing to do so in this
> >> instance.
> >>
> >> I'm running Emacs 22.0.91.1 under Windows (work PC...), installed from
> >> EmacsW32. However, the same issue also occurs in Emacs 21.
> >
> > Are you using `M-x ps-print-buffer-with-faces' to print the buffer?
>
> No, just ps-print-buffer. I take it that's where I may be going wrong?
> Makes sense.
>
> Will try it when I'm back at work on Monday. Thanks!
>
> John

Yep, that sorted it. Thanks again.

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

end of thread, other threads:[~2006-12-11  9:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1670.1165585809.2155.help-gnu-emacs@gnu.org>
2006-12-08 14:11 ` ps-print doesn't omit invisible text Robert Thorpe
2006-12-08  9:44 John Halton
2006-12-08 16:02 ` Kevin Rodgers
2006-12-08 22:14   ` John Halton
2006-12-11  9:44     ` John Halton

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 read-only IMAP folder(s) and NNTP newsgroup(s).