[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 958fa07 6/8: Remove compat code from allout.el
From: |
Lars Ingebrigtsen |
Subject: |
master 958fa07 6/8: Remove compat code from allout.el |
Date: |
Tue, 11 Aug 2020 15:04:21 -0400 (EDT) |
branch: master
commit 958fa07879974721e86efe083840c2cb9f86d9d7
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Remove compat code from allout.el
* lisp/allout.el: (allout-process-exposed): Make
allout-region-active-p an obsolete alias, and adjust callers.
---
lisp/allout.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/lisp/allout.el b/lisp/allout.el
index 170d868..fad9a17 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -5448,11 +5448,9 @@ header and body. The elements of that list are:
(cdr format)))))))
;; Put the list with first at front, to last at back:
(nreverse result))))
-;;;_ > allout-region-active-p ()
-(defmacro allout-region-active-p ()
- (cond ((fboundp 'use-region-p) '(use-region-p))
- ((fboundp 'region-active-p) '(region-active-p))
- (t 'mark-active)))
+
+(define-obsolete-function-alias 'allout-region-active-p 'region-active-p
"28.1")
+
;;_ > allout-process-exposed (&optional func from to frombuf
;;; tobuf format)
(defun allout-process-exposed (&optional func from to frombuf tobuf
@@ -5485,7 +5483,7 @@ Defaults:
; defaulting if necessary:
(if (not func) (setq func 'allout-insert-listified))
(if (not (and from to))
- (if (allout-region-active-p)
+ (if (region-active-p)
(setq from (region-beginning) to (region-end))
(setq from (point-min) to (point-max))))
(if frombuf
- master updated (ccb5556 -> 4d00db5), Lars Ingebrigtsen, 2020/08/11
- master 86a326d 2/8: Slight gnus-util clean-up, Lars Ingebrigtsen, 2020/08/11
- master 672bfdb 1/8: Slight cleanup in calc-yank, Lars Ingebrigtsen, 2020/08/11
- master a19e9ab 3/8: Minor idlwave clean up, Lars Ingebrigtsen, 2020/08/11
- master 958fa07 6/8: Remove compat code from allout.el,
Lars Ingebrigtsen <=
- master 72c53fc 4/8: Slight allout.el clean-up, Lars Ingebrigtsen, 2020/08/11
- master 7bbfdce 5/8: Remove compat code in prolog.el, Lars Ingebrigtsen, 2020/08/11
- master 97c4d94 7/8: Remove compat code from esh-proc.el, Lars Ingebrigtsen, 2020/08/11
- master 4d00db5 8/8: Remove compat code from comint.el, Lars Ingebrigtsen, 2020/08/11
- Re: master updated (ccb5556 -> 4d00db5), Lars Ingebrigtsen, 2020/08/11