Function: idlwave-expand-region-abbrevs
idlwave-expand-region-abbrevs is an interactive and byte-compiled
function defined in idlwave.el.gz.
Signature
(idlwave-expand-region-abbrevs START END)
Documentation
Expand each abbrev occurrence in the region.
Calling from a program, arguments are START END.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/idlwave.el.gz
;; CJC 3/16/93
;; Interface to expand-region-abbrevs which did not work when the
;; abbrev hook associated with an abbrev moves point backwards
;; after abbrev expansion, e.g., as with the abbrev '.n'.
;; The original would enter an infinite loop in attempting to expand
;; .n (it would continually expand and unexpand the abbrev without expanding
;; because the point would keep going back to the beginning of the
;; abbrev instead of to the end of the abbrev). We now keep the
;; abbrev hook from moving backwards.
;;;
(defun idlwave-expand-region-abbrevs (start end)
"Expand each abbrev occurrence in the region.
Calling from a program, arguments are START END."
(interactive "r")
(save-excursion
(goto-char (min start end))
(let ((idlwave-show-block nil) ;Do not blink
(idlwave-abbrev-move nil)) ;Do not move
(expand-region-abbrevs start end 'noquery))))