diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2022-09-25 15:06:36 -0700 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2022-09-25 15:06:36 -0700 |
| commit | 3aa08da7a151f1928bf0e3d12fc2443b6485b6ef (patch) | |
| tree | 03f8957966a23b8d5d0fa81f7151131ce825ea10 | |
| parent | db1e15b3783c83d9781a546f37b900ad53576659 (diff) | |
Ignore comments when narrowing to defun
Closes #287
| -rw-r--r-- | helpful.el | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |
