aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-19 23:25:56 +0200
committerLars Ingebrigtsen2019-06-19 23:25:56 +0200
commitf6ab713bbc3dc8fccf5fe490615aa2b679071010 (patch)
tree420bdf1e942c5def1814f98951b9575c42996827
parentdd2bc89f0a11b80202483a416bb592f101077526 (diff)
downloademacs-f6ab713bbc3dc8fccf5fe490615aa2b679071010.tar.gz
emacs-f6ab713bbc3dc8fccf5fe490615aa2b679071010.zip
Remove XEmacs and ancient Emacs compatibility from newst-backend.el
* lisp/net/newst-backend.el: Remove compatibility with XEmacs and ancient Emacs versions.
-rw-r--r--lisp/net/newst-backend.el39
1 files changed, 0 insertions, 39 deletions
diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el
index 9925a045754..e356a0ece55 100644
--- a/lisp/net/newst-backend.el
+++ b/lisp/net/newst-backend.el
@@ -435,40 +435,6 @@ buffers *newsticker-wget-<feed>* will not be closed."
435 :group 'newsticker-miscellaneous) 435 :group 'newsticker-miscellaneous)
436 436
437;; ====================================================================== 437;; ======================================================================
438;;; Compatibility section, XEmacs, Emacs
439;; ======================================================================
440
441;; FIXME It is bad practice to define compat functions with such generic names.
442
443(unless (fboundp 'match-string-no-properties)
444 (defalias 'match-string-no-properties 'match-string))
445
446(when (featurep 'xemacs)
447 (unless (fboundp 'replace-regexp-in-string)
448 (defun replace-regexp-in-string (re rp st)
449 (save-match-data ;; apparently XEmacs needs save-match-data
450 (replace-in-string st re rp)))))
451
452;; copied from subr.el
453(unless (fboundp 'add-to-invisibility-spec)
454 (defun add-to-invisibility-spec (arg)
455 "Add elements to `buffer-invisibility-spec'.
456See documentation for `buffer-invisibility-spec' for the kind of elements
457that can be added."
458 (if (eq buffer-invisibility-spec t)
459 (setq buffer-invisibility-spec (list t)))
460 (setq buffer-invisibility-spec
461 (cons arg buffer-invisibility-spec))))
462
463;; copied from subr.el
464(unless (fboundp 'remove-from-invisibility-spec)
465 (defun remove-from-invisibility-spec (arg)
466 "Remove elements from `buffer-invisibility-spec'."
467 (if (consp buffer-invisibility-spec)
468 (setq buffer-invisibility-spec
469 (delete arg buffer-invisibility-spec)))))
470
471;; ======================================================================
472;;; Internal variables 438;;; Internal variables
473;; ====================================================================== 439;; ======================================================================
474(defvar newsticker--buffer-uptodate-p nil 440(defvar newsticker--buffer-uptodate-p nil
@@ -591,11 +557,6 @@ name/timer pair to `newsticker--retrieval-timer-list'."
591 ;; do not repeat retrieval if interval not positive 557 ;; do not repeat retrieval if interval not positive
592 (if (<= interval 0) 558 (if (<= interval 0)
593 (setq interval nil)) 559 (setq interval nil))
594 ;; Suddenly XEmacs doesn't like start-time 0
595 (if (or (not start-time)
596 (and (numberp start-time) (= start-time 0)))
597 (setq start-time 1))
598 ;; (message "start-time %s" start-time)
599 (setq timer (run-at-time start-time interval 560 (setq timer (run-at-time start-time interval
600 'newsticker-get-news feed-name)) 561 'newsticker-get-news feed-name))
601 (if interval 562 (if interval