Function: edt-lowercase
edt-lowercase is an interactive and byte-compiled function defined in
edt.el.gz.
Signature
(edt-lowercase)
Documentation
Change specified characters to lower case.
If text selection IS active, then characters between the cursor and mark are changed. If text selection is NOT active, there are two situations. If the current direction is ADVANCE, then the word under the cursor is changed to lower case and the cursor is moved to rest at the beginning of the next word. If the current direction is BACKUP, the word prior to the word under the cursor is changed to lower case and the cursor is left to rest at the beginning of that word.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/edt.el.gz
;;;
;;; DOWNCASE REGION
;;;
(defun edt-lowercase ()
"Change specified characters to lower case.
If text selection IS active, then characters between the cursor and
mark are changed. If text selection is NOT active, there are two
situations. If the current direction is ADVANCE, then the word under
the cursor is changed to lower case and the cursor is moved to rest at
the beginning of the next word. If the current direction is BACKUP,
the word prior to the word under the cursor is changed to lower case
and the cursor is left to rest at the beginning of that word."
(interactive "*")
(if edt-select-mode
(progn
(downcase-region (mark) (point)))
(progn
;; Move to beginning of current word.
(if (and
(not (bobp))
(not (eobp))
(not (bolp))
(not (eolp))
(not (eq ?\ (char-syntax (preceding-char))))
(not (memq (preceding-char) edt-word-entities))
(not (memq (following-char) edt-word-entities)))
(edt-one-word-backward))
(if (equal edt-direction-string edt-backward-string)
(edt-one-word-backward))
(let ((beg (point)))
(edt-one-word-forward)
(downcase-region beg (point)))
(if (equal edt-direction-string edt-backward-string)
(edt-one-word-backward)))))