[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/idlwave e3628c3710 143/360: - Use insert-file-contents
From: |
ELPA Syncer |
Subject: |
[elpa] externals/idlwave e3628c3710 143/360: - Use insert-file-contents |
Date: |
Sun, 28 Apr 2024 00:59:17 -0400 (EDT) |
branch: externals/idlwave
commit e3628c371057a3926b87efc6fb61bf1d6992c40f
Author: jdsmith <jdsmith>
Commit: jdsmith <jdsmith>
- Use insert-file-contents
- Define variables to avoid compiler warnings.
- Check IDL_DIR environment variable as well.
---
idlwave.el | 67 +++++++++++++++++++++++++++++++++++++++++---------------------
1 file changed, 44 insertions(+), 23 deletions(-)
diff --git a/idlwave.el b/idlwave.el
index 851ccf06f2..c6133b1a5d 100644
--- a/idlwave.el
+++ b/idlwave.el
@@ -3,11 +3,11 @@
;; Free Software Foundation
;; Authors: J.D. Smith <jdsmith@as.arizona.edu>
-;; Carsten Dominik <dominik@astro.uva.nl>
+;; Carsten Dominik <dominik@science.uva.nl>
;; Chris Chase <chase@att.com>
;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu>
;; Version: VERSIONTAG
-;; Date: $Date: 2005/05/06 21:49:50 $
+;; Date: $Date: 2005/07/03 23:47:10 $
;; Keywords: languages
;; This file is part of GNU Emacs.
@@ -1958,7 +1958,7 @@ The main features of this mode are
;; NB: `make-local-hook' needed for older/alternative Emacs compatibility
(make-local-hook 'kill-buffer-hook)
(add-hook 'kill-buffer-hook 'idlwave-kill-buffer-update nil 'local)
- (make-local-hook 'after-save-hook)
+ ;; (make-local-hook 'after-save-hook)
(add-hook 'after-save-hook 'idlwave-save-buffer-update nil 'local)
(add-hook 'after-save-hook 'idlwave-revoke-license-to-kill nil 'local)
@@ -2711,7 +2711,7 @@ See `idlwave-surround'."
(re-search-backward "\\(#\\)\\=" nil t))
(setq len (1+ (length (match-string 1))))
(when (re-search-backward an-ops nil t)
- (setq begin nil) ; won't modify begin
+ ;(setq begin nil) ; won't modify begin
(setq len (1+ (length (match-string 1))))))))
(if (eq t idlwave-pad-keyword)
@@ -3563,7 +3563,7 @@ is non-nil."
(let ((pos (point)))
(if idlwave-file-header
(cond ((car idlwave-file-header)
- (insert-file (car idlwave-file-header)))
+ (insert-file-contents (car idlwave-file-header)))
((stringp (car (cdr idlwave-file-header)))
(insert (car (cdr idlwave-file-header))))))
(goto-char pos)))
@@ -4282,7 +4282,9 @@ This defines the function `idlwave-sintern-TAG' and the
variable
(defvar idlwave-user-catalog-routines nil
"Holds the procedure routine-info from the user scan.")
(defvar idlwave-library-catalog-routines nil
- "Holds the procedure routine-info from the library catalog files.")
+ "Holds the procedure routine-info from the .idlwave_catalog library files.")
+(defvar idlwave-library-catalog-libname nil
+ "Name of library catalog loaded from .idlwave_catalog files.")
(defvar idlwave-path-alist nil
"Alist with !PATH directories and zero or more flags if the dir has
been scanned in a user catalog ('user) or discovered in a library
@@ -4399,6 +4401,8 @@ will re-read the catalog."
(defvar idlwave-load-rinfo-idle-timer)
+(defvar idlwave-shell-path-query)
+
(defun idlwave-update-routine-info (&optional arg no-concatenate)
"Update the internal routine-info lists.
These lists are used by `idlwave-routine-info' (\\[idlwave-routine-info])
@@ -4523,6 +4527,8 @@ information updated immediately, leave NO-CONCATENATE
nil."
nil 'idlwave-load-rinfo-next-step)))
(error nil))))
+(defvar idlwave-library-routines nil "Obsolete variable.")
+
(defun idlwave-load-rinfo-next-step ()
(let ((inhibit-quit t)
(arr idlwave-load-rinfo-steps-done))
@@ -4831,12 +4837,15 @@ information updated immediately, leave NO-CONCATENATE
nil."
(defun idlwave-sys-dir ()
"Return the syslib directory, or a dummy that never matches."
- (if (string= idlwave-system-directory "")
- "@@@@@@@@"
- idlwave-system-directory))
+ (cond
+ ((and idlwave-system-directory
+ (not (string= idlwave-system-directory "")))
+ idlwave-system-directory)
+ ((getenv "IDL_DIR"))
+ (t "@@@@@@@@")))
+
-(defvar idlwave-shell-path-query)
(defun idlwave-create-user-catalog-file (&optional arg)
"Scan all files on selected dirs of IDL search path for routine information.
@@ -5155,6 +5164,9 @@ directories and save the routine info.
;;----- Scanning the library catalogs ------------------
+
+
+
(defun idlwave-scan-library-catalogs (&optional message-base no-load)
"Scan for library catalog files (.idlwave_catalog) and ingest.
@@ -5503,13 +5515,15 @@ When we force a method or a method keyword, CLASS can
specify the class."
(isa (format "procedure%s-keyword" (if class "-method" "")))
(entry (idlwave-best-rinfo-assq
name 'pro class (idlwave-routines)))
+ (system (if entry (eq (car (nth 3 entry)) 'system)))
(list (idlwave-entry-keywords entry 'do-link)))
(unless (or entry (eq class t))
(error "Nothing known about procedure %s"
(idlwave-make-full-name class name)))
- (setq list (idlwave-fix-keywords name 'pro class list super-classes))
- (unless list (error (format "No keywords available for procedure %s"
- (idlwave-make-full-name class name))))
+ (setq list (idlwave-fix-keywords name 'pro class list
+ super-classes system))
+ (unless list (error "No keywords available for procedure %s"
+ (idlwave-make-full-name class name)))
(setq idlwave-completion-help-info
(list 'keyword name type-selector class-selector entry
super-classes))
(idlwave-complete-in-buffer
@@ -5534,20 +5548,22 @@ When we force a method or a method keyword, CLASS can
specify the class."
(isa (format "function%s-keyword" (if class "-method" "")))
(entry (idlwave-best-rinfo-assq
name 'fun class (idlwave-routines)))
+ (system (if entry (eq (car (nth 3 entry)) 'system)))
(list (idlwave-entry-keywords entry 'do-link))
msg-name)
(unless (or entry (eq class t))
(error "Nothing known about function %s"
(idlwave-make-full-name class name)))
- (setq list (idlwave-fix-keywords name 'fun class list super-classes))
+ (setq list (idlwave-fix-keywords name 'fun class list
+ super-classes system))
;; OBJ_NEW: Messages mention the proper Init method
(setq msg-name (if (and (null class)
(string= (upcase name) "OBJ_NEW"))
(concat idlwave-current-obj_new-class
"::Init (via OBJ_NEW)")
(idlwave-make-full-name class name)))
- (unless list (error (format "No keywords available for function %s"
- msg-name)))
+ (unless list (error "No keywords available for function %s"
+ msg-name))
(setq idlwave-completion-help-info
(list 'keyword name type-selector class-selector nil
super-classes))
(idlwave-complete-in-buffer
@@ -7174,6 +7190,7 @@ Gets set in `idlw-rinfo.el'.")
t)) ; return t to skip other completions
(t nil))))
+(defvar link) ;dynamic
(defun idlwave-complete-sysvar-help (mode word)
(let ((word (or (nth 1 idlwave-completion-help-info) word))
(entry (assoc word idlwave-system-variables-alist)))
@@ -7228,7 +7245,7 @@ Gets set in `idlw-rinfo.el'.")
word))
(if (assq (idlwave-sintern-class class-with)
idlwave-system-class-info)
- (error "No help available for system class tags."))
+ (error "No help available for system class tags"))
(if (setq found-in (idlwave-class-found-in class-with))
(setq name (cons (concat found-in "__define") class-with))
(setq name (concat class-with "__define")))))
@@ -7681,10 +7698,12 @@ appropriate Init method."
(idlwave-sintern-class class)))))
module))
-(defun idlwave-fix-keywords (name type class keywords &optional super-classes)
+(defun idlwave-fix-keywords (name type class keywords
+ &optional super-classes system)
"Update a list of keywords.
Translate OBJ_NEW, adding all super-class keywords, or all keywords
-from all classes if class equals t."
+from all classes if class equals t. If SYSTEM is non-nil, don't
+demand _EXTRA in the keyword list."
(let ((case-fold-search t))
;; If this is the OBJ_NEW function, try to figure out the class and use
@@ -7727,8 +7746,10 @@ from all classes if class equals t."
super-classes
idlwave-keyword-class-inheritance
(stringp class)
- (or (assq (idlwave-sintern-keyword "_extra") keywords)
- (assq (idlwave-sintern-keyword "_ref_extra") keywords))
+ (or
+ system
+ (assq (idlwave-sintern-keyword "_extra") keywords)
+ (assq (idlwave-sintern-keyword "_ref_extra") keywords))
;; Check if one of the keyword-class regexps matches the name
(let ((regexps idlwave-keyword-class-inheritance) re)
(catch 'exit
@@ -8067,7 +8088,8 @@ Optional args RIGHT and SHIFT indicate, if mouse-3 was
used, and if SHIFT
was pressed."
(interactive "e")
(if ev (mouse-set-point ev))
- (let (data id name type class buf bufwin source word initial-class)
+ (let (data id name type class buf bufwin source link keyword
+ word initial-class)
(setq data (get-text-property (point) 'data)
source (get-text-property (point) 'source)
keyword (get-text-property (point) 'keyword)
@@ -8352,7 +8374,6 @@ routines, and may have been scanned."
(setcar entry 'builtin))
(sort alist 'idlwave-routine-twin-compare)))
-(defvar name)
(defvar type)
(defvar class)
(defvar idlwave-sort-prefer-buffer-info t
- [elpa] externals/idlwave 1416b311ac 356/360: html-system-help-location: correct name, (continued)
- [elpa] externals/idlwave 1416b311ac 356/360: html-system-help-location: correct name, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 3bc0d926ee 071/360: (idlwave-show-begin): Update the last-abbrev-location, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 3db3ab7046 066/360: Patches from Stefan Monnier:, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave e4bd892bae 093/360: - Reverted last "fix". Don't trust XEmacs complaints about useless, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave fcc0d3c878 118/360: - Use idlwave-what-function instead of looking for parens: works in all, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 127405a5c7 217/360: Fontify source code by default., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 5a8c9cb8ec 213/360: find-structure-definition: Correctly indicate structure found., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave d62acf6aef 280/360: Complete struct-tags even if shell only loaded., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 74e4d168e9 326/360: Debug/comments., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 74dc6e40d5 290/360: Help location changes and HTML help inline., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave e3628c3710 143/360: - Use insert-file-contents,
ELPA Syncer <=
- [elpa] externals/idlwave 09992879c0 150/360: - Added customized idlwave-shell-max-print-length, to limit examine, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave ded2f00ea7 175/360: Don't set mark when gathering routine name, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 3a07aca242 162/360: - Use custom face for pending EDB mode lines, rather than, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 16b08e2132 167/360: - Added space to allowed filename characters., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 67eaaf945d 161/360: *** empty log message ***, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 385ec51232 171/360: Clean up doc strings., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 78c01f5303 336/360: Update HTML help file locations and graphics keywords for IDL8.6., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave b8a31a9f6b 269/360: Use 'run-mode-hooks', ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 21b7b3b8ff 267/360: Redisplay if requested, in with post-command hook, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 7834528bf1 318/360: Update README., ELPA Syncer, 2024/04/28