diff options
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index 07d38dbdaa2..5910ebf3f28 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -1396,13 +1396,11 @@ If you use ada-xref.el: | |||
| 1396 | (progn (goto-char (symbol-value 'beg)) (forward-word -1) (point)) | 1396 | (progn (goto-char (symbol-value 'beg)) (forward-word -1) (point)) |
| 1397 | (goto-char aa-end))))) | 1397 | (goto-char aa-end))))) |
| 1398 | 1398 | ||
| 1399 | ;; transient-mark-mode and mark-active are not defined in XEmacs | ||
| 1400 | (defun ada-region-selected () | 1399 | (defun ada-region-selected () |
| 1401 | "Return t if a region has been selected by the user and is still active." | 1400 | "Should we operate on an active region?" |
| 1402 | (if (featurep 'xemacs) | 1401 | (if (fboundp 'use-region-p) |
| 1403 | (region-active-p) | 1402 | (use-region-p) |
| 1404 | (and transient-mark-mode mark-active))) | 1403 | (region-active-p))) |
| 1405 | |||
| 1406 | 1404 | ||
| 1407 | ;;----------------------------------------------------------------- | 1405 | ;;----------------------------------------------------------------- |
| 1408 | ;; auto-casing | 1406 | ;; auto-casing |