From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Piet van Oostrum Newsgroups: gmane.emacs.devel Subject: problem in plotlisp Date: 12 Mar 2004 18:09:33 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079113029 4322 80.91.224.253 (12 Mar 2004 17:37:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2004 17:37:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Mar 12 18:36:50 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1qaX-0005aK-00 for ; Fri, 12 Mar 2004 18:36:49 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1qaW-0002zk-00 for ; Fri, 12 Mar 2004 18:36:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1qOy-0000an-UG for emacs-devel@quimby.gnus.org; Fri, 12 Mar 2004 12:24:52 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B1qOm-0000aH-Bx for emacs-devel@gnu.org; Fri, 12 Mar 2004 12:24:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B1qOG-0000Sk-DO for emacs-devel@gnu.org; Fri, 12 Mar 2004 12:24:39 -0500 Original-Received: from [213.116.152.169] (helo=ordesa.cs.uu.nl) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1q9Z-0006dF-JH for emacs-devel@gnu.org; Fri, 12 Mar 2004 12:08:57 -0500 Original-Received: from Ordesa.local (localhost [127.0.0.1]) by ordesa.cs.uu.nl (Postfix) with ESMTP id 258A710FD8C for ; Fri, 12 Mar 2004 18:09:37 +0100 (CET) X-Mailer: emacs 21.3.50.1 (via feedmail 8 I) Original-To: emacs-devel@gnu.org Original-Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20358 plot.lisp in CVS has introduced a change where the line (or ($listp fun ) (setf fun `((mlist) ,fun))) has been commented. However, this breaks things like: plot2d(x, [x, 0, 5], [plot_format,ps]) The following patch solves this: Index: src/plot.lisp =================================================================== RCS file: /cvsroot/maxima/maxima/src/plot.lisp,v retrieving revision 1.34 diff -u -r1.34 plot.lisp --- src/plot.lisp 21 Jan 2004 02:13:55 -0000 1.34 +++ src/plot.lisp 12 Mar 2004 16:38:49 -0000 @@ -942,7 +942,7 @@ ;; IF NOT COMMENTED, plot2d(expr,range,[plot_format,ps]) GENERATES BAD POSTSCRIPT (SEE BUG REPORT #834729) ;; (or ($listp fun ) (setf fun `((mlist) ,fun))) - (cond ((eq (cadr fun) '$parametric) + (cond ( (and ($listp fun) (eq (cadr fun) '$parametric)) (or range (setq range (nth 4 fun))) (setf fun `((mlist) ,fun)))) (cond ((eq ($get_plot_option '$PLOT_FORMAT 2) '$ps) @@ -952,7 +952,8 @@ (check-range range) (setq plot-format ($get_plot_option '$plot_format 2)) (setq file (format nil "maxout.~(~a~)" (stripdollar plot-format))) - + (or ($listp fun ) (setf fun `((mlist) ,fun))) + (with-open-file (st file :direction :output :if-exists :supersede) (dolist (v (cdr fun)) (incf i) -- Piet van Oostrum URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.van.Oostrum@hccnet.nl