Mercurial > emacs
comparison lisp/progmodes/idlwave.el @ 91239:2fcaae6177a5
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-300
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sun, 16 Dec 2007 05:08:49 +0000 |
parents | 53108e6cea98 e50a2e215441 |
children | 56a72e2bd635 |
comparison
equal
deleted
inserted
replaced
91238:5cf14a2107b5 | 91239:2fcaae6177a5 |
---|---|
3797 (insert s2) | 3797 (insert s2) |
3798 (setq end (point))) | 3798 (setq end (point))) |
3799 (if (not noindent) | 3799 (if (not noindent) |
3800 (indent-region beg end nil)) | 3800 (indent-region beg end nil)) |
3801 (if (stringp prompt) | 3801 (if (stringp prompt) |
3802 (message prompt))))) | 3802 (message "%s" prompt))))) |
3803 | 3803 |
3804 (defun idlwave-rw-case (string) | 3804 (defun idlwave-rw-case (string) |
3805 "Make STRING have the case required by `idlwave-reserved-word-upcase'." | 3805 "Make STRING have the case required by `idlwave-reserved-word-upcase'." |
3806 (if idlwave-reserved-word-upcase | 3806 (if idlwave-reserved-word-upcase |
3807 (upcase string) | 3807 (upcase string) |
7036 (nth 2 last-command)) | 7036 (nth 2 last-command)) |
7037 (progn | 7037 (progn |
7038 (select-window win) | 7038 (select-window win) |
7039 (eval idlwave-complete-after-success-form)) | 7039 (eval idlwave-complete-after-success-form)) |
7040 (set-window-start cwin (point-min))))) | 7040 (set-window-start cwin (point-min))))) |
7041 (and message (message message))) | 7041 (and message (message "%s" message))) |
7042 (select-window win)))) | 7042 (select-window win)))) |
7043 | 7043 |
7044 (defun idlwave-display-completion-list (list &optional message beg complete) | 7044 (defun idlwave-display-completion-list (list &optional message beg complete) |
7045 "Display the completions in LIST in the completions buffer and echo MESSAGE." | 7045 "Display the completions in LIST in the completions buffer and echo MESSAGE." |
7046 (unless (and (get-buffer-window "*Completions*") | 7046 (unless (and (get-buffer-window "*Completions*") |
7067 | 7067 |
7068 ;; Run the hook | 7068 ;; Run the hook |
7069 (run-hooks 'idlwave-completion-setup-hook) | 7069 (run-hooks 'idlwave-completion-setup-hook) |
7070 | 7070 |
7071 ;; Display the message | 7071 ;; Display the message |
7072 (message (or message "Making completion list...done"))) | 7072 (message "%s" (or message "Making completion list...done"))) |
7073 | 7073 |
7074 (defun idlwave-choose (function &rest args) | 7074 (defun idlwave-choose (function &rest args) |
7075 "Call FUNCTION as a completion chooser and pass ARGS to it." | 7075 "Call FUNCTION as a completion chooser and pass ARGS to it." |
7076 (let ((completion-ignore-case t)) ; install correct value | 7076 (let ((completion-ignore-case t)) ; install correct value |
7077 (apply function args)) | 7077 (apply function args)) |