all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problem in plotlisp
@ 2004-03-12 17:09 Piet van Oostrum
  2004-03-12 20:07 ` Piet van Oostrum
  0 siblings, 1 reply; 2+ messages in thread
From: Piet van Oostrum @ 2004-03-12 17:09 UTC (permalink / raw)


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 <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum@hccnet.nl

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: problem in plotlisp
  2004-03-12 17:09 problem in plotlisp Piet van Oostrum
@ 2004-03-12 20:07 ` Piet van Oostrum
  0 siblings, 0 replies; 2+ messages in thread
From: Piet van Oostrum @ 2004-03-12 20:07 UTC (permalink / raw)


>>>>> Piet van Oostrum <piet@cs.uu.nl> (PvO) wrote:

PvO> plot.lisp in CVS has introduced a change where the line

Sorry, this went to the wrong list.
-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum@hccnet.nl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-12 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 17:09 problem in plotlisp Piet van Oostrum
2004-03-12 20:07 ` Piet van Oostrum

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.