From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stefan-W. Hahn" Newsgroups: gmane.emacs.bugs Subject: bug#16866: 24.3.50; printing region gives non colorized output Date: Tue, 25 Feb 2014 17:40:16 +0100 Organization: -no organization- Message-ID: <20140225164015.GF22548@pille.home> References: <20140224164517.GA22548@pille.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1393346475 7923 80.91.229.3 (25 Feb 2014 16:41:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2014 16:41:15 +0000 (UTC) To: 16866@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 25 17:41:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WIL4K-0003FO-GB for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Feb 2014 17:41:20 +0100 Original-Received: from localhost ([::1]:35808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIL4J-0005ew-Sm for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Feb 2014 11:41:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIL4A-0005ea-2W for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 11:41:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIL42-0006RY-OV for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 11:41:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIL42-0006RU-L5 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 11:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WIL42-0002IG-4e for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2014 11:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Stefan-W. Hahn" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Feb 2014 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16866 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16866-submit@debbugs.gnu.org id=B16866.13933464368777 (code B ref 16866); Tue, 25 Feb 2014 16:41:02 +0000 Original-Received: (at 16866) by debbugs.gnu.org; 25 Feb 2014 16:40:36 +0000 Original-Received: from localhost ([127.0.0.1]:39625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIL3b-0002HQ-NH for submit@debbugs.gnu.org; Tue, 25 Feb 2014 11:40:36 -0500 Original-Received: from moutng.kundenserver.de ([212.227.17.24]:53002) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIL3Y-0002H5-J4 for 16866@debbugs.gnu.org; Tue, 25 Feb 2014 11:40:33 -0500 Original-Received: from pille.home (port-92-204-4-203.dynamic.qsc.de [92.204.4.203]) by mrelayeu.kundenserver.de (node=mreue102) with ESMTP (Nemesis) id 0Lsh5t-1XFqUI1Zl3-012FYA; Tue, 25 Feb 2014 17:40:25 +0100 Original-Received: from pille.home (localhost [127.0.0.1]) by pille.home (8.14.4/8.14.4/Debian-4) with ESMTP id s1PGeJm9016924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Feb 2014 17:40:20 +0100 Original-Received: (from hs@localhost) by pille.home (8.14.4/8.14.4/Submit) id s1PGeGTw016923; Tue, 25 Feb 2014 17:40:16 +0100 X-Authentication-Warning: pille.home: hs set sender to stefan.hahn@s-hahn.de using -f Content-Disposition: inline In-Reply-To: <20140224164517.GA22548@pille.home> X-Mailer: Mutt http://www.mutt.org/ X-Editor: GNU Emacs http://www.gnu.org/ X-Accept-Language: de en X-Location: Europe, Germany, Wolfenbuettel X-GPG-Public-Key: gpg --keyserver keys.gnupg.net --recv-keys E4FCD563 X-GPG-Fingerprint: 0xE4FCD563 / EF09 97BB 3731 7DC7 25BA 5C39 185C F986 E4FC D563 User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:X/Ax5CA9Z0BpooM0bENVuDDeL7yBYa+PKRFI/WUvRDn 7gNV53DCmQxOTE0Ukf58XvkMAu/yGoG5ATbDgb9qfs3ZCDC/+r ilyDiDNifcYWlB0eTR0ViSFy2E17WPHngoIGjGwQTIFowjo2Ht L9awU36q3wumf7t+NTSGAX7aBEveu4RczvQUmvNlRyANO7NWnh AGGeiFhLuEqXfKYKZbQ51I4q1q17wbh1B71MlEoyi2VNcfYkH3 nwwgKinQT49l7W+C2ksRGBzbJ2khD6qV9YtInx0IRjOkGm4Zsl I18Y0EKVpa8hQXBndCQEBDYbzRzS9X7aDUaZAZjgMkDnJQWspQ 2tTBVobo7iNKFVSlfBXI= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86187 Archived-At: 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 # 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.