aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-13 02:59:21 +0000
committerGlenn Morris2007-10-13 02:59:21 +0000
commit3d1ead4bca71af499a1d9970ab4adbd9ac7bc313 (patch)
tree1d53acdb455aeb5ef3e28b67a3a2436d352af38d
parente430c6239079d297a115b0bed873225b784ac629 (diff)
downloademacs-3d1ead4bca71af499a1d9970ab4adbd9ac7bc313.tar.gz
emacs-3d1ead4bca71af499a1d9970ab4adbd9ac7bc313.zip
(idlwave-shell-filter-bp, top level): Use mapc rather than mapcar.
-rw-r--r--lisp/progmodes/idlw-shell.el28
1 files changed, 14 insertions, 14 deletions
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index f903d490565..4d2dd7f315e 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -3461,12 +3461,12 @@ breakpoint overlays."
3461 line (string-to-number (match-string (nth 2 indmap))) 3461 line (string-to-number (match-string (nth 2 indmap)))
3462 file (idlwave-shell-file-name (match-string (nth 3 indmap)))) 3462 file (idlwave-shell-file-name (match-string (nth 3 indmap))))
3463 (if (eq bp-re bp-re55) 3463 (if (eq bp-re bp-re55)
3464 (setq count (if (match-string 10) 1 3464 (setq count (if (match-string 10) 1
3465 (if (match-string 8) 3465 (if (match-string 8)
3466 (string-to-number (match-string 8)))) 3466 (string-to-number (match-string 8))))
3467 condition (match-string 13) 3467 condition (match-string 13)
3468 disabled (not (null (match-string 15))))) 3468 disabled (not (null (match-string 15)))))
3469 3469
3470 ;; Add the breakpoint info to the list 3470 ;; Add the breakpoint info to the list
3471 (nconc idlwave-shell-bp-alist 3471 (nconc idlwave-shell-bp-alist
3472 (list (cons (list file line) 3472 (list (cons (list file line)
@@ -3476,9 +3476,9 @@ breakpoint overlays."
3476 count nil condition disabled)))))) 3476 count nil condition disabled))))))
3477 (setq idlwave-shell-bp-alist (cdr idlwave-shell-bp-alist)) 3477 (setq idlwave-shell-bp-alist (cdr idlwave-shell-bp-alist))
3478 ;; Update breakpoint data 3478 ;; Update breakpoint data
3479 (if (eq bp-re bp-re54) 3479 (if (eq bp-re bp-re54)
3480 (mapcar 'idlwave-shell-update-bp old-bp-alist) 3480 (mapc 'idlwave-shell-update-bp old-bp-alist)
3481 (mapcar 'idlwave-shell-update-bp-command-only old-bp-alist)))) 3481 (mapc 'idlwave-shell-update-bp-command-only old-bp-alist))))
3482 ;; Update the breakpoint overlays 3482 ;; Update the breakpoint overlays
3483 (unless no-show (idlwave-shell-update-bp-overlays)) 3483 (unless no-show (idlwave-shell-update-bp-overlays))
3484 ;; Return the new list 3484 ;; Return the new list
@@ -4530,27 +4530,27 @@ idlwave-shell-electric-debug-mode-map)
4530 4530
4531(if (or (featurep 'easymenu) (load "easymenu" t)) 4531(if (or (featurep 'easymenu) (load "easymenu" t))
4532 (progn 4532 (progn
4533 (easy-menu-define 4533 (easy-menu-define
4534 idlwave-mode-debug-menu idlwave-mode-map "IDL debugging menus" 4534 idlwave-mode-debug-menu idlwave-mode-map "IDL debugging menus"
4535 idlwave-shell-menu-def) 4535 idlwave-shell-menu-def)
4536 (easy-menu-define 4536 (easy-menu-define
4537 idlwave-shell-mode-menu idlwave-shell-mode-map "IDL shell menus" 4537 idlwave-shell-mode-menu idlwave-shell-mode-map "IDL shell menus"
4538 idlwave-shell-menu-def) 4538 idlwave-shell-menu-def)
4539 (save-excursion 4539 (save-excursion
4540 (mapcar (lambda (buf) 4540 (mapc (lambda (buf)
4541 (set-buffer buf) 4541 (set-buffer buf)
4542 (if (eq major-mode 'idlwave-mode) 4542 (if (eq major-mode 'idlwave-mode)
4543 (progn 4543 (progn
4544 (easy-menu-remove idlwave-mode-debug-menu) 4544 (easy-menu-remove idlwave-mode-debug-menu)
4545 (easy-menu-add idlwave-mode-debug-menu)))) 4545 (easy-menu-add idlwave-mode-debug-menu))))
4546 (buffer-list))))) 4546 (buffer-list)))))
4547 4547
4548;; The Breakpoint Glyph ------------------------------------------------------- 4548;; The Breakpoint Glyph -------------------------------------------------------
4549 4549
4550(defvar idlwave-shell-bp-glyph nil 4550(defvar idlwave-shell-bp-glyph nil
4551 "The glyphs to mark breakpoint lines in the source code.") 4551 "The glyphs to mark breakpoint lines in the source code.")
4552 4552
4553(let ((image-alist 4553(let ((image-alist
4554 '((bp . "/* XPM */ 4554 '((bp . "/* XPM */
4555static char * file[] = { 4555static char * file[] = {
4556\"14 12 3 1\", 4556\"14 12 3 1\",