Mercurial > emacs
annotate lisp/unused.el @ 872:336ffe2bd537
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Sat, 25 Jul 1992 00:36:12 +0000 |
parents | 113281b361ec |
children | 7e4999005da1 |
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 |
773
9c89fd7ddd41
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
3 ;; Maintainer: FSF |
814
38b2499cb3e9
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
773
diff
changeset
|
4 ;; Keywords: emulations |
773
9c89fd7ddd41
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
5 |
9c89fd7ddd41
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
6 ;;; Commentary: |
9c89fd7ddd41
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
7 |
657
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1
diff
changeset
|
8 ;; These were added with an eye to making possible a more CCA-compatible |
1 | 9 ;; command set; but that turned out not to be interesting. |
10 | |
773
9c89fd7ddd41
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
11 ;;; Code: |
9c89fd7ddd41
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
657
diff
changeset
|
12 |
1 | 13 (defun mark-beginning-of-buffer () |
14 "Set mark at the beginning of the buffer." | |
15 (interactive) | |
16 (push-mark (point-min))) | |
17 | |
18 (defun mark-end-of-buffer () | |
19 "Set mark at the end of the buffer." | |
20 (interactive) | |
21 (push-mark (point-max))) | |
22 | |
23 (defun upcase-char (arg) | |
24 "Uppercasify ARG chars starting from point. Point doesn't move" | |
25 (interactive "p") | |
26 (save-excursion | |
27 (upcase-region (point) (progn (forward-char arg) (point))))) | |
28 | |
29 (defun forward-to-word (arg) | |
30 "Move forward until encountering the beginning of a word. | |
31 With argument, do this that many times." | |
32 (interactive "p") | |
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))))) | |
35 | |
36 (defun backward-to-word (arg) | |
37 "Move backward until encountering the end of a word. | |
38 With argument, do this that many times." | |
39 (interactive "p") | |
40 (forward-to-word (- arg))) | |
657
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1
diff
changeset
|
41 |
fec3f9a1e3e5
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1
diff
changeset
|
42 ;;; unused.el ends here |