aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2017-08-31 21:40:33 +0100
committerWilfred Hughes <me@wilfred.me.uk>2017-08-31 21:41:17 +0100
commit4cb2d1e32b16bb51cbe6e686c6955f6715bd000c (patch)
treee7aa2e8ee99d2655c6ce3c2fd54270e189f437ee
parent4b2c3f4e7a9fb41fe424fe89e46580d5f7751d69 (diff)
Format docstring consistently, even if text-quoting-style is set
Fixes #17
-rw-r--r--helpful.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index dac3b1c..f7dbb0e 100644
--- a/helpful.el
+++ b/helpful.el
@@ -652,7 +652,8 @@ For example, \"(some-func FOO &optional BAR)\"."
;; TODO: Info mentions, e.g. `define-derived-mode' or `defface'.
(defun helpful--docstring (sym callable-p)
"Get the docstring for SYM."
- (let (docstring)
+ (let ((text-quoting-style 'grave)
+ docstring)
(if callable-p
(progn
(setq docstring (documentation sym))