diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2020-09-17 23:35:58 -0700 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2020-09-17 23:36:56 -0700 |
| commit | b0e937fff71dc0a5d34066bfd25310e76f284621 (patch) | |
| tree | 5492f095ff4268801dcd55641a90f4cfd1728ee9 /helpful.el | |
| parent | c0662aa07266fe204f4e6d72ccaa6af089400556 (diff) | |
Fix docstring extraction in Emacs 27
Fixes #248
Diffstat (limited to 'helpful.el')
| -rw-r--r-- | helpful.el | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2391,7 +2391,10 @@ state of the current symbol." "Remove mentions of advice from DOCSTRING." (let* ((lines (s-lines docstring)) (relevant-lines - (--drop-while (s-starts-with-p ":around advice:" it) lines))) + (--drop-while + (or (s-starts-with-p ":around advice:" it) + (s-starts-with-p "This function has :around advice:" it)) + lines))) (s-trim (s-join "\n" relevant-lines)))) (defun helpful--format-argument (arg) |
