emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/idlwave cfc746716d 165/360: - C-M-? is help with topic,


From: ELPA Syncer
Subject: [elpa] externals/idlwave cfc746716d 165/360: - C-M-? is help with topic, also menu.
Date: Sun, 28 Apr 2024 00:59:20 -0400 (EDT)

branch: externals/idlwave
commit cfc746716d21ac69c685e1b7295d80b1ee59a4f6
Author: jdsmith <jdsmith>
Commit: jdsmith <jdsmith>

    - C-M-? is help with topic, also menu.
    - Simpler XML reading (with Emacs 22 patch to drop properties).
    - Ignore case on structure tag help.
    - Use all-class-inherits for class or superclass with tags, in case it
      hasn't been cached already.
---
 idlwave.el | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/idlwave.el b/idlwave.el
index eb91b82f8c..1ae3e99b68 100644
--- a/idlwave.el
+++ b/idlwave.el
@@ -7,7 +7,7 @@
 ;;          Chris Chase <chase@att.com>
 ;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu>
 ;; Version: VERSIONTAG
-;; Date: $Date: 2006/05/10 18:14:07 $
+;; Date: $Date: 2006/08/22 05:11:48 $
 ;; Keywords: languages
 
 ;; This file is part of GNU Emacs.
@@ -1596,7 +1596,8 @@ Capitalize system variables - action only
 (define-key idlwave-mode-map "\C-c\C-t"   'idlwave-find-module-this-file)
 (define-key idlwave-mode-map "\C-c?"      'idlwave-routine-info)
 (define-key idlwave-mode-map "\M-?"       'idlwave-context-help)
-(define-key idlwave-mode-map [(control meta ?\?)] 'idlwave-online-help)
+(define-key idlwave-mode-map [(control meta ?\?)] 
+  'idlwave-help-assistant-help-with-topic)
 ;; Pickup both forms of Esc/Meta binding
 (define-key idlwave-mode-map [(meta tab)] 'idlwave-complete)
 (define-key idlwave-mode-map [?\e?\t] 'idlwave-complete)
@@ -4894,19 +4895,14 @@ Cache to disk for quick recovery."
         (elem-cnt 0)
         props rinfo msg-cnt elem type nelem class-result alias 
         routines routine-aliases statement-aliases sysvar-aliases
-        buf version-string)
+        version-string)
     (if (not (file-exists-p catalog-file))
        (error "No such XML routine info file: %s" catalog-file)
       (if (not (file-readable-p catalog-file))
          (error "Cannot read XML routine info file: %s" catalog-file)))
     (require 'xml)
     (message "Reading XML routine info...")   
-    (unwind-protect
-       (progn
-         ;; avoid warnings about read-only files
-         (setq buf (find-file-noselect catalog-file 'nowarn))
-         (setq rinfo (xml-parse-file catalog-file)))
-      (if (bufferp buf) (kill-buffer buf)))
+    (setq rinfo (xml-parse-file catalog-file))
     (message "Reading XML routine info...done")
     (setq rinfo (assq 'CATALOG rinfo))
     (unless rinfo (error "Failed to parse XML routine info"))
@@ -7715,7 +7711,7 @@ property indicating the link is added."
      ((eq mode 'set)
       (if entry 
          (setq link 
-               (if (setq target (cdr (assoc word tags)))
+               (if (setq target (cdr (assoc-ignore-case word tags)))
                  (idlwave-substitute-link-target main target)
                main)))) ;; setting dynamic!!!
      (t (error "This should not happen")))))
@@ -7764,8 +7760,7 @@ property indicating the link is added."
 (defun idlwave-class-or-superclass-with-tag (class tag)
   "Find and return the CLASS or one of its superclass with the
 associated TAG, if any."
-  (let ((sclasses (cons class (cdr (assq 'all-inherits 
-                                        (idlwave-class-info class)))))
+  (let ((sclasses (cons class (idlwave-all-class-inherits class)))
        cl)
    (catch 'exit
      (while sclasses
@@ -9233,6 +9228,8 @@ Assumes that point is at the beginning of the unit as 
found by
      "--"
      ["Info" idlwave-info t]
      "--"
+     ["Help with Topic" idlwave-help-assistant-help-with-topic 
+      idlwave-help-use-assistant]
      ["Launch IDL Help" idlwave-launch-idlhelp t])))
 
 (defvar idlwave-mode-debug-menu-def



reply via email to

[Prev in Thread] Current Thread [Next in Thread]