aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-07-20 22:29:53 +0000
committerJuanma Barranquero2005-07-20 22:29:53 +0000
commitf33321adeab711ed506e863c8497458c09433b0a (patch)
tree190e6b523a958331a8e79424b3aa53507cd58059
parentbd7c852ac7f13c844f9d68902f889d9a6ef5383b (diff)
downloademacs-f33321adeab711ed506e863c8497458c09433b0a.tar.gz
emacs-f33321adeab711ed506e863c8497458c09433b0a.zip
(clone-indirect-buffer): Doc fix.
(fixup-whitespace, just-one-space, backward-delete-char-untabify, lambda): "?\ " -> "?\s". (next-error, next-error-highlight, next-error-highlight-no-select, next-error-last-buffer, next-error-buffer-p, next-error-find-buffer, next-error, previous-error, next-error-no-select, previous-error-no-select, open-line, split-line, minibuffer-prompt-width, kill-new, binary-overwrite-mode): Fix typos in docstrings. (set-fill-column): Fix typo in message.
-rw-r--r--lisp/ChangeLog24
-rw-r--r--lisp/simple.el50
2 files changed, 49 insertions, 25 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 23b675e7545..e4840d08283 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -72,6 +72,30 @@
72 (write-contents-hooks, write-file-hooks): 72 (write-contents-hooks, write-file-hooks):
73 Declare with `define-obsolete-variable-alias'. 73 Declare with `define-obsolete-variable-alias'.
74 74
75 * forms-d2.el (arch-rj): Fix typo in docstrings.
76 (arch-tocol): Likewise. "?\ " -> "?\s".
77
78 * frame.el (set-frame-font, cursor-in-non-selected-windows):
79 Fix typo in docstring.
80 (set-screen-width, set-screen-height): Delete redundant info in
81 doctrings.
82 (new-frame, screen-height, screen-width): Declare with
83 `define-obsolete-function-alias'.
84 (delete-frame-hook, blink-cursor): Declare with
85 `define-obsolete-variable-alias'.
86
87 * paths.el (prune-directory-list): Fix typos in docstring.
88
89 * pcvs-util.el (cvs-flags-query, cvs-strings->string)
90 (cvs-prefix-get): Fix typos in docstrings.
91
92 * ps-print.el (ps-extend-face-list, ps-extend-face)
93 (ps-print-background-image): Fix typos in docstrings.
94 (ps-default-fg, ps-default-bg): Doc fixes.
95
96 * s-region.el (s-region-bind): Doc fix.
97 (s-region-move-p1, s-region-move-p2): Fix typos in docstrings.
98
75 * textmodes/org.el (org-table-formula-substitute-names) 99 * textmodes/org.el (org-table-formula-substitute-names)
76 (org-table-get-vertical-vector): Doc fixes. 100 (org-table-get-vertical-vector): Doc fixes.
77 (org-table-recalculate): Remove unused argument to `message'. 101 (org-table-recalculate): Remove unused argument to `message'.
diff --git a/lisp/simple.el b/lisp/simple.el
index e0622aed690..9523bc6c28d 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -74,7 +74,7 @@ wait this many seconds after Emacs becomes idle before doing an update."
74;;; next-error support framework 74;;; next-error support framework
75 75
76(defgroup next-error nil 76(defgroup next-error nil
77 "next-error support framework." 77 "`next-error' support framework."
78 :group 'compilation 78 :group 'compilation
79 :version "22.1") 79 :version "22.1")
80 80
@@ -86,8 +86,8 @@ wait this many seconds after Emacs becomes idle before doing an update."
86 86
87(defcustom next-error-highlight 0.1 87(defcustom next-error-highlight 0.1
88 "*Highlighting of locations in selected source buffers. 88 "*Highlighting of locations in selected source buffers.
89If number, highlight the locus in next-error face for given time in seconds. 89If number, highlight the locus in `next-error' face for given time in seconds.
90If t, use persistent overlays fontified in next-error face. 90If t, use persistent overlays fontified in `next-error' face.
91If nil, don't highlight the locus in the source buffer. 91If nil, don't highlight the locus in the source buffer.
92If `fringe-arrow', indicate the locus by the fringe arrow." 92If `fringe-arrow', indicate the locus by the fringe arrow."
93 :type '(choice (number :tag "Delay") 93 :type '(choice (number :tag "Delay")
@@ -99,8 +99,8 @@ If `fringe-arrow', indicate the locus by the fringe arrow."
99 99
100(defcustom next-error-highlight-no-select 0.1 100(defcustom next-error-highlight-no-select 0.1
101 "*Highlighting of locations in non-selected source buffers. 101 "*Highlighting of locations in non-selected source buffers.
102If number, highlight the locus in next-error face for given time in seconds. 102If number, highlight the locus in `next-error' face for given time in seconds.
103If t, use persistent overlays fontified in next-error face. 103If t, use persistent overlays fontified in `next-error' face.
104If nil, don't highlight the locus in the source buffer. 104If nil, don't highlight the locus in the source buffer.
105If `fringe-arrow', indicate the locus by the fringe arrow." 105If `fringe-arrow', indicate the locus by the fringe arrow."
106 :type '(choice (number :tag "Delay") 106 :type '(choice (number :tag "Delay")
@@ -122,7 +122,7 @@ If `fringe-arrow', indicate the locus by the fringe arrow."
122(add-to-list 'overlay-arrow-variable-list 'next-error-overlay-arrow-position) 122(add-to-list 'overlay-arrow-variable-list 'next-error-overlay-arrow-position)
123 123
124(defvar next-error-last-buffer nil 124(defvar next-error-last-buffer nil
125 "The most recent next-error buffer. 125 "The most recent `next-error' buffer.
126A buffer becomes most recent when its compilation, grep, or 126A buffer becomes most recent when its compilation, grep, or
127similar mode is started, or when it is used with \\[next-error] 127similar mode is started, or when it is used with \\[next-error]
128or \\[compile-goto-error].") 128or \\[compile-goto-error].")
@@ -143,7 +143,7 @@ to navigate in it.")
143 &optional avoid-current 143 &optional avoid-current
144 extra-test-inclusive 144 extra-test-inclusive
145 extra-test-exclusive) 145 extra-test-exclusive)
146 "Test if BUFFER is a next-error capable buffer. 146 "Test if BUFFER is a `next-error' capable buffer.
147 147
148If AVOID-CURRENT is non-nil, treat the current buffer 148If AVOID-CURRENT is non-nil, treat the current buffer
149as an absolute last resort only. 149as an absolute last resort only.
@@ -170,7 +170,7 @@ that buffer is rejected."
170(defun next-error-find-buffer (&optional avoid-current 170(defun next-error-find-buffer (&optional avoid-current
171 extra-test-inclusive 171 extra-test-inclusive
172 extra-test-exclusive) 172 extra-test-exclusive)
173 "Return a next-error capable buffer. 173 "Return a `next-error' capable buffer.
174If AVOID-CURRENT is non-nil, treat the current buffer 174If AVOID-CURRENT is non-nil, treat the current buffer
175as an absolute last resort only. 175as an absolute last resort only.
176 176
@@ -223,7 +223,7 @@ that buffer is rejected."
223 (error "No next-error capable buffer found"))) 223 (error "No next-error capable buffer found")))
224 224
225(defun next-error (&optional arg reset) 225(defun next-error (&optional arg reset)
226 "Visit next next-error message and corresponding source code. 226 "Visit next `next-error' message and corresponding source code.
227 227
228If all the error messages parsed so far have been processed already, 228If all the error messages parsed so far have been processed already,
229the message buffer is checked for new ones. 229the message buffer is checked for new ones.
@@ -264,7 +264,7 @@ See variables `compilation-parse-errors-function' and
264(defalias 'next-match 'next-error) 264(defalias 'next-match 'next-error)
265 265
266(defun previous-error (&optional n) 266(defun previous-error (&optional n)
267 "Visit previous next-error message and corresponding source code. 267 "Visit previous `next-error' message and corresponding source code.
268 268
269Prefix arg N says how many error messages to move backwards (or 269Prefix arg N says how many error messages to move backwards (or
270forwards, if negative). 270forwards, if negative).
@@ -282,7 +282,7 @@ This operates on the output from the \\[compile] command, for instance."
282 (next-error n t)) 282 (next-error n t))
283 283
284(defun next-error-no-select (&optional n) 284(defun next-error-no-select (&optional n)
285 "Move point to the next error in the next-error buffer and highlight match. 285 "Move point to the next error in the `next-error' buffer and highlight match.
286Prefix arg N says how many error messages to move forwards (or 286Prefix arg N says how many error messages to move forwards (or
287backwards, if negative). 287backwards, if negative).
288Finds and highlights the source line like \\[next-error], but does not 288Finds and highlights the source line like \\[next-error], but does not
@@ -293,7 +293,7 @@ select the source buffer."
293 (pop-to-buffer next-error-last-buffer)) 293 (pop-to-buffer next-error-last-buffer))
294 294
295(defun previous-error-no-select (&optional n) 295(defun previous-error-no-select (&optional n)
296 "Move point to the previous error in the next-error buffer and highlight match. 296 "Move point to the previous error in the `next-error' buffer and highlight match.
297Prefix arg N says how many error messages to move backwards (or 297Prefix arg N says how many error messages to move backwards (or
298forwards, if negative). 298forwards, if negative).
299Finds and highlights the source line like \\[previous-error], but does not 299Finds and highlights the source line like \\[previous-error], but does not
@@ -426,8 +426,8 @@ than the value of `fill-column' and ARG is nil."
426 426
427(defun open-line (n) 427(defun open-line (n)
428 "Insert a newline and leave point before it. 428 "Insert a newline and leave point before it.
429If there is a fill prefix and/or a left-margin, insert them on the new line 429If there is a fill prefix and/or a `left-margin', insert them
430if the line would have been blank. 430on the new line if the line would have been blank.
431With arg N, insert N newlines." 431With arg N, insert N newlines."
432 (interactive "*p") 432 (interactive "*p")
433 (let* ((do-fill-prefix (and fill-prefix (bolp))) 433 (let* ((do-fill-prefix (and fill-prefix (bolp)))
@@ -449,7 +449,7 @@ With arg N, insert N newlines."
449(defun split-line (&optional arg) 449(defun split-line (&optional arg)
450 "Split current line, moving portion beyond point vertically down. 450 "Split current line, moving portion beyond point vertically down.
451If the current line starts with `fill-prefix', insert it on the new 451If the current line starts with `fill-prefix', insert it on the new
452line as well. With prefix ARG, don't insert fill-prefix on new line. 452line as well. With prefix ARG, don't insert `fill-prefix' on new line.
453 453
454When called from Lisp code, ARG may be a prefix string to copy." 454When called from Lisp code, ARG may be a prefix string to copy."
455 (interactive "*P") 455 (interactive "*P")
@@ -647,7 +647,7 @@ Leave one space or none, according to the context."
647 (save-excursion (forward-char -1) 647 (save-excursion (forward-char -1)
648 (looking-at "$\\|\\s(\\|\\s'"))) 648 (looking-at "$\\|\\s(\\|\\s'")))
649 nil 649 nil
650 (insert ?\ )))) 650 (insert ?\s))))
651 651
652(defun delete-horizontal-space (&optional backward-only) 652(defun delete-horizontal-space (&optional backward-only)
653 "Delete all spaces and tabs around point. 653 "Delete all spaces and tabs around point.
@@ -671,9 +671,9 @@ If BACKWARD-ONLY is non-nil, only delete spaces before point."
671 (skip-chars-backward " \t") 671 (skip-chars-backward " \t")
672 (constrain-to-field nil orig-pos) 672 (constrain-to-field nil orig-pos)
673 (dotimes (i (or n 1)) 673 (dotimes (i (or n 1))
674 (if (= (following-char) ?\ ) 674 (if (= (following-char) ?\s)
675 (forward-char 1) 675 (forward-char 1)
676 (insert ?\ ))) 676 (insert ?\s)))
677 (delete-region 677 (delete-region
678 (point) 678 (point)
679 (progn 679 (progn
@@ -1274,7 +1274,7 @@ by the new completion."
1274;; For compatibility with the old subr of the same name. 1274;; For compatibility with the old subr of the same name.
1275(defun minibuffer-prompt-width () 1275(defun minibuffer-prompt-width ()
1276 "Return the display width of the minibuffer prompt. 1276 "Return the display width of the minibuffer prompt.
1277Return 0 if current buffer is not a mini-buffer." 1277Return 0 if current buffer is not a minibuffer."
1278 ;; Return the width of everything before the field at the end of 1278 ;; Return the width of everything before the field at the end of
1279 ;; the buffer; this should be 0 for normal buffers. 1279 ;; the buffer; this should be 0 for normal buffers.
1280 (1- (minibuffer-prompt-end))) 1280 (1- (minibuffer-prompt-end)))
@@ -2345,7 +2345,7 @@ handler, if non-nil, is stored as a `yank-handler' text property on STRING).
2345 2345
2346When the yank handler has a non-nil PARAM element, the original STRING 2346When the yank handler has a non-nil PARAM element, the original STRING
2347argument is not used by `insert-for-yank'. However, since Lisp code 2347argument is not used by `insert-for-yank'. However, since Lisp code
2348may access and use elements from the kill-ring directly, the STRING 2348may access and use elements from the kill ring directly, the STRING
2349argument should still be a \"useful\" string for such uses." 2349argument should still be a \"useful\" string for such uses."
2350 (if (> (length string) 0) 2350 (if (> (length string) 0)
2351 (if yank-handler 2351 (if yank-handler
@@ -2684,7 +2684,7 @@ and KILLP is t if a prefix arg was specified."
2684 (let ((col (current-column))) 2684 (let ((col (current-column)))
2685 (forward-char -1) 2685 (forward-char -1)
2686 (setq col (- col (current-column))) 2686 (setq col (- col (current-column)))
2687 (insert-char ?\ col) 2687 (insert-char ?\s col)
2688 (delete-char 1))) 2688 (delete-char 1)))
2689 (forward-char -1) 2689 (forward-char -1)
2690 (setq count (1- count)))))) 2690 (setq count (1- count))))))
@@ -4075,7 +4075,7 @@ Just \\[universal-argument] as argument means to use the current column."
4075 (setq arg (current-column))) 4075 (setq arg (current-column)))
4076 (if (not (integerp arg)) 4076 (if (not (integerp arg))
4077 ;; Disallow missing argument; it's probably a typo for C-x C-f. 4077 ;; Disallow missing argument; it's probably a typo for C-x C-f.
4078 (error "Set-fill-column requires an explicit argument") 4078 (error "set-fill-column requires an explicit argument")
4079 (message "Fill column set to %d (was %d)" arg fill-column) 4079 (message "Fill column set to %d (was %d)" arg fill-column)
4080 (setq fill-column arg))) 4080 (setq fill-column arg)))
4081 4081
@@ -4155,7 +4155,7 @@ with the character typed.
4155typing characters do. 4155typing characters do.
4156 4156
4157Note that binary overwrite mode is not its own minor mode; it is a 4157Note that binary overwrite mode is not its own minor mode; it is a
4158specialization of overwrite-mode, entered by setting the 4158specialization of overwrite mode, entered by setting the
4159`overwrite-mode' variable to `overwrite-mode-binary'." 4159`overwrite-mode' variable to `overwrite-mode-binary'."
4160 (interactive "P") 4160 (interactive "P")
4161 (setq overwrite-mode 4161 (setq overwrite-mode
@@ -4999,7 +4999,7 @@ PREFIX is the string that represents this modifier in an event type symbol."
4999 (define-key function-key-map (vector keypad) (vector normal)))) 4999 (define-key function-key-map (vector keypad) (vector normal))))
5000 '((kp-0 ?0) (kp-1 ?1) (kp-2 ?2) (kp-3 ?3) (kp-4 ?4) 5000 '((kp-0 ?0) (kp-1 ?1) (kp-2 ?2) (kp-3 ?3) (kp-4 ?4)
5001 (kp-5 ?5) (kp-6 ?6) (kp-7 ?7) (kp-8 ?8) (kp-9 ?9) 5001 (kp-5 ?5) (kp-6 ?6) (kp-7 ?7) (kp-8 ?8) (kp-9 ?9)
5002 (kp-space ?\ ) 5002 (kp-space ?\s)
5003 (kp-tab ?\t) 5003 (kp-tab ?\t)
5004 (kp-enter ?\r) 5004 (kp-enter ?\r)
5005 (kp-multiply ?*) 5005 (kp-multiply ?*)
@@ -5140,7 +5140,7 @@ or by incrementing the N in an existing suffix.
5140DISPLAY-FLAG non-nil means show the new buffer with `pop-to-buffer'. 5140DISPLAY-FLAG non-nil means show the new buffer with `pop-to-buffer'.
5141This is always done when called interactively. 5141This is always done when called interactively.
5142 5142
5143Optional last arg NORECORD non-nil means do not put this buffer at the 5143Optional third arg NORECORD non-nil means do not put this buffer at the
5144front of the list of recently selected ones." 5144front of the list of recently selected ones."
5145 (interactive 5145 (interactive
5146 (progn 5146 (progn