emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/calc/calc-prog.el


From: Colin Walters
Subject: [Emacs-diffs] Changes to emacs/lisp/calc/calc-prog.el
Date: Mon, 19 Nov 2001 02:37:27 -0500

Index: emacs/lisp/calc/calc-prog.el
diff -u emacs/lisp/calc/calc-prog.el:1.3 emacs/lisp/calc/calc-prog.el:1.4
--- emacs/lisp/calc/calc-prog.el:1.3    Wed Nov 14 04:06:43 2001
+++ emacs/lisp/calc/calc-prog.el        Mon Nov 19 02:37:27 2001
@@ -1,6 +1,9 @@
-;; Calculator for GNU Emacs, part II [calc-prog.el]
+;;; calc-prog.el --- user programmability functions for Calc
+
 ;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
-;; Written by Dave Gillespie, address@hidden
+
+;; Author: David Gillespie <address@hidden>
+;; Maintainer: Colin Walters <address@hidden>
 
 ;; This file is part of GNU Emacs.
 
@@ -19,8 +22,11 @@
 ;; file named COPYING.  Among other things, the copyright notice
 ;; and this notice must be preserved on all copies.
 
+;;; Commentary:
 
+;;; Code:
 
+
 ;; This file is autoloaded from calc-ext.el.
 (require 'calc-ext)
 
@@ -102,8 +108,8 @@
   (calc-wrapper
    (calc-change-mode 'calc-timing n nil t)
    (message (if calc-timing
-               "Reporting timing of slow commands in Trail."
-             "Not reporting timing of commands."))))
+               "Reporting timing of slow commands in Trail"
+             "Not reporting timing of commands"))))
 
 (defun calc-pass-errors ()
   (interactive)
@@ -116,7 +122,7 @@
        (or (memq (car (car place)) '(error xxxerror))
            (error "foo"))
        (setcar (car place) 'xxxerror))
-    (error (error "The calc-do function has been modified; unable to 
patch."))))
+    (error (error "The calc-do function has been modified; unable to patch"))))
 
 (defun calc-user-define ()
   (interactive)
@@ -1106,7 +1112,7 @@
      (calc-pop-stack 1)
      (if (math-is-true cond)
         (if defining-kbd-macro
-            (message "If true..."))
+            (message "If true.."))
        (if defining-kbd-macro
           (message "Condition is false; skipping to Z: or Z] ..."))
        (calc-kbd-skip-to-else-if t)))))
@@ -1218,7 +1224,7 @@
         (null parts)
         (null counter)
         (progn
-          (message "Warning: Infinite loop!  Not executing.")
+          (message "Warning: Infinite loop! Not executing")
           (setq rpt-count 0)))
     (or (not initial) dir
        (setq dir (math-compare final initial)))
@@ -1266,9 +1272,10 @@
    (let ((cond (calc-top-n 1)))
      (calc-pop-stack 1)
      (if (math-is-true cond)
-        (error "Keyboard macro aborted.")))))
+        (error "Keyboard macro aborted")))))
 
 
+(defvar calc-kbd-push-level 0)
 (defun calc-kbd-push (arg)
   (interactive "P")
   (calc-wrapper
@@ -1324,7 +1331,6 @@
        (let ((calc-kbd-push-level (1+ calc-kbd-push-level)))
         (message "Saving modes; type Z' to restore")
         (recursive-edit))))))
-(setq calc-kbd-push-level 0)
 
 (defun calc-kbd-pop ()
   (interactive)
@@ -1673,7 +1679,6 @@
 
 
 
-
 ;;;; User-programmability.
 
 ;;; Compiling Lisp-like forms to use the math library.
@@ -2118,8 +2123,8 @@
     (if (math-body-refers-to body 'math-break)
        (cons 'catch (cons '(quote math-break) (list body)))
       body)))
+;; (put 'math-while 'lisp-indent-hook 1)
 
-
 (defmacro math-for (head &rest body)
   (let ((body (if head
                  (math-handle-for head body)
@@ -2127,6 +2132,7 @@
     (if (math-body-refers-to body 'math-break)
        (cons 'catch (cons '(quote math-break) (list body)))
       body)))
+;; (put 'math-for 'lisp-indent-hook 1)
 
 (defun math-handle-for (head body)
   (let* ((var (nth 0 (car head)))
@@ -2184,13 +2190,12 @@
                                                       var
                                                       save-step)))))))))))
 
-
 (defmacro math-foreach (head &rest body)
   (let ((body (math-handle-foreach head body)))
     (if (math-body-refers-to body 'math-break)
        (cons 'catch (cons '(quote math-break) (list body)))
       body)))
-
+;; (put 'math-foreach 'lisp-indent-hook 1)
 
 (defun math-handle-foreach (head body)
   (let ((var (nth 0 (car head)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]