From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: intern and faces Date: Wed, 02 Dec 2009 12:48:29 +0100 Organization: http://groups.google.com Message-ID: <87r5rdbnqq.fsf@ergodik.univ-brest.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1259767664 2702 80.91.229.12 (2 Dec 2009 15:27:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Dec 2009 15:27:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 02 16:27:38 2009 Return-path: Envelope-to: geh-help-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 1NFr7B-0006yv-Ow for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 16:27:37 +0100 Original-Received: from localhost ([127.0.0.1]:36820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFr7B-0006CP-Eu for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Dec 2009 10:27:37 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin2!goblin.stu.neva.ru!feeder.erje.net!proxad.net!feeder1-2.proxad.net!u-picardie.fr!utc.fr!news.univ-lille1.fr!crihan.fr!news.univ-brest.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: mathw171.univ-brest.fr Original-X-Trace: news.univ-brest.fr 1259754633 25950 172.19.130.171 (2 Dec 2009 11:50:33 GMT) Original-X-Complaints-To: usenet@news.univ-brest.fr Original-NNTP-Posting-Date: 2 Dec 2009 11:50:33 GMT User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:izrllA8O2IdDpKD1GI9b4aDfWzA= Original-Xref: news.stanford.edu gnu.emacs.help:175243 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70319 Archived-At: I have built a small command to colorize a region (defun put-color (start end color-name) (interactive "r\nsColor ? ") (let ((my-color (concat "color-" color-name))) (unless (facep my-color) (set-face-foreground (make-face (intern my-color)) color-name)) (facemenu-set-face my-color start end))) But I encounter a problem when trying to spool the result. Starting with emacs -Q and executing the code above, I switch to another buffer, type some text and colorize it with M-x put-color RET brown RET The result looks fine in the buffer, but when I try to execute M-x ps-spool-buffer-with-faces, I get the error Wrong type argument: listp, "color-brown" The message was issued by ps-face-attribute-list and the *Postscript* buffer is empty. I think that the problem comes from my command. If I execute (set-face-foreground (make-face 'color-brown) "brown") instead of my command, everything works. Where does the error come from ?