[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/idlwave 733a5729ac 305/360: Remove vestigial XEmacs and
From: |
ELPA Syncer |
Subject: |
[elpa] externals/idlwave 733a5729ac 305/360: Remove vestigial XEmacs and other unnecessary code |
Date: |
Sun, 28 Apr 2024 00:59:36 -0400 (EDT) |
branch: externals/idlwave
commit 733a5729acd4e2adc4c468b7ac4996bc67cd6860
Author: JD Smith <jdtsmith@gmail.com>
Commit: JD Smith <jdtsmith@gmail.com>
Remove vestigial XEmacs and other unnecessary code
---
idlw-complete-structtag.el | 6 +-----
idlw-help.el | 5 -----
idlw-shell.el | 21 +++++++++------------
idlwave.el | 14 --------------
4 files changed, 10 insertions(+), 36 deletions(-)
diff --git a/idlw-complete-structtag.el b/idlw-complete-structtag.el
index e4b40fc08a..abfa4d03d2 100644
--- a/idlw-complete-structtag.el
+++ b/idlw-complete-structtag.el
@@ -111,7 +111,6 @@
(add-hook 'idlwave-update-rinfo-hook 'idlwave-structtag-reset)
;;; The main code follows below
-(defvar idlwave-completion-help-info)
(defun idlwave-complete-structure-tag ()
"Complete a structure tag.
This works by looking in the current file for a structure assignment to a
@@ -225,9 +224,6 @@ an up-to-date completion list."
;; Fake help in the source buffer for structure tags.
-;; kwd and name are global-variables here.
-(defvar name)
-(defvar kwd)
(defvar idlwave-help-do-struct-tag)
(defun idlwave-complete-structure-tag-help (mode word)
(cond
@@ -237,7 +233,7 @@ an up-to-date completion list."
(not (equal idlwave-current-tags-buffer
(get-buffer (idlwave-shell-buffer))))))
((eq mode 'set)
- (setq kwd word
+ (setq kwd word ;; dynamic var
idlwave-help-do-struct-tag idlwave-structtag-struct-location))
(t (error "This should not happen"))))
diff --git a/idlw-help.el b/idlw-help.el
index 61a2f5aa76..3fceccf205 100644
--- a/idlw-help.el
+++ b/idlw-help.el
@@ -52,11 +52,6 @@
"Face for highlighting links into IDLWAVE online help."
:group 'idlwave-online-help)
-(defvar idlwave-help-activate-links-aggressively nil
- "Obsolete variable.")
-
-(defvar idlwave-completion-help-info)
-
(defvar idlwave-help-frame nil
"The frame for display of IDL online help.")
(defvar idlwave-help-frame-width 102
diff --git a/idlw-shell.el b/idlw-shell.el
index 430108d713..0fa3e24d98 100644
--- a/idlw-shell.el
+++ b/idlw-shell.el
@@ -700,15 +700,16 @@ the directory stack.")
;; So who can display faces?
(when (or (featurep 'xemacs) ; XEmacs can do also ttys
(fboundp 'tty-defined-colors) ; Emacs 21 as well
- window-system) ; Window systems always
+ (display-graphic-p)) ; Window systems always
(progn
(setq idlwave-shell-stop-line-overlay (make-overlay 1 1))
(overlay-put idlwave-shell-stop-line-overlay
'face idlwave-shell-stop-line-face))))
(t
- ;; IDLWAVE may decide. Will use a face on window systems, arrow elsewhere
- (if window-system
+ ;; IDLWAVE may decide. Will use a face plus arrow on window systems,
+ ;; just arrow elsewhere
+ (if (display-graphic-p)
(progn
(setq idlwave-shell-stop-line-overlay (make-overlay 1 1))
(overlay-put idlwave-shell-stop-line-overlay
@@ -3841,10 +3842,8 @@ Existing overlays are recycled, in order to minimize
consumption."
(when use-glyph
(if old-buffers
(setq old-buffers (delq (current-buffer) old-buffers)))
- (if (fboundp 'set-specifier) ;; XEmacs
- (set-specifier left-margin-width (cons (current-buffer) 2))
- (if (< left-margin-width 2)
- (setq left-margin-width 2)))
+ (if (< left-margin-width 2)
+ (setq left-margin-width 2))
(let ((window (get-buffer-window (current-buffer) 0)))
(if window
(set-window-margins
@@ -3852,9 +3851,7 @@ Existing overlays are recycled, in order to minimize
consumption."
(if use-glyph
(while (setq buf (pop old-buffers))
(with-current-buffer buf
- (if (fboundp 'set-specifier) ;; XEmacs
- (set-specifier left-margin-width (cons (current-buffer) 0))
- (setq left-margin-width 0))
+ (setq left-margin-width 0)
(let ((window (get-buffer-window buf 0)))
(if window
(set-window-margins
@@ -3904,7 +3901,7 @@ only for glyphs)."
(overlay-put ov 'mouse-face 'highlight)
(overlay-put ov 'keymap idlwave-shell-debug-line-map))
(cond
- (window-system
+ ((display-graphic-p)
(if use-glyph
(let ((image-props (cdr (assq type idlwave-shell-bp-glyph)))
string)
@@ -4389,7 +4386,7 @@ Otherwise, just expand the file name."
(define-key idlwave-shell-mode-prefix-map k1 cmd))
(define-key idlwave-mode-prefix-map k1 cmd))
;; The debug modifier map
- (when (and mod window-system)
+ (when (and mod (display-graphic-p))
(if (char-or-string-p c2)
(setq k2 (vector (append mod-noshift
(list (if shift (upcase c2) c2)))))
diff --git a/idlwave.el b/idlwave.el
index f64de53ce2..f31f7b29ff 100644
--- a/idlwave.el
+++ b/idlwave.el
@@ -157,20 +157,6 @@
(require 'idlw-menus)
(require 'idlw-scan)
-;; For XEmacs
-(unless (fboundp 'line-beginning-position)
- (defalias 'line-beginning-position 'point-at-bol))
-(unless (fboundp 'line-end-position)
- (defalias 'line-end-position 'point-at-eol))
-(unless (fboundp 'char-valid-p)
- (defalias 'char-valid-p 'characterp))
-(unless (fboundp 'match-string-no-properties)
- (defalias 'match-string-no-properties 'match-string))
-
-(if (not (fboundp 'cancel-timer))
- (condition-case nil
- (require 'timer)
- (error nil)))
(declare-function idlwave-shell-get-path-info "idlw-shell")
(declare-function idlwave-shell-temp-file "idlw-shell")
- [elpa] externals/idlwave 2fc208f70b 276/360: Add support for IDL8's foreach control statement., (continued)
- [elpa] externals/idlwave 2fc208f70b 276/360: Add support for IDL8's foreach control statement., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave c27ec44f9d 261/360: Cleanup email addresses., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 8f7a8bbfd6 296/360: Remove vestigial IDL assistant reference., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 19c9d54b69 328/360: Better handling of htm[l] entries in XML info., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 3ee283529b 311/360: Convenience functions for routine entries, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 15993e1fdd 270/360: Allow breakpoints in files with spaces, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 8836a2135b 293/360: More uses of the name in routine syntax., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 0845470474 309/360: Include arrow on stop line always., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave e9431581ec 319/360: Update README., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 252d934b1e 316/360: Update version/routine count., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 733a5729ac 305/360: Remove vestigial XEmacs and other unnecessary code,
ELPA Syncer <=
- [elpa] externals/idlwave e2fdf17ef9 340/360: Handle simple links for sysvar tags, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave da4475c8c0 337/360: Avoid require recursion., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 5564106516 308/360: add autoloads, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 1e87b0f4c0 322/360: Don't use additional indentation by default with parens, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 08e8603218 353/360: Fix indentation, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave ee8628e6ad 351/360: bug#69171: Moving packages out of core to ELPA, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 853872b223 357/360: Leave # unencoded in idl.htm#real/path/to/file help link style, ELPA Syncer, 2024/04/28
- [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