]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove some compat code from idlwave.el
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Aug 2020 16:29:05 +0000 (18:29 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 12 Aug 2020 16:29:05 +0000 (18:29 +0200)
* lisp/progmodes/idlwave.el: Remove some checks for functions that
always exist.

lisp/progmodes/idlwave.el

index f4eb2be8cc4ea80ece870b2c69d1a00883e55a52..f7e53ec02d6649d302076480918217e1e0147001 100644 (file)
 (eval-when-compile (require 'cl-lib))
 (require 'idlw-help)
 
-;; 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")
 (declare-function idlwave-shell-is-running "idlw-shell")