[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 1fdd7a0 4/7: Make XEmacs compat alias obsolete in allout-widgets.
From: |
Stefan Kangas |
Subject: |
master 1fdd7a0 4/7: Make XEmacs compat alias obsolete in allout-widgets.el |
Date: |
Mon, 1 Feb 2021 08:01:19 -0500 (EST) |
branch: master
commit 1fdd7a0a3aacd9792b9368ad9d750ef253e29165
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Make XEmacs compat alias obsolete in allout-widgets.el
* lisp/allout-widgets.el (allout-frame-property): Redefine compat
alias as obsolete function alias for 'frame-parameter'.
(allout-fetch-icon-image): Update caller.
---
lisp/allout-widgets.el | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/lisp/allout-widgets.el b/lisp/allout-widgets.el
index 7dcf368..f251be8 100644
--- a/lisp/allout-widgets.el
+++ b/lisp/allout-widgets.el
@@ -2231,7 +2231,7 @@ interactive command."
We use a caching strategy, so the caller doesn't need to do so."
(let* ((types allout-widgets-icon-types)
- (use-dir (if (equal (allout-frame-property nil 'background-mode)
+ (use-dir (if (equal (frame-parameter nil 'background-mode)
'light)
allout-widgets-icons-light-subdir
allout-widgets-icons-dark-subdir))
@@ -2262,13 +2262,6 @@ We use a caching strategy, so the caller doesn't need to
do so."
"Return seconds between START/END time values."
(let ((elapsed (time-subtract end start)))
(float-time elapsed)))
-;;;_ > allout-frame-property (frame property)
-(defalias 'allout-frame-property
- (cond ((fboundp 'frame-parameter)
- 'frame-parameter)
- ((fboundp 'frame-property)
- 'frame-property)
- (t nil)))
;;;_ > allout-find-image (specs)
(define-obsolete-function-alias 'allout-find-image #'find-image "28.1")
;;;_ > allout-widgets-copy-list (list)
@@ -2295,6 +2288,8 @@ The elements of LIST are not copied, just the list
structure itself."
(overlays-in start end)))))
(length button-overlays)))
+(define-obsolete-function-alias 'allout-frame-property #'frame-parameter
"28.1")
+
;;;_ : provide
(provide 'allout-widgets)
- master updated (a6be184 -> 3b708f4), Stefan Kangas, 2021/02/01
- master f215332 1/7: Add cross-references to defvar-local, Stefan Kangas, 2021/02/01
- master 7de495a 2/7: Make two eshell aliases obsolete, Stefan Kangas, 2021/02/01
- master c322728 3/7: Redefine two functions as regular defuns, Stefan Kangas, 2021/02/01
- master 9785c6d 5/7: * lisp/hi-lock.el (hi-lock-mode): Doc fix; don't mention Emacs 21., Stefan Kangas, 2021/02/01
- master 3b708f4 7/7: * test/src/minibuf-tests.el (test-inhibit-interaction): Fix test., Stefan Kangas, 2021/02/01
- master d987ca6 6/7: Remove another variable obsolete since Emacs 23.2, Stefan Kangas, 2021/02/01
- master 1fdd7a0 4/7: Make XEmacs compat alias obsolete in allout-widgets.el,
Stefan Kangas <=