aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-08-30 11:02:13 +0000
committerJuanma Barranquero2005-08-30 11:02:13 +0000
commitfca8b94cf0138be6a92b24b039c10e3680227d5d (patch)
tree79dee95c31d58ffb1828650ffb7e5d13c06f1737
parent691ccfad8f1f9fe82cfed23dcc03125dff5c7fcf (diff)
downloademacs-fca8b94cf0138be6a92b24b039c10e3680227d5d.tar.gz
emacs-fca8b94cf0138be6a92b24b039c10e3680227d5d.zip
(idlwave-completion-help-info): Add defvar.
-rw-r--r--lisp/progmodes/idlw-complete-structtag.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/progmodes/idlw-complete-structtag.el b/lisp/progmodes/idlw-complete-structtag.el
index 8808b3ff8a5..bc659666a08 100644
--- a/lisp/progmodes/idlw-complete-structtag.el
+++ b/lisp/progmodes/idlw-complete-structtag.el
@@ -53,10 +53,10 @@
53;; 53;;
54;; INSTALLATION 54;; INSTALLATION
55;; ============ 55;; ============
56;; Put this file on the emacs load path and load it with the following 56;; Put this file on the emacs load path and load it with the following
57;; line in your .emacs file: 57;; line in your .emacs file:
58;; 58;;
59;; (add-hook 'idlwave-load-hook 59;; (add-hook 'idlwave-load-hook
60;; (lambda () (require 'idlw-complete-structtag))) 60;; (lambda () (require 'idlw-complete-structtag)))
61;; 61;;
62;; DESCRIPTION 62;; DESCRIPTION
@@ -87,6 +87,7 @@
87;; - You can force an update of the tag list with the usual command 87;; - You can force an update of the tag list with the usual command
88;; to update routine info in IDLWAVE: C-c C-i 88;; to update routine info in IDLWAVE: C-c C-i
89 89
90(defvar idlwave-completion-help-info)
90 91
91;; Some variables to identify the previously used structure 92;; Some variables to identify the previously used structure
92(defvar idlwave-current-tags-var nil) 93(defvar idlwave-current-tags-var nil)
@@ -144,9 +145,9 @@ an up-to-date completion list."
144 (not (equal start idlwave-current-tags-completion-pos))) 145 (not (equal start idlwave-current-tags-completion-pos)))
145 (idlwave-prepare-structure-tag-completion var)) 146 (idlwave-prepare-structure-tag-completion var))
146 (setq idlwave-current-tags-completion-pos start) 147 (setq idlwave-current-tags-completion-pos start)
147 (setq idlwave-completion-help-info 148 (setq idlwave-completion-help-info
148 (list 'idlwave-complete-structure-tag-help)) 149 (list 'idlwave-complete-structure-tag-help))
149 (idlwave-complete-in-buffer 'structtag 'structtag 150 (idlwave-complete-in-buffer 'structtag 'structtag
150 idlwave-current-struct-tags nil 151 idlwave-current-struct-tags nil
151 "Select a structure tag" "structure tag") 152 "Select a structure tag" "structure tag")
152 t) ; we did the completion: return t to skip other completions 153 t) ; we did the completion: return t to skip other completions
@@ -165,7 +166,7 @@ an up-to-date completion list."
165 (if (eq major-mode 'idlwave-shell-mode) 166 (if (eq major-mode 'idlwave-shell-mode)
166 ;; OK, we are in the shell, do it dynamically 167 ;; OK, we are in the shell, do it dynamically
167 (progn 168 (progn
168 (message "preparing shell tags") 169 (message "preparing shell tags")
169 ;; The following call puts the tags into `idlwave-current-struct-tags' 170 ;; The following call puts the tags into `idlwave-current-struct-tags'
170 (idlwave-complete-structure-tag-query-shell var) 171 (idlwave-complete-structure-tag-query-shell var)
171 ;; initialize 172 ;; initialize
@@ -187,7 +188,7 @@ an up-to-date completion list."
187 ;; Find possible definitions of the structure. 188 ;; Find possible definitions of the structure.
188 (while (idlwave-find-structure-definition var nil 'all) 189 (while (idlwave-find-structure-definition var nil 'all)
189 (let ((tags (idlwave-struct-tags))) 190 (let ((tags (idlwave-struct-tags)))
190 (when tags 191 (when tags
191 ;; initialize 192 ;; initialize
192 (setq idlwave-sint-structtags nil 193 (setq idlwave-sint-structtags nil
193 idlwave-current-tags-buffer (current-buffer) 194 idlwave-current-tags-buffer (current-buffer)