[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/idlwave 3bfd198521 301/360: Remove the IDL Assistant wh
From: |
ELPA Syncer |
Subject: |
[elpa] externals/idlwave 3bfd198521 301/360: Remove the IDL Assistant which last worked in IDL 6.3 |
Date: |
Sun, 28 Apr 2024 00:59:35 -0400 (EDT) |
branch: externals/idlwave
commit 3bfd19852178db8cac6731d84bdbd565d3bec284
Author: JD Smith <jdtsmith@gmail.com>
Commit: JD Smith <jdtsmith@gmail.com>
Remove the IDL Assistant which last worked in IDL 6.3
---
idlw-help.el | 121 ++---------------------------------------------------------
1 file changed, 4 insertions(+), 117 deletions(-)
diff --git a/idlw-help.el b/idlw-help.el
index 4e5551cb03..3f1163d900 100644
--- a/idlw-help.el
+++ b/idlw-help.el
@@ -77,11 +77,6 @@ OBSOLETE (see idlwave-html-system-help-location)."
(defvar idlwave-help-use-hh nil
"Obsolete variable.")
-(defcustom idlwave-help-use-assistant t
- "Whether to use the IDL Assistant as the help browser (<IDL v6.4)."
- :group 'idlwave-online-help
- :type 'boolean)
-
(defcustom idlwave-help-browser-function browse-url-browser-function
"Function to use to display html help.
Defaults to `browse-url-browser-function', which see."
@@ -798,18 +793,12 @@ see if a link is set for it. Try extra help functions if
necessary."
(file-directory-p help-loc)))
(error "Invalid help request"))
- (if (not (or idlwave-help-use-eclipse-help
- idlwave-help-use-assistant))
- (setq
- full-link (browse-url-file-url (expand-file-name link help-loc))))
+ (setq full-link (browse-url-file-url (expand-file-name link help-loc)))
;; Select the browser
(cond
(idlwave-help-use-eclipse-help
(idlwave-help-eclipse-help-open-link link))
-
- (idlwave-help-use-assistant
- (idlwave-help-assistant-open-link link))
((or idlwave-help-browser-is-local
(string-match "w3" (symbol-name idlwave-help-browser-function)))
@@ -1269,14 +1258,12 @@ Useful when source code is displayed as help. See the
option
(defvar idlwave-help-use-eclipse-help nil)
(defun idlwave-help-check-locations ()
- ;; Check help locations and assistant.
+ ;; Check help locations, etc.
(if (not (file-directory-p (idlwave-sys-dir)))
(message "IDL system directory not found: try setting
`idlwave-system-directory' or IDL_DIR."))
- ;; see if we have the assistant or eclipse (or nothing)
- (setq idlwave-help-use-assistant
- (file-executable-p (idlwave-help-assistant-command))
- idlwave-help-use-eclipse-help
+ ;; see if we have eclipse (or nothing)
+ (setq idlwave-help-use-eclipse-help
(and (file-executable-p (idlwave-help-eclipse-help-command))
(file-exists-p (expand-file-name "idl_catalog.xml"
(expand-file-name
@@ -1316,106 +1303,6 @@ the idlhelp script.")
(call-process command nil 0 nil "-command" "shutdown")))
-;;----- Control the IDL Assistant, which shipped with IDL v6.2
-(defvar idlwave-help-assistant-process nil)
-(defvar idlwave-help-assistant-socket nil)
-
-;; The Windows version does not have a !DIR/bin/* set of front-end
-;; scripts, but instead only links directly to bin.x86. As a result,
-;; we must pass the -profile argument as well.
-(defvar idlwave-help-assistant-command
- (if (memq system-type '(ms-dos windows-nt))
- "bin/bin.x86/idl_assistant.exe"
- "bin/idl_assistant")
- "The command, rooted at idlwave-system-directory, which invokes the
-IDL assistant.")
-
-(defun idlwave-help-assistant-command ()
- (expand-file-name idlwave-help-assistant-command (idlwave-sys-dir)))
-
-(defun idlwave-help-assistant-start (&optional full-link)
- "Start the IDL Assistant, loading link FULL-LINK, if passed."
- (when (or (not idlwave-help-assistant-socket)
- (not (eq (process-status idlwave-help-assistant-socket) 'open)))
- (let* ((help-loc (idlwave-html-help-location))
- (command (idlwave-help-assistant-command))
- (extra-args
- (nconc
- (if (memq system-type '(ms-dos windows-nt))
- `("-profile" ,(expand-file-name "idl.adp" help-loc)))
- (if full-link `("-file" ,full-link))))
- port)
- (if idlwave-help-assistant-socket
- (delete-process idlwave-help-assistant-socket))
-
- (setq idlwave-help-assistant-process
- (apply 'start-process
- "IDL_ASSISTANT_PROC" nil command "-server" extra-args))
-
- (set-process-filter idlwave-help-assistant-process
- (lambda (proc string)
- (setq port (string-to-number string))))
- (unless (accept-process-output idlwave-help-assistant-process 15)
- (error "Failed binding IDL_ASSISTANT socket"))
- (if (not port)
- (error "Unable to open IDL_ASSISTANT")
- (set-process-filter idlwave-help-assistant-process nil)
- (setq idlwave-help-assistant-socket
- (open-network-stream "IDL_ASSISTANT_SOCK"
- nil "localhost" port))
- (if (eq (process-status idlwave-help-assistant-socket) 'open)
- (progn
- (process-send-string idlwave-help-assistant-socket
- (concat "setHelpPath " help-loc "\n"))
- t)
- (idlwave-help-assistant-close)
- (error "Cannot communicate with IDL_ASSISTANT"))))))
-
-(defun idlwave-help-assistant-raise ()
- (idlwave-help-assistant-start)
- (process-send-string idlwave-help-assistant-socket "raise\n"))
-
-(defun idlwave-help-assistant-open-link (&optional link)
- ;; Open a link (file name with anchor, no leading path) in the assistant.
- (let ((help-loc (idlwave-html-help-location))
- topic anchor file just-started exists full-link)
-
- (if (string-match "\.html" link)
- (setq topic (substring link 0 (match-beginning 0))
- anchor (substring link (match-end 0)))
- (error "Malformed help link"))
-
- (setq file (expand-file-name (concat topic ".html") help-loc))
- (if (file-exists-p file)
- (setq exists t)
- (setq file (expand-file-name
- (concat (upcase topic) ".html") help-loc))
- (setq exists (file-exists-p file)))
-
- (setq full-link (concat file anchor)
- just-started (idlwave-help-assistant-start (if exists full-link)))
- (if exists
- (progn
- (if (not just-started)
- (process-send-string idlwave-help-assistant-socket
- (concat "openLink " full-link "\n")))
- (process-send-string idlwave-help-assistant-socket
- (concat "searchIndexNoOpen " topic "\n")))
- (process-send-string idlwave-help-assistant-socket
- (concat "searchIndexAndOpen " topic "\n"))))
- (idlwave-help-assistant-raise))
-
-(defun idlwave-help-assistant-close ()
- (when (and idlwave-help-assistant-process
- (eq (process-status idlwave-help-assistant-process) 'run))
- (when idlwave-help-assistant-socket
- (process-send-string idlwave-help-assistant-socket "quit\n")
- (delete-process idlwave-help-assistant-socket))
- (stop-process idlwave-help-assistant-process)
- (delete-process idlwave-help-assistant-process)
- (setq idlwave-help-assistant-socket nil
- idlwave-help-assistant-process nil)))
-
(provide 'idlw-help)
(provide 'idlwave-help)
- [elpa] externals/idlwave 09992879c0 150/360: - Added customized idlwave-shell-max-print-length, to limit examine, (continued)
- [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
- [elpa] externals/idlwave 3bfd198521 301/360: Remove the IDL Assistant which last worked in IDL 6.3,
ELPA Syncer <=
- [elpa] externals/idlwave 0ba5bd1c43 302/360: Don't color the fringe for electric debug., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 7262cf47e0 292/360: Assistant no longer needed/available., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 32529f8e09 331/360: Handle anchors in Alias.xml and alias sysvars, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave b742785c38 345/360: Update README, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 54efc774a7 298/360: idlwave-online-help: direct entry option, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 03e5f2e111 349/360: Update README.md, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave fb7634fdcf 333/360: Merge branch 'develop', ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 897d1b1713 358/360: docstring correction, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 84a78c0c3b 016/360: A few fixups. Put screenshots in., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 97d702b6d1 020/360: A small change., ELPA Syncer, 2024/04/28