emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/progmodes/idlw-shell.el,v


From: John-David T. Smith
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/idlw-shell.el,v
Date: Thu, 22 Feb 2007 20:18:17 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     John-David T. Smith <jdsmith>   07/02/22 20:18:17

Index: idlw-shell.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/idlw-shell.el,v
retrieving revision 3.53
retrieving revision 3.54
diff -u -b -r3.53 -r3.54
--- idlw-shell.el       22 Feb 2007 20:05:04 -0000      3.53
+++ idlw-shell.el       22 Feb 2007 20:18:17 -0000      3.54
@@ -3545,22 +3545,21 @@
   (idlwave-shell-module-source-query (idlwave-shell-bp-get bp 'module)
                                     (idlwave-shell-bp-get bp 'type))
   (let*
-      ((arg (idlwave-shell-bp-get bp 'count))
-       (key (cond
-              ((not (and arg (numberp arg))) "")
-              ((= arg 1)
-               ",/once")
-              ((> arg 1)
-               (format ",after=%d" arg))))
+      ((count (idlwave-shell-bp-get bp 'count))
        (condition (idlwave-shell-bp-get bp 'condition))
        (disabled (idlwave-shell-bp-get bp 'disabled))
-       (key (concat key 
-                   (if condition (concat ",CONDITION=\"" condition "\""))))
-       ;; IDL can't simultaneously set a condition and disable a
-       ;; breakpoint, but it does keep both of these when resetting
-       ;; the same BP.  We assume DISABLE and CONDITION are not set
+       (key (concat (if (and count (numberp count))
+                       (cond
+                        ((= count 1) ",/once")
+                        ((> count 1) (format ",after=%d" count))))
+                   (if condition (concat ",CONDITION=\"" condition "\""))
+                   ;; IDL can't simultaneously set a condition/count
+                   ;; and disable a breakpoint, but it does keep both
+                   ;; of these when resetting the same BP.  We assume
+                   ;; DISABLE and CONDITION/COUNT are not set
        ;; together for a newly created breakpoint.
-       (key (concat key (if (and disabled (not condition)) ",/DISABLE")))
+                   (if (and disabled (not condition) (not count))
+                           ",/DISABLE")))
        (line (idlwave-shell-bp-get bp 'line)))
     (idlwave-shell-send-command
      (concat "breakpoint,'" 




reply via email to

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