aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorgen Schaefer2016-10-22 13:07:32 +0200
committerJorgen Schaefer2016-10-22 13:07:32 +0200
commitd4a32c4d5955ac04c5017a43042d873e42b3ebec (patch)
tree8833495005806a4bc3296f698b580069227c7410
parentd45be6bc45a321b7fd934c20e382509f9daf3f49 (diff)
downloademacs-d4a32c4d5955ac04c5017a43042d873e42b3ebec.tar.gz
emacs-d4a32c4d5955ac04c5017a43042d873e42b3ebec.zip
Autoload all commands from misc.el
Only two of the commands there were autoloaded, one of which is an easter egg. * lisp/miscl.el (copy-from-above-command): * lisp/miscl.el (zap-up-to-char): * lisp/miscl.el (mark-beginning-of-buffer): * lisp/miscl.el (mark-end-of-buffer): * lisp/miscl.el (upcase-char): * lisp/miscl.el (forward-to-word): * lisp/miscl.el (backward-to-word): Add autoload cookie.
-rw-r--r--lisp/misc.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/misc.el b/lisp/misc.el
index 5fc3e7d0fa1..3a739775973 100644
--- a/lisp/misc.el
+++ b/lisp/misc.el
@@ -28,6 +28,7 @@
28(eval-when-compile 28(eval-when-compile
29 (require 'tabulated-list)) 29 (require 'tabulated-list))
30 30
31;;;###autoload
31(defun copy-from-above-command (&optional arg) 32(defun copy-from-above-command (&optional arg)
32 "Copy characters from previous nonblank line, starting just above point. 33 "Copy characters from previous nonblank line, starting just above point.
33Copy ARG characters, but not past the end of that line. 34Copy ARG characters, but not past the end of that line.
@@ -62,6 +63,7 @@ The characters copied are inserted in the buffer before point."
62 63
63;; Variation of `zap-to-char'. 64;; Variation of `zap-to-char'.
64 65
66;;;###autoload
65(defun zap-up-to-char (arg char) 67(defun zap-up-to-char (arg char)
66 "Kill up to, but not including ARGth occurrence of CHAR. 68 "Kill up to, but not including ARGth occurrence of CHAR.
67Case is ignored if `case-fold-search' is non-nil in the current buffer. 69Case is ignored if `case-fold-search' is non-nil in the current buffer.
@@ -80,22 +82,26 @@ Ignores CHAR at point."
80;; These were added with an eye to making possible a more CCA-compatible 82;; These were added with an eye to making possible a more CCA-compatible
81;; command set; but that turned out not to be interesting. 83;; command set; but that turned out not to be interesting.
82 84
85;;;###autoload
83(defun mark-beginning-of-buffer () 86(defun mark-beginning-of-buffer ()
84 "Set mark at the beginning of the buffer." 87 "Set mark at the beginning of the buffer."
85 (interactive) 88 (interactive)
86 (push-mark (point-min))) 89 (push-mark (point-min)))
87 90
91;;;###autoload
88(defun mark-end-of-buffer () 92(defun mark-end-of-buffer ()
89 "Set mark at the end of the buffer." 93 "Set mark at the end of the buffer."
90 (interactive) 94 (interactive)
91 (push-mark (point-max))) 95 (push-mark (point-max)))
92 96
97;;;###autoload
93(defun upcase-char (arg) 98(defun upcase-char (arg)
94 "Uppercasify ARG chars starting from point. Point doesn't move." 99 "Uppercasify ARG chars starting from point. Point doesn't move."
95 (interactive "p") 100 (interactive "p")
96 (save-excursion 101 (save-excursion
97 (upcase-region (point) (progn (forward-char arg) (point))))) 102 (upcase-region (point) (progn (forward-char arg) (point)))))
98 103
104;;;###autoload
99(defun forward-to-word (arg) 105(defun forward-to-word (arg)
100 "Move forward until encountering the beginning of a word. 106 "Move forward until encountering the beginning of a word.
101With argument, do this that many times." 107With argument, do this that many times."
@@ -103,6 +109,7 @@ With argument, do this that many times."
103 (or (re-search-forward (if (> arg 0) "\\W\\b" "\\b\\W") nil t arg) 109 (or (re-search-forward (if (> arg 0) "\\W\\b" "\\b\\W") nil t arg)
104 (goto-char (if (> arg 0) (point-max) (point-min))))) 110 (goto-char (if (> arg 0) (point-max) (point-min)))))
105 111
112;;;###autoload
106(defun backward-to-word (arg) 113(defun backward-to-word (arg)
107 "Move backward until encountering the end of a word. 114 "Move backward until encountering the end of a word.
108With argument, do this that many times." 115With argument, do this that many times."