mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Remove compat code from gnus-uu and win
* lisp/gnus/gnus-util.el (gnus-image-type-available-p): Remove compat code. * lisp/gnus/gnus-uu.el (gnus-uu-tmp-dir): Remove compat code. * lisp/gnus/gnus-win.el (gnus-frames-on-display-list): Remove.
This commit is contained in:
parent
9efc29a2df
commit
ea03ab9662
3 changed files with 4 additions and 17 deletions
|
|
@ -1734,10 +1734,7 @@ lists of strings."
|
||||||
;;; Image functions.
|
;;; Image functions.
|
||||||
|
|
||||||
(defun gnus-image-type-available-p (type)
|
(defun gnus-image-type-available-p (type)
|
||||||
(and (fboundp 'image-type-available-p)
|
(and (display-images-p)
|
||||||
(if (fboundp 'display-images-p)
|
|
||||||
(display-images-p)
|
|
||||||
t)
|
|
||||||
(image-type-available-p type)))
|
(image-type-available-p type)))
|
||||||
|
|
||||||
(defun gnus-create-image (file &optional type data-p &rest props)
|
(defun gnus-create-image (file &optional type data-p &rest props)
|
||||||
|
|
|
||||||
|
|
@ -217,11 +217,8 @@ Note that this variable can be used in conjunction with the
|
||||||
|
|
||||||
;; Various variables users may set
|
;; Various variables users may set
|
||||||
|
|
||||||
(defcustom gnus-uu-tmp-dir
|
(defcustom gnus-uu-tmp-dir temporary-file-directory
|
||||||
(cond ((fboundp 'temp-directory) (temp-directory))
|
"Variable saying where gnus-uu is to do its work.
|
||||||
((boundp 'temporary-file-directory) temporary-file-directory)
|
|
||||||
("/tmp/"))
|
|
||||||
"*Variable saying where gnus-uu is to do its work.
|
|
||||||
Default is \"/tmp/\"."
|
Default is \"/tmp/\"."
|
||||||
:group 'gnus-extract
|
:group 'gnus-extract
|
||||||
:type 'directory)
|
:type 'directory)
|
||||||
|
|
|
||||||
|
|
@ -508,18 +508,11 @@ should have point."
|
||||||
(mapcar (lambda (b) (delete-windows-on b t))
|
(mapcar (lambda (b) (delete-windows-on b t))
|
||||||
(delq lowest-buf bufs)))))
|
(delq lowest-buf bufs)))))
|
||||||
|
|
||||||
(eval-and-compile
|
|
||||||
(cond
|
|
||||||
((fboundp 'frames-on-display-list)
|
|
||||||
(defalias 'gnus-frames-on-display-list 'frames-on-display-list))
|
|
||||||
(t
|
|
||||||
(defalias 'gnus-frames-on-display-list 'frame-list))))
|
|
||||||
|
|
||||||
(defun gnus-get-buffer-window (buffer &optional frame)
|
(defun gnus-get-buffer-window (buffer &optional frame)
|
||||||
(cond ((and (null gnus-use-frames-on-any-display)
|
(cond ((and (null gnus-use-frames-on-any-display)
|
||||||
(memq frame '(t 0 visible)))
|
(memq frame '(t 0 visible)))
|
||||||
(car
|
(car
|
||||||
(let ((frames (gnus-frames-on-display-list)))
|
(let ((frames (frames-on-display-list)))
|
||||||
(gnus-remove-if (lambda (win) (not (memq (window-frame win)
|
(gnus-remove-if (lambda (win) (not (memq (window-frame win)
|
||||||
frames)))
|
frames)))
|
||||||
(get-buffer-window-list buffer nil frame)))))
|
(get-buffer-window-list buffer nil frame)))))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue