From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: ps-print-buffer-with-faces chokes on face attribute property lists Date: Fri, 05 Oct 2007 18:54:17 +0200 Message-ID: References: <47052898.2060607@arcor.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191603855 11020 80.91.229.12 (5 Oct 2007 17:04:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2007 17:04:15 +0000 (UTC) Cc: Stephan Hennig To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 05 19:04:12 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Idqax-00054T-9c for ged-emacs-devel@m.gmane.org; Fri, 05 Oct 2007 19:04:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Idqas-0004Q3-FU for ged-emacs-devel@m.gmane.org; Fri, 05 Oct 2007 13:04:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IdqRc-0006CM-Ow for emacs-devel@gnu.org; Fri, 05 Oct 2007 12:54:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IdqRX-000664-KJ for emacs-devel@gnu.org; Fri, 05 Oct 2007 12:54:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdqRX-00065r-By for emacs-devel@gnu.org; Fri, 05 Oct 2007 12:54:27 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IdqRW-0003xm-VZ for emacs-devel@gnu.org; Fri, 05 Oct 2007 12:54:27 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IdqQe-0004xD-R2 for emacs-pretest-bug@gnu.org; Fri, 05 Oct 2007 12:53:32 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IdqRS-0003w6-S1 for emacs-pretest-bug@gnu.org; Fri, 05 Oct 2007 12:54:26 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IdqRS-0003va-FN for emacs-pretest-bug@gnu.org; Fri, 05 Oct 2007 12:54:22 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id 0ACC4A113880; Fri, 5 Oct 2007 18:54:21 +0200 (CEST) Original-Received: from [89.61.255.80] (helo=wednesday) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #197) id 1IdqRQ-0000Ww-00; Fri, 05 Oct 2007 18:54:20 +0200 In-Reply-To: <47052898.2060607@arcor.de> (Stephan Hennig's message of "Thu\, 04 Oct 2007 19\:53\:28 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX1/l5QnYfT/XsYCIQnLI8N9/YtBtO6+T+dKCwmCq Y9ugWNht4ZAjLuLypwqcDekuHwndVmXdGJI/jkJ1ukRzz4Hwll xuweGiHfaoQpprJRMKPg== X-Detected-Kernel: Linux 2.4-2.6 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Fri, 05 Oct 2007 13:02:46 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80301 gmane.emacs.pretest.bugs:20070 Archived-At: Hello, this bug was reported to me, but I think ps-print is at fault. When printing a buffer with overlays that specify the 'face property using a property list, `ps-print-buffer-with-faces' fails. For instance, the following snippet will throw an error. (let ((ov (make-overlay (point-min) (point-max) nil))) (overlay-put ov 'face '(:foreground "gray")) (ps-print-buffer-with-faces)) The reason appears to be `ps-face-attribute-list': (ps-face-attribute-list '(foreground-color . "gray")) ; ok (ps-face-attribute-list '(:foreground "gray")) ; fails The original report: > Hi Nikolaj, > > > Symptoms: > ps-print-buffer-with-faces returns an error if > highlight-parentheses-mode is enabled and point is located inside a pair > of parentheses. Mini-buffer contains the following error message: > > ps-face-attribute-list: Wrong type argument: listp, "firebrick1" > > > Recipe: > 1. emacs -q > 2. M-x load-file highlight-parentheses.el RET > 3. M-x highlight-parentheses-mode RET > 4. Now, type: (abc) > 5. C-b > 6. M-x ps-print-buffer-with-faces > > > I'm using highlight-parentheses v1.0 with Emacs 22.1: > >> In GNU Emacs 22.1.50.1 (i386-mingw-nt5.1.2600) >> of 2007-07-07 on NEUTRINO >> Windowing system distributor `Microsoft Corp.', version 5.1.2600 >> configured using `configure --with-gcc (3.4) --cflags -Ic:/Programme/GnuWin32/include' > > > Thanks, > Stephan Hennig The package in question can be found at http://nschum.de/src/emacs/highlight-parentheses/ regards, Nikolaj Schumacher