Mercurial > emacs
comparison lisp/progmodes/idlwave.el @ 92294:ec8fb087e45e
(Info-goto-node): Remove declaration.
(idlwave-convert-xml-system-routine-info): Don't require xml.
(idlwave-show-commentary, idlwave-shell-show-commentary): Don't require finder.
(idlwave-info): Don't require info. Use info rather than Info-goto-node.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 28 Feb 2008 03:47:24 +0000 |
parents | 107ccd98fa12 |
children | 52b7a8c22af5 |
comparison
equal
deleted
inserted
replaced
92293:465baef0d911 | 92294:ec8fb087e45e |
---|---|
175 (declare-function idlwave-shell-get-path-info "idlw-shell") | 175 (declare-function idlwave-shell-get-path-info "idlw-shell") |
176 (declare-function idlwave-shell-temp-file "idlw-shell") | 176 (declare-function idlwave-shell-temp-file "idlw-shell") |
177 (declare-function idlwave-shell-is-running "idlw-shell") | 177 (declare-function idlwave-shell-is-running "idlw-shell") |
178 (declare-function widget-value "wid-edit" (widget)) | 178 (declare-function widget-value "wid-edit" (widget)) |
179 (declare-function comint-dynamic-complete-filename "comint" ()) | 179 (declare-function comint-dynamic-complete-filename "comint" ()) |
180 (declare-function Info-goto-node "info" (nodename &optional fork)) | |
181 | 180 |
182 (defgroup idlwave nil | 181 (defgroup idlwave nil |
183 "Major mode for editing IDL .pro files." | 182 "Major mode for editing IDL .pro files." |
184 :tag "IDLWAVE" | 183 :tag "IDLWAVE" |
185 :link '(url-link :tag "Home Page" | 184 :link '(url-link :tag "Home Page" |
4904 version-string) | 4903 version-string) |
4905 (if (not (file-exists-p catalog-file)) | 4904 (if (not (file-exists-p catalog-file)) |
4906 (error "No such XML routine info file: %s" catalog-file) | 4905 (error "No such XML routine info file: %s" catalog-file) |
4907 (if (not (file-readable-p catalog-file)) | 4906 (if (not (file-readable-p catalog-file)) |
4908 (error "Cannot read XML routine info file: %s" catalog-file))) | 4907 (error "Cannot read XML routine info file: %s" catalog-file))) |
4909 (require 'xml) | |
4910 (message "Reading XML routine info...") | 4908 (message "Reading XML routine info...") |
4911 (setq rinfo (xml-parse-file catalog-file)) | 4909 (setq rinfo (xml-parse-file catalog-file)) |
4912 (message "Reading XML routine info...done") | 4910 (message "Reading XML routine info...done") |
4913 (setq rinfo (assq 'CATALOG rinfo)) | 4911 (setq rinfo (assq 'CATALOG rinfo)) |
4914 (unless rinfo (error "Failed to parse XML routine info")) | 4912 (unless rinfo (error "Failed to parse XML routine info")) |
9289 (error "Cannot expand menu (outdated version of cus-edit.el)"))) | 9287 (error "Cannot expand menu (outdated version of cus-edit.el)"))) |
9290 | 9288 |
9291 (defun idlwave-show-commentary () | 9289 (defun idlwave-show-commentary () |
9292 "Use the finder to view the file documentation from `idlwave.el'." | 9290 "Use the finder to view the file documentation from `idlwave.el'." |
9293 (interactive) | 9291 (interactive) |
9294 (require 'finder) | |
9295 (finder-commentary "idlwave.el")) | 9292 (finder-commentary "idlwave.el")) |
9296 | 9293 |
9297 (defun idlwave-shell-show-commentary () | 9294 (defun idlwave-shell-show-commentary () |
9298 "Use the finder to view the file documentation from `idlw-shell.el'." | 9295 "Use the finder to view the file documentation from `idlw-shell.el'." |
9299 (interactive) | 9296 (interactive) |
9300 (require 'finder) | |
9301 (finder-commentary "idlw-shell.el")) | 9297 (finder-commentary "idlw-shell.el")) |
9302 | 9298 |
9303 (defun idlwave-info () | 9299 (defun idlwave-info () |
9304 "Read documentation for IDLWAVE in the info system." | 9300 "Read documentation for IDLWAVE in the info system." |
9305 (interactive) | 9301 (interactive) |
9306 (require 'info) | 9302 (info "idlwave")) |
9307 (Info-goto-node "(idlwave)")) | |
9308 | 9303 |
9309 (defun idlwave-list-abbrevs (arg) | 9304 (defun idlwave-list-abbrevs (arg) |
9310 "Show the code abbreviations define in IDLWAVE mode. | 9305 "Show the code abbreviations define in IDLWAVE mode. |
9311 This lists all abbrevs where the replacement text differs from the input text. | 9306 This lists all abbrevs where the replacement text differs from the input text. |
9312 These are the ones the users want to learn to speed up their writing. | 9307 These are the ones the users want to learn to speed up their writing. |