;ELC   
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(require 'idlwave)
(defvar idlwave-current-tags-var nil)
(defvar idlwave-current-tags-buffer nil)
(defvar idlwave-current-tags-completion-pos nil)
(defvar idlwave-current-struct-tags nil)
(defvar idlwave-sint-structtags nil)
(defvar idlwave-sint-structtags nil)
#@27 

(fn NAME &optional SET)
(defalias 'idlwave-sintern-structtag #[513 ";\204 \207\301\227\"A\206 \211\203 \227BB\207\207" [idlwave-sint-structtags assoc] 5 (#$ . 346)])
(byte-code "\300\301\302\"\210\300\303\304\"\207" [add-hook idlwave-complete-functions idlwave-complete-structure-tag idlwave-update-rinfo-hook idlwave-structtag-reset] 3)
#@348 Complete a structure tag.
This works by looking in the current file for a structure assignment to a
variable with the same name and takes the tags from there.  Quite useful
for big structures like the state variables of a widget application.

In the idlwave shell, the current content of the variable is used to get
an up-to-date completion list.
(defalias 'idlwave-complete-structure-tag #[0 "`\306\307\212\310\306x\210`\262`W\205/ `Sf\311=?\205/ \312\313!\205/ \314\225Y\205/ \315\316!\227\317\230?)\205c \315\316!\227\211	\206= \320\230\203M p\n=\203M \232\204Q \321!\210\322C\323\324\211\306\325\326&\210\307\262)\207" [case-fold-search idlwave-current-tags-var idlwave-current-tags-buffer idlwave-current-tags-completion-pos idlwave-completion-help-info idlwave-current-struct-tags nil t "a-zA-Z0-9._$" 33 looking-at "\\([a-zA-Z][.a-zA-Z0-9_]*\\)\\." 0 match-string 1 "self" "@" idlwave-prepare-structure-tag-completion idlwave-complete-structure-tag-help idlwave-complete-in-buffer structtag "Select a structure tag" "structure tag"] 10 (#$ . 706) nil])
#@66 Force an update of the current structure tag list upon next use.
(defalias 'idlwave-structtag-reset #[0 "\301\211\207" [idlwave-current-tags-buffer nil] 2 (#$ . 1785)])
#@61 The location of the structure definition, for help display.
(defvar idlwave-structtag-struct-location nil (#$ . 1961))
#@69 Find and parse the tag list for structure tag completion.

(fn VAR)
(defalias 'idlwave-prepare-structure-tag-completion #[257 "\305\306!\203% \307\310!\210\311!\210\312p\211`\313\314\f\"\211?\205[ \315\316\"\207\3172S \212db\210\320\312\321#\205Q \322 \211\203M \312p`\313\323\"\324\317\325\"\210\210\202- )0?\205[ \315\316\"\207" [idlwave-sint-structtags idlwave-current-tags-buffer idlwave-current-tags-var idlwave-structtag-struct-location idlwave-current-struct-tags derived-mode-p idlwave-shell-mode message "preparing shell tags" idlwave-complete-structure-tag-query-shell nil mapcar #[257 "\300\301\"C\207" [idlwave-sintern-structtag set] 4 "\n\n(fn X)"] error "Cannot complete structure tags of variable %s" exit idlwave-find-structure-definition all idlwave-struct-tags #[257 "\300\301\"C\207" [idlwave-sintern-structtag set] 4 "\n\n(fn X)"] throw t] 6 (#$ . 2086)])
#@86 Ask the shell for the tags of the structure in variable or expression VAR.

(fn VAR)
(defalias 'idlwave-complete-structure-tag-query-shell #[257 "\300\301\302\211#\303\304\305$\207" [idlwave-shell-send-command format "if size(%s,/TYPE) eq 8 then print,tag_names(%s)" idlwave-complete-structure-tag-get-tags-from-help hide wait] 6 (#$ . 2986)])
#@76 Filter structure tag name output, result to `idlwave-current-struct-tags'.
(defalias 'idlwave-complete-structure-tag-get-tags-from-help #[0 "\303\304\305Q	\"\205 \306\307\310	\"!\211\207" [idlwave-shell-prompt-pattern idlwave-shell-command-output idlwave-current-struct-tags string-match "tag_names(.*) *\n\\(\\(.*[\n]?\\)*\\)\\(" "\\)" split-string match-string 1] 4 (#$ . 3337)])
#@18 

(fn MODE WORD)
(defalias 'idlwave-complete-structure-tag-help #[514 "\304\267\202 \305\306 !\232?\207\211\n\211\207\307\310!\207" [idlwave-current-tags-buffer idlw-help-kwd idlwave-structtag-struct-location idlwave-help-do-struct-tag #s(hash-table size 2 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (test 6 set 14)) get-buffer idlwave-shell-buffer error "This should not happen"] 5 (#$ . 3729)])
(provide 'idlw-complete-structtag)
