diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-11 20:41:23 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-11 21:04:12 +0200 |
commit | a19e9ab834d51832c0936cbad56f6b3746a5c4f2 (patch) | |
tree | fd8b171f13bfe1d5d28596923862cd6dab54be2a | |
parent | 86a326d2d8f526f2113e5c46da9c3dadf5260a3c (diff) | |
download | emacs-a19e9ab834d51832c0936cbad56f6b3746a5c4f2.tar.gz |
Minor idlwave clean up
* lisp/progmodes/idlw-shell.el (idlwave-shell-mouse-examine)
(idlwave-shell-print): Adjust callers.
* lisp/progmodes/idlwave.el (idlwave-region-active-p): Make into
obsolete alias.
-rw-r--r-- | lisp/progmodes/idlw-shell.el | 4 | ||||
-rw-r--r-- | lisp/progmodes/idlwave.el | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el index 6770fbe8abc..f875915ca8e 100644 --- a/lisp/progmodes/idlw-shell.el +++ b/lisp/progmodes/idlw-shell.el @@ -2745,7 +2745,7 @@ Runs to the last statement and then steps 1 statement. Use the .out command." ;; event. mouse-drag-track does so. (if drag-track 'mouse-drag-track 'mouse-drag-region))) (funcall tracker event) - (idlwave-shell-print (if (idlwave-region-active-p) '(4) nil) + (idlwave-shell-print (if (region-active-p) '(4) nil) ,help ,ev)))) ;; Begin terrible hack section -- XEmacs tests for button2 explicitly @@ -2830,7 +2830,7 @@ from `idlwave-shell-examine-alist' via mini-buffer shortcut key." (cond ((equal arg '(16)) (setq expr (read-string "Expression: "))) - ((and (or arg (idlwave-region-active-p)) + ((and (or arg (region-active-p)) (< (- (region-end) (region-beginning)) 2000)) (setq beg (region-beginning) end (region-end))) diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index 3092d4c45b0..f4eb2be8cc4 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el @@ -2092,11 +2092,7 @@ Returns point if comment found and nil otherwise." (backward-char 1) (point))))) -(defun idlwave-region-active-p () - "Should we operate on an active region?" - (if (fboundp 'use-region-p) - (use-region-p) - (region-active-p))) +(define-obsolete-function-alias 'idlwave-region-active-p 'use-region-p "28.1") (defun idlwave-show-matching-quote () "Insert quote and show matching quote if this is end of a string." |