aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-13 02:58:33 +0000
committerGlenn Morris2007-10-13 02:58:33 +0000
commit8ffcfb276222faba1f0e6f2eff3d57fd1344e411 (patch)
tree6d27edb592000cccf4901a3b9f2a055a5e4dfe0c
parent85484c836aa5b7e4e8c51454144f24f989cbd634 (diff)
downloademacs-8ffcfb276222faba1f0e6f2eff3d57fd1344e411.tar.gz
emacs-8ffcfb276222faba1f0e6f2eff3d57fd1344e411.zip
(idlwave-indent-line)
(idlwave-sintern-keyword-list, idlwave-scan-user-lib-files) (idlwave-write-paths, idlwave-all-method-classes) (idlwave-all-method-keyword-classes, idlwave-entry-keywords) (idlwave-fix-keywords, idlwave-display-calling-sequence): Use mapc rather than mapcar.
-rw-r--r--lisp/progmodes/idlwave.el64
1 files changed, 32 insertions, 32 deletions
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 1e600d6c456..646f6a80d8e 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -2827,10 +2827,10 @@ If the optional argument EXPAND is non-nil then the actions in
2827 ;; Before indenting, run action routines. 2827 ;; Before indenting, run action routines.
2828 ;; 2828 ;;
2829 (if (and expand idlwave-do-actions) 2829 (if (and expand idlwave-do-actions)
2830 (mapcar 'idlwave-do-action idlwave-indent-expand-table)) 2830 (mapc 'idlwave-do-action idlwave-indent-expand-table))
2831 ;; 2831 ;;
2832 (if idlwave-do-actions 2832 (if idlwave-do-actions
2833 (mapcar 'idlwave-do-action idlwave-indent-action-table)) 2833 (mapc 'idlwave-do-action idlwave-indent-action-table))
2834 ;; 2834 ;;
2835 ;; No longer expand abbrevs on the line. The user can do this 2835 ;; No longer expand abbrevs on the line. The user can do this
2836 ;; manually using expand-region-abbrevs. 2836 ;; manually using expand-region-abbrevs.
@@ -4242,9 +4242,9 @@ blank lines."
4242 4242
4243(defun idlwave-sintern-keyword-list (kwd-list &optional set) 4243(defun idlwave-sintern-keyword-list (kwd-list &optional set)
4244 "Sintern a set of keywords (file (key . link) (key2 . link2) ...)" 4244 "Sintern a set of keywords (file (key . link) (key2 . link2) ...)"
4245 (mapcar (lambda(x) 4245 (mapc (lambda(x)
4246 (setcar x (idlwave-sintern-keyword (car x) set))) 4246 (setcar x (idlwave-sintern-keyword (car x) set)))
4247 (cdr kwd-list)) 4247 (cdr kwd-list))
4248 kwd-list) 4248 kwd-list)
4249 4249
4250(defun idlwave-sintern-rinfo-list (list &optional set default-dir) 4250(defun idlwave-sintern-rinfo-list (list &optional set default-dir)
@@ -5560,11 +5560,11 @@ directories and save the routine info.
5560 ;; Define the routine info list 5560 ;; Define the routine info list
5561 (insert "\n(setq idlwave-user-catalog-routines\n '(") 5561 (insert "\n(setq idlwave-user-catalog-routines\n '(")
5562 (let ((standard-output (current-buffer))) 5562 (let ((standard-output (current-buffer)))
5563 (mapcar (lambda (x) 5563 (mapc (lambda (x)
5564 (insert "\n ") 5564 (insert "\n ")
5565 (prin1 x) 5565 (prin1 x)
5566 (goto-char (point-max))) 5566 (goto-char (point-max)))
5567 idlwave-user-catalog-routines)) 5567 idlwave-user-catalog-routines))
5568 (insert (format "))\n\n;;; %s ends here\n" 5568 (insert (format "))\n\n;;; %s ends here\n"
5569 (file-name-nondirectory idlwave-user-catalog-file))) 5569 (file-name-nondirectory idlwave-user-catalog-file)))
5570 (goto-char (point-min)) 5570 (goto-char (point-min))
@@ -5604,11 +5604,11 @@ directories and save the routine info.
5604 ;; Define the variable which contains a list of all scanned directories 5604 ;; Define the variable which contains a list of all scanned directories
5605 (insert "\n(setq idlwave-path-alist\n '(") 5605 (insert "\n(setq idlwave-path-alist\n '(")
5606 (let ((standard-output (current-buffer))) 5606 (let ((standard-output (current-buffer)))
5607 (mapcar (lambda (x) 5607 (mapc (lambda (x)
5608 (insert "\n ") 5608 (insert "\n ")
5609 (prin1 x) 5609 (prin1 x)
5610 (goto-char (point-max))) 5610 (goto-char (point-max)))
5611 idlwave-path-alist)) 5611 idlwave-path-alist))
5612 (insert "))\n") 5612 (insert "))\n")
5613 (save-buffer 0) 5613 (save-buffer 0)
5614 (kill-buffer (current-buffer)))) 5614 (kill-buffer (current-buffer))))
@@ -6319,12 +6319,12 @@ When TYPE is not specified, both procedures and functions will be considered."
6319 (if (null method) 6319 (if (null method)
6320 (mapcar 'car (idlwave-class-alist)) 6320 (mapcar 'car (idlwave-class-alist))
6321 (let (rtn) 6321 (let (rtn)
6322 (mapcar (lambda (x) 6322 (mapc (lambda (x)
6323 (and (nth 2 x) 6323 (and (nth 2 x)
6324 (or (not type) 6324 (or (not type)
6325 (eq type (nth 1 x))) 6325 (eq type (nth 1 x)))
6326 (push (nth 2 x) rtn))) 6326 (push (nth 2 x) rtn)))
6327 (idlwave-all-assq method (idlwave-routines))) 6327 (idlwave-all-assq method (idlwave-routines)))
6328 (idlwave-uniquify rtn)))) 6328 (idlwave-uniquify rtn))))
6329 6329
6330(defun idlwave-all-method-keyword-classes (method keyword &optional type) 6330(defun idlwave-all-method-keyword-classes (method keyword &optional type)
@@ -6335,13 +6335,13 @@ When TYPE is not specified, both procedures and functions will be considered."
6335 (null keyword)) 6335 (null keyword))
6336 nil 6336 nil
6337 (let (rtn) 6337 (let (rtn)
6338 (mapcar (lambda (x) 6338 (mapc (lambda (x)
6339 (and (nth 2 x) ; non-nil class 6339 (and (nth 2 x) ; non-nil class
6340 (or (not type) ; correct or unspecified type 6340 (or (not type) ; correct or unspecified type
6341 (eq type (nth 1 x))) 6341 (eq type (nth 1 x)))
6342 (assoc keyword (idlwave-entry-keywords x)) 6342 (assoc keyword (idlwave-entry-keywords x))
6343 (push (nth 2 x) rtn))) 6343 (push (nth 2 x) rtn)))
6344 (idlwave-all-assq method (idlwave-routines))) 6344 (idlwave-all-assq method (idlwave-routines)))
6345 (idlwave-uniquify rtn)))) 6345 (idlwave-uniquify rtn))))
6346 6346
6347(defun idlwave-members-only (list club) 6347(defun idlwave-members-only (list club)
@@ -7551,7 +7551,7 @@ The list is cached in `idlwave-class-info' for faster access."
7551If RECORD-LINK is non-nil, the keyword text is copied and a text 7551If RECORD-LINK is non-nil, the keyword text is copied and a text
7552property indicating the link is added." 7552property indicating the link is added."
7553 (let (kwds) 7553 (let (kwds)
7554 (mapcar 7554 (mapc
7555 (lambda (key-list) 7555 (lambda (key-list)
7556 (let ((file (car key-list))) 7556 (let ((file (car key-list)))
7557 (mapcar (lambda (key-cons) 7557 (mapcar (lambda (key-cons)
@@ -8277,8 +8277,8 @@ demand _EXTRA in the keyword list."
8277 (memq (nth 2 entry) super-classes) ; an inherited class 8277 (memq (nth 2 entry) super-classes) ; an inherited class
8278 (eq (nth 1 entry) type) ; correct type 8278 (eq (nth 1 entry) type) ; correct type
8279 (eq (car entry) name) ; correct name 8279 (eq (car entry) name) ; correct name
8280 (mapcar (lambda (k) (add-to-list 'keywords k)) 8280 (mapc (lambda (k) (add-to-list 'keywords k))
8281 (idlwave-entry-keywords entry 'do-link)))) 8281 (idlwave-entry-keywords entry 'do-link))))
8282 (setq keywords (idlwave-uniquify keywords))) 8282 (setq keywords (idlwave-uniquify keywords)))
8283 8283
8284 ;; Return the final list 8284 ;; Return the final list
@@ -8437,7 +8437,7 @@ If we do not know about MODULE, just return KEYWORD literally."
8437 (if (null keywords) 8437 (if (null keywords)
8438 (insert " No keywords accepted.") 8438 (insert " No keywords accepted.")
8439 (setq col 9) 8439 (setq col 9)
8440 (mapcar 8440 (mapc
8441 (lambda (x) 8441 (lambda (x)
8442 (if (>= (+ col 1 (length (car x))) 8442 (if (>= (+ col 1 (length (car x)))
8443 (window-width)) 8443 (window-width))