aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2011-04-02 00:33:37 +0200
committerJuanma Barranquero2011-04-02 00:33:37 +0200
commit26b51db565bc58de30c9fdcd31f5066783bfd32b (patch)
tree089b056674318667f2984c51a6610f0cece0e28c
parent034086489cff2a23cb4d9f8c536e18456be617ef (diff)
downloademacs-26b51db565bc58de30c9fdcd31f5066783bfd32b.tar.gz
emacs-26b51db565bc58de30c9fdcd31f5066783bfd32b.zip
lisp/progmodes/idlwave.el: Use `dolist' rather than `mapcar'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/idlwave.el19
2 files changed, 13 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 288199fd702..7d5b9f592dd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-04-01 Juanma Barranquero <lekktu@gmail.com>
2
3 * progmodes/idlwave.el (idlwave-one-key-select, idlwave-list-abbrevs):
4 Use `dolist' rather than `mapcar'.
5
12011-04-01 Stefan Monnier <monnier@iro.umontreal.ca> 62011-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 Add lexical binding. 8 Add lexical binding.
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 5b7e07a5aad..8066e1c3a7f 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -7068,10 +7068,9 @@ If these don't exist, a letter in the string is automatically selected."
7068 ;; No quick reply: Show help 7068 ;; No quick reply: Show help
7069 (save-window-excursion 7069 (save-window-excursion
7070 (with-output-to-temp-buffer "*Completions*" 7070 (with-output-to-temp-buffer "*Completions*"
7071 (mapcar (lambda(x) 7071 (dolist (x keys-alist)
7072 (princ (nth 1 x)) 7072 (princ (nth 1 x))
7073 (princ "\n")) 7073 (princ "\n")))
7074 keys-alist))
7075 (setq char (read-char))) 7074 (setq char (read-char)))
7076 (setq char (read-char))) 7075 (setq char (read-char)))
7077 (message nil) 7076 (message nil)
@@ -9313,13 +9312,11 @@ This function was written since `list-abbrevs' looks terrible for IDLWAVE mode."
9313 (princ "================================================\n\n") 9312 (princ "================================================\n\n")
9314 (princ (format fmt "KEY" "ACTION" "")) 9313 (princ (format fmt "KEY" "ACTION" ""))
9315 (princ (format fmt "---" "------" ""))) 9314 (princ (format fmt "---" "------" "")))
9316 (mapcar 9315 (dolist (list abbrevs)
9317 (lambda (list) 9316 (setq str (car list)
9318 (setq str (car list) 9317 rpl (nth 1 list)
9319 rpl (nth 1 list) 9318 func (nth 2 list))
9320 func (nth 2 list)) 9319 (princ (format fmt str rpl func)))))
9321 (princ (format fmt str rpl func)))
9322 abbrevs)))
9323 ;; Make sure each abbreviation uses only one display line 9320 ;; Make sure each abbreviation uses only one display line
9324 (with-current-buffer "*Help*" 9321 (with-current-buffer "*Help*"
9325 (setq truncate-lines t))) 9322 (setq truncate-lines t)))