mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
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.
This commit is contained in:
parent
86a326d2d8
commit
a19e9ab834
2 changed files with 3 additions and 7 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue