bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16866: 24.3.50; printing region gives non colorized output


From: Stefan-W. Hahn
Subject: bug#16866: 24.3.50; printing region gives non colorized output
Date: Tue, 25 Feb 2014 17:40:16 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Mail von Stefan-W. Hahn, Mon, 24 Feb 2014 at 17:45:17 +0100:

Good evening,

> if printing a buffer with postscript the out is colorized. If printing
> a region of the same buffer the output is bw.
> 
> To test it I tried to print the *scratch* buffer with it's initial text.
> If I print the whole buffer the output is colorized, if mark the whole
> buffer and print that marked region I got a bw output.

I traced it down a little bit. The problematic function is
ps-generate-postscript-with-faces1 which extracts the face calls
ps-plot-with-face together with the face.

If I mark a region (say in buffer *scratch*) on the first lines I get
following information with describe-text-properties:

24.3.50:
--------
Text content at position 1:
There is an overlay here:
 From 1 to 191
  face                 region
  window               #<window 746 on *scratch*>

There are text properties here:
  face                 font-lock-comment-delimiter-face
  fontified            t

23.4.1:
-------
Text content at position 1:
There are text properties here:
  face                 font-lock-comment-delimiter-face
  fontified            t

And therefore ps-plot-with-face is called with 'region as face in 24.3.50
and 'font-lock-comment-delimiter-face (as expected!) in 23.4.1.

The difference seems to be that in the newer version of emacs the region
defines an overlay with the face 'region.

In my unterstanding of ps-print-region-with-faces I will expect the old
behaviour.

(I have no clue how to repair till yet.)

With kind regards,
Stefan

-- 
Stefan-W. Hahn                          It is easy to make things.
                                        It is hard to make things simple.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]