diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2019-03-03 22:32:39 +0000 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2019-03-03 22:32:39 +0000 |
| commit | 72e93276fc0032e434f2acf62d8d63d51557e55b (patch) | |
| tree | 3f82efbc41ea26bcb9daa8745e662f964b05997f | |
| parent | 28bae3e2bd64c6b89c1607c7b1235b306fa7220b (diff) | |
Set comment-start inside helpful buffers
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | helpful.el | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 82596f7..ecacc4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,9 @@ Fixed issues with functions that had more than one advice active. Added looking up C-style Lisp names. +Set `comment-start` inside helpful buffers, to fix external packages +relying on that variable. + # v0.15 Fixed a crash on formatting values. @@ -144,7 +144,10 @@ can make Helpful very slow.") (setq helpful--sym symbol) (setq helpful--callable-p callable-p) (setq helpful--start-buffer current-buffer) - (setq helpful--associated-buffer current-buffer)) + (setq helpful--associated-buffer current-buffer) + (if (helpful--primitive-p symbol callable-p) + (setq-local comment-start "//") + (setq-local comment-start ";"))) buf)) (defface helpful-heading |
