1 ;;; unused.el --- editing commands in GNU Emacs that turned out not to be used.
4 ;; Keywords: emulations
8 ;; These were added with an eye to making possible a more CCA-compatible
9 ;; command set; but that turned out not to be interesting.
13 (defun mark-beginning-of-buffer ()
14 "Set mark at the beginning of the buffer."
16 (push-mark (point-min)))
18 (defun mark-end-of-buffer ()
19 "Set mark at the end of the buffer."
21 (push-mark (point-max)))
23 (defun upcase-char (arg)
24 "Uppercasify ARG chars starting from point. Point doesn't move"
27 (upcase-region (point) (progn (forward-char arg
) (point)))))
29 (defun forward-to-word (arg)
30 "Move forward until encountering the beginning of a word.
31 With argument, do this that many times."
33 (or (re-search-forward (if (> arg
0) "\\W\\b" "\\b\\W") nil t arg
)
34 (goto-char (if (> arg
0) (point-max) (point-min)))))
36 (defun backward-to-word (arg)
37 "Move backward until encountering the end of a word.
38 With argument, do this that many times."
40 (forward-to-word (- arg
)))
42 ;;; unused.el ends here