Mercurial > emacs
annotate lisp/unused.el @ 667:ded061ae23c8
*** empty log message ***
author | Noah Friedman <friedman@splode.com> |
---|---|
date | Sun, 31 May 1992 21:09:48 +0000 |
parents | fec3f9a1e3e5 |
children | 9c89fd7ddd41 |
rev | line source |
---|---|
657
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1
diff
changeset
|
1 ;;; unused.el --- editing commands in GNU Emacs that turned out not to be used. |
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1
diff
changeset
|
2 |
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1
diff
changeset
|
3 ;; These were added with an eye to making possible a more CCA-compatible |
1 | 4 ;; command set; but that turned out not to be interesting. |
5 | |
6 (defun mark-beginning-of-buffer () | |
7 "Set mark at the beginning of the buffer." | |
8 (interactive) | |
9 (push-mark (point-min))) | |
10 | |
11 (defun mark-end-of-buffer () | |
12 "Set mark at the end of the buffer." | |
13 (interactive) | |
14 (push-mark (point-max))) | |
15 | |
16 (defun upcase-char (arg) | |
17 "Uppercasify ARG chars starting from point. Point doesn't move" | |
18 (interactive "p") | |
19 (save-excursion | |
20 (upcase-region (point) (progn (forward-char arg) (point))))) | |
21 | |
22 (defun forward-to-word (arg) | |
23 "Move forward until encountering the beginning of a word. | |
24 With argument, do this that many times." | |
25 (interactive "p") | |
26 (or (re-search-forward (if (> arg 0) "\\W\\b" "\\b\\W") nil t arg) | |
27 (goto-char (if (> arg 0) (point-max) (point-min))))) | |
28 | |
29 (defun backward-to-word (arg) | |
30 "Move backward until encountering the end of a word. | |
31 With argument, do this that many times." | |
32 (interactive "p") | |
33 (forward-to-word (- arg))) | |
657
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1
diff
changeset
|
34 |
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1
diff
changeset
|
35 ;;; unused.el ends here |