Mercurial > emacs
comparison lisp/progmodes/idlwave.el @ 85282:f89fc9388782
(idlwave-complete-in-buffer): Use mapc rather than mapcar.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 13 Oct 2007 22:55:36 +0000 |
parents | 1d4ea6f1cea5 |
children | 2c08ad76fc1f a0e466c4d599 |
comparison
equal
deleted
inserted
replaced
85281:7d48c6241478 | 85282:f89fc9388782 |
---|---|
6783 (t | 6783 (t |
6784 ;; We cannot add something - offer a list. | 6784 ;; We cannot add something - offer a list. |
6785 (message "Making completion list...") | 6785 (message "Making completion list...") |
6786 | 6786 |
6787 (unless idlwave-completion-help-links ; already set somewhere? | 6787 (unless idlwave-completion-help-links ; already set somewhere? |
6788 (mapcar (lambda (x) ; Pass link prop through to highlight-linked | 6788 (mapc (lambda (x) ; Pass link prop through to highlight-linked |
6789 (let ((link (get-text-property 0 'link (car x)))) | 6789 (let ((link (get-text-property 0 'link (car x)))) |
6790 (if link | 6790 (if link |
6791 (push (cons (car x) link) | 6791 (push (cons (car x) link) |
6792 idlwave-completion-help-links)))) | 6792 idlwave-completion-help-links)))) |
6793 list)) | 6793 list)) |
6794 (let* ((list all-completions) | 6794 (let* ((list all-completions) |
6795 ;; "complete" means, this is already a valid completion | 6795 ;; "complete" means, this is already a valid completion |
6796 (complete (memq spart all-completions)) | 6796 (complete (memq spart all-completions)) |
6797 (completion-highlight-first-word-only t)) ; XEmacs | 6797 (completion-highlight-first-word-only t)) ; XEmacs |
6798 ; (completion-fixup-function ; Emacs | 6798 ; (completion-fixup-function ; Emacs |