helpful

a fork of Wilfred's helpful
git clone https://git.trogloxene.org/helpful.git
Log | Files | Refs | README

commit 72e93276fc0032e434f2acf62d8d63d51557e55b
parent 28bae3e2bd64c6b89c1607c7b1235b306fa7220b
Author: Wilfred Hughes <me@wilfred.me.uk>
Date:   Sun,  3 Mar 2019 22:32:39 +0000

Set comment-start inside helpful buffers

Diffstat:
MCHANGELOG.md | 3+++
Mhelpful.el | 5++++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git 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. diff --git a/helpful.el b/helpful.el @@ -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