[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r113052: * newcomment.el (comment-search-forward, co
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] trunk r113052: * newcomment.el (comment-search-forward, comment-search-backward): Doc fix. |
Date: |
Tue, 18 Jun 2013 17:58:00 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 113052
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2013-06-18 13:57:56 -0400
message:
* newcomment.el (comment-search-forward, comment-search-backward): Doc fix.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/newcomment.el
newcomment.el-20091113204419-o5vbwnq5f7feedwu-1719
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-06-18 11:17:50 +0000
+++ b/lisp/ChangeLog 2013-06-18 17:57:56 +0000
@@ -1,3 +1,8 @@
+2013-06-18 Glenn Morris <address@hidden>
+
+ * newcomment.el (comment-search-forward, comment-search-backward):
+ Doc fix. (Bug#14376)
+
2013-06-18 Juanma Barranquero <address@hidden>
* face-remap.el (buffer-face-toggle): Fix typo in docstring.
=== modified file 'lisp/newcomment.el'
--- a/lisp/newcomment.el 2013-06-07 11:48:28 +0000
+++ b/lisp/newcomment.el 2013-06-18 17:57:56 +0000
@@ -446,7 +446,9 @@
"Find a comment start between point and LIMIT.
Moves point to inside the comment and returns the position of the
comment-starter. If no comment is found, moves point to LIMIT
-and raises an error or returns nil if NOERROR is non-nil."
+and raises an error or returns nil if NOERROR is non-nil.
+
+Ensure that `comment-normalize-vars' has been called before you use this."
(if (not comment-use-syntax)
(if (re-search-forward comment-start-skip limit noerror)
(or (match-end 1) (match-beginning 0))
@@ -484,7 +486,9 @@
"Find a comment start between LIMIT and point.
Moves point to inside the comment and returns the position of the
comment-starter. If no comment is found, moves point to LIMIT
-and raises an error or returns nil if NOERROR is non-nil."
+and raises an error or returns nil if NOERROR is non-nil.
+
+Ensure that `comment-normalize-vars' has been called before you use this."
;; FIXME: If a comment-start appears inside a comment, we may erroneously
;; stop there. This can be rather bad in general, but since
;; comment-search-backward is only used to find the comment-column (in
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r113052: * newcomment.el (comment-search-forward, comment-search-backward): Doc fix.,
Glenn Morris <=