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

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

[elpa] externals/idlwave 595045c953 226/360: Remove ".html" unless ancho


From: ELPA Syncer
Subject: [elpa] externals/idlwave 595045c953 226/360: Remove ".html" unless anchored, for IDL 7.0
Date: Sun, 28 Apr 2024 00:59:27 -0400 (EDT)

branch: externals/idlwave
commit 595045c953241662461de8425a3a9972411e748e
Author: JD Smith <jdtsmith@gmail.com>
Commit: JD Smith <jdtsmith@gmail.com>

    Remove ".html" unless anchored, for IDL 7.0
---
 idlw-help.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/idlw-help.el b/idlw-help.el
index efcf4c59c7..011194b834 100644
--- a/idlw-help.el
+++ b/idlw-help.el
@@ -1294,9 +1294,10 @@ the idlhelp script.")
 
 (defun idlwave-help-eclipse-help-open-link (&optional link)
   "Start IDL Eclipse-Help (if needed), loading link FULL-LINK, if passed."
-  (let ((command (idlwave-help-eclipse-help-command))
-       (extra-args (if link `("-topic" ,link))))
-    (apply 'call-process command nil 0 nil extra-args)))
+  (let ((command (idlwave-help-eclipse-help-command)))
+    (if (string-match "\.html$" link) ;; Strip HTML, unless anchored
+       (setq link (substring link 0 (match-beginning 0))))
+    (apply 'call-process command nil 0 nil (if link `("-topic" ,link)))))
   
 
 ;;----- Control the IDL Assistant, which shipped with IDL v6.2



reply via email to

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