aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helpful.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index b7f23f4..62b3782 100644
--- a/helpful.el
+++ b/helpful.el
@@ -1248,7 +1248,8 @@ If the source code cannot be found, return the sexp used."
(forward-char)
(narrow-to-region pos (point)))
;; Narrow to the top-level definition.
- (narrow-to-defun t))
+ (let ((parse-sexp-ignore-comments t))
+ (narrow-to-defun t)))
;; If there was a preceding comment, POS will be
;; after that comment. Move the position to include that comment.