aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-06-16 16:18:42 +0000
committerJuanma Barranquero2005-06-16 16:18:42 +0000
commitfd35a2566601c78bf34766716a78b9c4e6840c44 (patch)
tree16266081203c77b0d98d15b918967c40d118d2ac
parent2aa347239928f88f3d9c6ce7ee380d7c3b48dbae (diff)
downloademacs-fd35a2566601c78bf34766716a78b9c4e6840c44.tar.gz
emacs-fd35a2566601c78bf34766716a78b9c4e6840c44.zip
(c-awk-beginning-of-defun): Fix spelling in docstrings.
-rw-r--r--lisp/progmodes/cc-awk.el26
1 files changed, 13 insertions, 13 deletions
diff --git a/lisp/progmodes/cc-awk.el b/lisp/progmodes/cc-awk.el
index 419803a7ada..c7c1290604c 100644
--- a/lisp/progmodes/cc-awk.el
+++ b/lisp/progmodes/cc-awk.el
@@ -69,7 +69,7 @@
69 ;; / can delimit regexes or be a division operator. By default we assume 69 ;; / can delimit regexes or be a division operator. By default we assume
70 ;; that it is a division sign, and fix the regexp operator cases with 70 ;; that it is a division sign, and fix the regexp operator cases with
71 ;; `font-lock-syntactic-keywords'. 71 ;; `font-lock-syntactic-keywords'.
72 (modify-syntax-entry ?/ "." st) ; ACM 2002/4/27. 72 (modify-syntax-entry ?/ "." st) ; ACM 2002/4/27.
73 (modify-syntax-entry ?* "." st) 73 (modify-syntax-entry ?* "." st)
74 (modify-syntax-entry ?+ "." st) 74 (modify-syntax-entry ?+ "." st)
75 (modify-syntax-entry ?- "." st) 75 (modify-syntax-entry ?- "." st)
@@ -85,7 +85,7 @@
85 "Syntax table in use in AWK Mode buffers.") 85 "Syntax table in use in AWK Mode buffers.")
86 86
87;; ACM, 2002/5/29: 87;; ACM, 2002/5/29:
88;; 88;;
89;; The next section of code is about determining whether or not an AWK 89;; The next section of code is about determining whether or not an AWK
90;; statement is complete or not. We use this to indent the following line. 90;; statement is complete or not. We use this to indent the following line.
91;; The determination is pretty straightforward in C, where a statement ends 91;; The determination is pretty straightforward in C, where a statement ends
@@ -199,7 +199,7 @@
199 ;; Kludge: If c-backward-syntactic-ws gets stuck at a BOL, it is likely 199 ;; Kludge: If c-backward-syntactic-ws gets stuck at a BOL, it is likely
200 ;; that the previous line contains an unterminated string (without \). In 200 ;; that the previous line contains an unterminated string (without \). In
201 ;; this case, assume that the previous line's c-awk-NL-prop is a ;. 201 ;; this case, assume that the previous line's c-awk-NL-prop is a ;.
202 ;; 202 ;;
203 ;; POINT MUST BE AT THE START OF A LINE when calling this function. This 203 ;; POINT MUST BE AT THE START OF A LINE when calling this function. This
204 ;; is to ensure that the various backward-comment functions will work 204 ;; is to ensure that the various backward-comment functions will work
205 ;; properly. 205 ;; properly.
@@ -237,13 +237,13 @@
237 ;; Calculate and set the value of the c-awk-NL-prop on the immediately 237 ;; Calculate and set the value of the c-awk-NL-prop on the immediately
238 ;; preceding EOL. This may also involve doing the same for several 238 ;; preceding EOL. This may also involve doing the same for several
239 ;; preceding EOLs. 239 ;; preceding EOLs.
240 ;; 240 ;;
241 ;; NOTE that if the property was already set, we return it without 241 ;; NOTE that if the property was already set, we return it without
242 ;; recalculation. (This is by accident rather than design.) 242 ;; recalculation. (This is by accident rather than design.)
243 ;; 243 ;;
244 ;; Return the property which got set (or was already set) on the previous 244 ;; Return the property which got set (or was already set) on the previous
245 ;; line. Return nil if we hit BOB. 245 ;; line. Return nil if we hit BOB.
246 ;; 246 ;;
247 ;; See c-awk-after-if-for-while-condition-p for a description of DO-LIM. 247 ;; See c-awk-after-if-for-while-condition-p for a description of DO-LIM.
248 (save-excursion 248 (save-excursion
249 (save-match-data 249 (save-match-data
@@ -298,7 +298,7 @@
298 ;; if necessary. (As a special case, the property doesn't get set on an 298 ;; if necessary. (As a special case, the property doesn't get set on an
299 ;; empty line at EOB (there's no position to set the property on), but the 299 ;; empty line at EOB (there's no position to set the property on), but the
300 ;; function returns the property value an EOL would have got.) 300 ;; function returns the property value an EOL would have got.)
301 ;; 301 ;;
302 ;; See c-awk-after-if-for-while-condition-p for a description of DO-LIM. 302 ;; See c-awk-after-if-for-while-condition-p for a description of DO-LIM.
303 (save-excursion 303 (save-excursion
304 (let ((extra-nl nil)) 304 (let ((extra-nl nil))
@@ -339,7 +339,7 @@
339 (and (bolp) 339 (and (bolp)
340 (eq (c-awk-get-NL-prop-prev-line do-lim) ?\;))) 340 (eq (c-awk-get-NL-prop-prev-line do-lim) ?\;)))
341 341
342(defun c-awk-backward-syntactic-ws (&optional lim) 342(defun c-awk-backward-syntactic-ws (&optional lim)
343;; Skip backwards over awk-syntactic whitespace. This is whitespace 343;; Skip backwards over awk-syntactic whitespace. This is whitespace
344;; characters, comments, and NEWLINES WHICH AREN'T "VIRTUAL SEMICOLONS". For 344;; characters, comments, and NEWLINES WHICH AREN'T "VIRTUAL SEMICOLONS". For
345;; this function, a newline isn't a "virtual semicolon" if that line ends with 345;; this function, a newline isn't a "virtual semicolon" if that line ends with
@@ -431,7 +431,7 @@
431;; Go back to the start of the (apparent) current line (or the start of the 431;; Go back to the start of the (apparent) current line (or the start of the
432;; line containing POS), returning the buffer position of that point. I.e., 432;; line containing POS), returning the buffer position of that point. I.e.,
433;; go back to the last line which doesn't have an escaped EOL before it. 433;; go back to the last line which doesn't have an escaped EOL before it.
434;; 434;;
435;; This is guaranteed to be "safe" for syntactic analysis, i.e. outwith any 435;; This is guaranteed to be "safe" for syntactic analysis, i.e. outwith any
436;; comment, string or regexp. IT MAY WELL BE that this function should not be 436;; comment, string or regexp. IT MAY WELL BE that this function should not be
437;; executed on a narrowed buffer. 437;; executed on a narrowed buffer.
@@ -470,7 +470,7 @@
470;; Matches a newline, or the end of buffer. 470;; Matches a newline, or the end of buffer.
471 471
472;; "Space" regular expressions. 472;; "Space" regular expressions.
473(defconst c-awk-escaped-nl "\\\\[\n\r]") 473(defconst c-awk-escaped-nl "\\\\[\n\r]")
474;; Matches an escaped newline. 474;; Matches an escaped newline.
475(defconst c-awk-escaped-nls* (concat "\\(" c-awk-escaped-nl "\\)*")) 475(defconst c-awk-escaped-nls* (concat "\\(" c-awk-escaped-nl "\\)*"))
476;; Matches a possibly empty sequence of escaped newlines. Used in 476;; Matches a possibly empty sequence of escaped newlines. Used in
@@ -546,7 +546,7 @@
546;; Matches the inside of an AWK regexp (i.e. without the enclosing /s) 546;; Matches the inside of an AWK regexp (i.e. without the enclosing /s)
547(defconst c-awk-regexp-without-end-re 547(defconst c-awk-regexp-without-end-re
548 (concat "/" c-awk-regexp-innards-re)) 548 (concat "/" c-awk-regexp-innards-re))
549;; Matches an AWK regexp up to, but not including, any terminating /. 549;; Matches an AWK regexp up to, but not including, any terminating /.
550 550
551;; REGEXPS used for scanning an AWK buffer in order to decide IF A '/' IS A 551;; REGEXPS used for scanning an AWK buffer in order to decide IF A '/' IS A
552;; REGEXP OPENER OR A DIVISION SIGN. By "state" in the following is meant 552;; REGEXP OPENER OR A DIVISION SIGN. By "state" in the following is meant
@@ -714,7 +714,7 @@
714 (c-awk-syntax-tablify-string) 714 (c-awk-syntax-tablify-string)
715 (c-awk-syntax-tablify-/ anchor anchor-state-/div))) 715 (c-awk-syntax-tablify-/ anchor anchor-state-/div)))
716 716
717 ;; Skip any further "harmless" lines before the next tricky one. 717 ;; Skip any further "harmless" lines before the next tricky one.
718 (if (search-forward-regexp c-awk-harmless-lines+-here-re nil t) 718 (if (search-forward-regexp c-awk-harmless-lines+-here-re nil t)
719 (setq anchor-state-/div nil))) 719 (setq anchor-state-/div nil)))
720 nil)) 720 nil))
@@ -803,7 +803,7 @@ many times. Negative arg -N means move forward to Nth following beginning of
803defun. Returns t unless search stops due to beginning or end of buffer. 803defun. Returns t unless search stops due to beginning or end of buffer.
804 804
805By a \"defun\" is meant either a pattern-action pair or a function. The start 805By a \"defun\" is meant either a pattern-action pair or a function. The start
806of a defun is recognised as code starting at column zero which is neither a 806of a defun is recognized as code starting at column zero which is neither a
807closing brace nor a comment nor a continuation of the previous line. Unlike 807closing brace nor a comment nor a continuation of the previous line. Unlike
808in some other modes, having an opening brace at column 0 is neither necessary 808in some other modes, having an opening brace at column 0 is neither necessary
809nor helpful." 809nor helpful."