From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: drkm Newsgroups: gmane.emacs.devel Subject: [ps-print] Why imposing symbols for user functions? Date: Mon, 07 Mar 2005 15:16:44 +0100 Organization: None Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110205113 12326 80.91.229.2 (7 Mar 2005 14:18:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2005 14:18:33 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 07 15:18:32 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8J3x-0007xa-M6 for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2005 15:18:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8JNk-0000WG-14 for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2005 09:38:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D8JLY-000815-Kx for emacs-devel@gnu.org; Mon, 07 Mar 2005 09:36:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D8JLT-0007yV-5c for emacs-devel@gnu.org; Mon, 07 Mar 2005 09:36:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8JLS-0007y2-US for emacs-devel@gnu.org; Mon, 07 Mar 2005 09:36:31 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D8J4D-0003K8-90 for emacs-devel@gnu.org; Mon, 07 Mar 2005 09:18:41 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D8Iy4-0006ux-UE for emacs-devel@gnu.org; Mon, 07 Mar 2005 15:12:20 +0100 Original-Received: from pclhc792.cern.ch ([137.138.106.207]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Mar 2005 15:12:20 +0100 Original-Received: from darkman_spam by pclhc792.cern.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Mar 2005 15:12:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 46 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pclhc792.cern.ch User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:M24U0tJmO4048mqhc3mO/VZDe00= 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34278 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34278 Hi Why does PS Print impose user functions (in `ps-left-header' for example) to be symbols? `ps-generate-string-list' and `ps-generate-header-line' use `symbolp' and `fboundp' instead of `functionp'. Why don't use the following, to allowing lambdas in PS Print customs: *** ps-print.el-orig Thu Dec 23 07:02:00 2004 --- ps-print.el Mon Mar 7 15:06:00 2005 *************** *** 4823,4829 **** ((stringp (car content)) (car content)) ;; function symbol ! ((and (symbolp (car content)) (fboundp (car content))) (concat "(" (funcall (car content)) ")")) ;; variable symbol ((and (symbolp (car content)) (boundp (car content))) --- 4823,4829 ---- ((stringp (car content)) (car content)) ;; function symbol ! ((functionp (car content)) (concat "(" (funcall (car content)) ")")) ;; variable symbol ((and (symbolp (car content)) (boundp (car content))) *************** *** 4863,4869 **** ;; Functions are called -- they should return strings; they will be inserted ;; as strings and the PS string delimiters added. ! ((and (symbolp content) (fboundp content)) (ps-output-string (ps-mule-encode-header-string (funcall content) fonttag))) --- 4863,4869 ---- ;; Functions are called -- they should return strings; they will be inserted ;; as strings and the PS string delimiters added. ! ((functionp content) (ps-output-string (ps-mule-encode-header-string (funcall content) fonttag))) --drkm