aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/newcomment.el8
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 30a59aa8912..023e11a9415 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-06-18 Glenn Morris <rgm@gnu.org>
2
3 * newcomment.el (comment-search-forward, comment-search-backward):
4 Doc fix. (Bug#14376)
5
12013-06-18 Juanma Barranquero <lekktu@gmail.com> 62013-06-18 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * face-remap.el (buffer-face-toggle): Fix typo in docstring. 8 * face-remap.el (buffer-face-toggle): Fix typo in docstring.
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index bcb5f721ae8..19a06bfe8e5 100644
--- a/lisp/newcomment.el
+++ b/lisp/newcomment.el
@@ -446,7 +446,9 @@ in strings will not confuse Emacs.")
446 "Find a comment start between point and LIMIT. 446 "Find a comment start between point and LIMIT.
447Moves point to inside the comment and returns the position of the 447Moves point to inside the comment and returns the position of the
448comment-starter. If no comment is found, moves point to LIMIT 448comment-starter. If no comment is found, moves point to LIMIT
449and raises an error or returns nil if NOERROR is non-nil." 449and raises an error or returns nil if NOERROR is non-nil.
450
451Ensure that `comment-normalize-vars' has been called before you use this."
450 (if (not comment-use-syntax) 452 (if (not comment-use-syntax)
451 (if (re-search-forward comment-start-skip limit noerror) 453 (if (re-search-forward comment-start-skip limit noerror)
452 (or (match-end 1) (match-beginning 0)) 454 (or (match-end 1) (match-beginning 0))
@@ -484,7 +486,9 @@ and raises an error or returns nil if NOERROR is non-nil."
484 "Find a comment start between LIMIT and point. 486 "Find a comment start between LIMIT and point.
485Moves point to inside the comment and returns the position of the 487Moves point to inside the comment and returns the position of the
486comment-starter. If no comment is found, moves point to LIMIT 488comment-starter. If no comment is found, moves point to LIMIT
487and raises an error or returns nil if NOERROR is non-nil." 489and raises an error or returns nil if NOERROR is non-nil.
490
491Ensure that `comment-normalize-vars' has been called before you use this."
488 ;; FIXME: If a comment-start appears inside a comment, we may erroneously 492 ;; FIXME: If a comment-start appears inside a comment, we may erroneously
489 ;; stop there. This can be rather bad in general, but since 493 ;; stop there. This can be rather bad in general, but since
490 ;; comment-search-backward is only used to find the comment-column (in 494 ;; comment-search-backward is only used to find the comment-column (in