+2004-01-06 Steve Youngs <sryoungs@bigpond.net.au>
+
+ * messagexmas.el (message-xmas-redefine): Alias
+ `message-make-caesar-translation-table' to
+ ``message-xmas-make-caesar-translation-table' regardless of XEmacs
+ version.
+
+ * gnus-xmas.el (gnus-xmas-set-text-properties): Removed.
+ (gnus-xmas-define): Don't alias `gnus-set-text-properties' to
+ `gnus-xmas-set-text-properties'.
+ (gnus-xmas-redefine): Don't alias `gnus-completing-read' to
+ `gnus-xmas-completing-read'.
+ (gnus-xmas-completing-read): Removed.
+ (gnus-xmas-open-network-stream): Removed.
+
+ * gnus-ems.el (gnus-mode-line-modified): Don't conditionalise on
+ XEmacs version.
+
+ * dns.el (dns-make-network-process): Use `open-network-stream'
+ instead of `gnus-xmas-open-network-stream'.
+
+ * dgnushack.el: Remove some XEmacs 21.1 specific stuff.
+
+ * .cvsignore: Add auto-autoloads.el, custom-load.el.
+
2004-01-06 Jesper Harder <harder@ifa.au.dk>
* gnus-art.el (gnus-mime-display-alternative)
(defvar standard-display-table)
(defvar gnus-tree-minimize-window)
-(defun gnus-xmas-set-text-properties (start end props &optional buffer)
- "You should NEVER use this function. It is ideologically blasphemous.
-It is provided only to ease porting of broken FSF Emacs programs."
- (if (stringp buffer)
- nil
- (map-extents (lambda (extent ignored)
- (remove-text-properties
- start end
- (list (extent-property extent 'text-prop) nil)
- buffer)
- nil)
- buffer start end nil nil 'text-prop)
- (gnus-add-text-properties start end props buffer)))
-
(defun gnus-xmas-highlight-selected-summary ()
;; Highlight selected article in summary buffer
(when gnus-summary-selected-face
(defalias 'gnus-window-edges 'window-pixel-edges)
(defalias 'gnus-assq-delete-all 'gnus-xmas-assq-delete-all)
- (if (and (<= emacs-major-version 19)
- (< emacs-minor-version 14))
- (defalias 'gnus-set-text-properties 'gnus-xmas-set-text-properties))
-
(unless (boundp 'standard-display-table)
(setq standard-display-table nil))
(defalias 'gnus-create-image 'gnus-xmas-create-image)
(defalias 'gnus-remove-image 'gnus-xmas-remove-image)
- (when (or (< emacs-major-version 21)
- (and (= emacs-major-version 21)
- (< emacs-minor-version 3)))
- (defalias 'gnus-completing-read 'gnus-xmas-completing-read))
-
;; These ones are not defcutom'ed, sometimes not even defvar'ed. They
;; probably should. If that is done, the code below should then be moved
;; where each variable is defined, in order not to mess with user settings.
nil)
nil nil nil nil nil 'gnus-image category))
-(defun gnus-xmas-completing-read (prompt table &optional
- predicate require-match history)
- (when (and history
- (not (boundp history)))
- (set history nil))
- (completing-read
- (if (symbol-value history)
- (concat prompt " (" (car (symbol-value history)) "): ")
- (concat prompt ": "))
- table
- predicate
- require-match
- nil
- history))
-
-;; This macro is because XEmacs versions prior to 21.2 do not have the
-;; PROTOCOL argument to `open-network-stream'.
-(defmacro gnus-xmas-open-network-stream (name buffer host service &optional protocol)
- "Like `open-network-stream' but take into account older XEmacs versions."
- (if (and (featurep 'xemacs)
- (fboundp 'open-network-stream)
- (emacs-version>= 21 2))
- `(open-network-stream ,name ,buffer ,host ,service ,protocol)
- `(open-network-stream ,name ,buffer ,host ,service)))
-
(defun gnus-xmas-assq-delete-all (key alist)
(let ((elem nil))
(while (setq elem (assq key alist))
'message-xmas-exchange-point-and-mark)
(defalias 'message-mark-active-p
'region-exists-p)
- (when (>= emacs-major-version 20)
- (defalias 'message-make-caesar-translation-table
- 'message-xmas-make-caesar-translation-table))
+ (defalias 'message-make-caesar-translation-table
+ 'message-xmas-make-caesar-translation-table)
(defalias 'message-make-overlay 'make-extent)
(defalias 'message-delete-overlay 'delete-extent)
(defalias 'message-overlay-put 'set-extent-property))