mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(ada-region-selected): Use `use-region-p'.
This commit is contained in:
parent
072aab30c9
commit
b63dc21e4f
1 changed files with 4 additions and 6 deletions
|
|
@ -1396,13 +1396,11 @@ If you use ada-xref.el:
|
|||
(progn (goto-char (symbol-value 'beg)) (forward-word -1) (point))
|
||||
(goto-char aa-end)))))
|
||||
|
||||
;; transient-mark-mode and mark-active are not defined in XEmacs
|
||||
(defun ada-region-selected ()
|
||||
"Return t if a region has been selected by the user and is still active."
|
||||
(if (featurep 'xemacs)
|
||||
(region-active-p)
|
||||
(and transient-mark-mode mark-active)))
|
||||
|
||||
"Should we operate on an active region?"
|
||||
(if (fboundp 'use-region-p)
|
||||
(use-region-p)
|
||||
(region-active-p)))
|
||||
|
||||
;;-----------------------------------------------------------------
|
||||
;; auto-casing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue