From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.bugs Subject: bug#5254: ps-print and faces specified as strings Date: Sun, 20 Dec 2009 22:44:43 +0100 Message-ID: Reply-To: harven , 5254@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261354241 19234 80.91.229.12 (21 Dec 2009 00:10:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2009 00:10:41 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 21 01:10:34 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NMVr8-000157-Bp for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Dec 2009 01:10:34 +0100 Original-Received: from localhost ([127.0.0.1]:37304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMVr8-0008LT-BG for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Dec 2009 19:10:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMVqu-0008BL-3R for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 19:10:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMVqp-000863-0n for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 19:10:19 -0500 Original-Received: from [199.232.76.173] (port=46122 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMVqo-00085j-Lz for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 19:10:14 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51607) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NMVqn-000883-BF for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 19:10:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NMVko-0001CG-99; Sun, 20 Dec 2009 19:04:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: harven , 5254@debbugs.gnu.org Resent-From: harven Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Dec 2009 00:04:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5254 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.12613538414592 (code B ref -1); Mon, 21 Dec 2009 00:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Dec 2009 00:04:01 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NMVkk-0001C1-Nn for submit@debbugs.gnu.org; Sun, 20 Dec 2009 19:04:00 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NMTaM-0000OV-Qf for submit@debbugs.gnu.org; Sun, 20 Dec 2009 16:45:11 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:49009 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NMTaI-0001ys-NY for submit@debbugs.gnu.org; Sun, 20 Dec 2009 16:45:02 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NMTaF-000650-6k for submit@debbugs.gnu.org; Sun, 20 Dec 2009 16:45:02 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:47492) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMTaF-00064w-0B for submit@debbugs.gnu.org; Sun, 20 Dec 2009 16:44:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMTaE-0002gF-E3 for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 16:44:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMTa9-0002Z8-Im for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 16:44:57 -0500 Original-Received: from [199.232.76.173] (port=58002 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMTa9-0002YU-9J for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 16:44:53 -0500 Original-Received: from smtp4-g21.free.fr ([212.27.42.4]:48492) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMTa8-00063A-6S for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2009 16:44:52 -0500 Original-Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id 6CBE84C809B for ; Sun, 20 Dec 2009 22:44:46 +0100 (CET) Original-Received: from wapiti.local (unknown [78.233.232.132]) by smtp4-g21.free.fr (Postfix) with ESMTP id 56F3C4C8115 for ; Sun, 20 Dec 2009 22:44:44 +0100 (CET) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sun, 20 Dec 2009 19:03:57 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 20 Dec 2009 19:04:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33702 Archived-At: ps-spool-buffer-with-faces and ps-print-buffer-with-faces report errors if there is a face specified as a string in the buffer. Tested with emacs22 and emacs23 ; starting in a buffer in fundamental mode, we type and execute the following: (facemenu-set-face "bold" 1 (point-max)) The text in the buffer becomes bold as expected. We now try to spool the buffer using M-x ps-spool-buffer-with-faces. This gives the error: ps-face-attribute-list: Wrong type argument: listp, "bold" A *postscript* buffer has been created, as expected, but it is empty. It should have contained a faithful postscript image of the buffer. The error can be reproduced with any face, not just bold. It seems that the problem comes from the fact that somewhere in the ps-print-* functions, the face is expected to be a symbol -- 'bold. In the function given below, the face is defined by facemenu-set-face as a string -- "bold". If we use instead (facemenu-set-face 'bold 1 (point-max)) to color the buffer, the error disappear. It may not be a bug per se, yet it would be nice (and more consistent) if the ps-print package could handle faces specified as strings. In GNU Emacs 22.1.1 (i386-apple-darwin8.10.1, X toolkit) of 2007-08-13 Windowing system distributor `The X.Org Foundation', version 11.0.60802000 also In GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ VErsion 2.18.2)) of 2009-11-02 on raven, modified by Debian Windowing System distributor `The X.Org Foundation', version 11.0.10605000