New answers tagged

3

This can be done using advice on hs-make-overlay: (defun my-c-comment-end-skip-backward (pos) (cond ((and (eq (char-before pos) ?/) (eq (char-before (- pos 1)) ?*)) (- pos 2)) (t pos))) (defun my-c-comment-hs-make-overlay-advice-fn (old-fn b e kind &optional b-ofs e-ofs) (when (and (eq kind 'comment) ;; Check ...


5

That is NOT a comment: that's the doc string of the function. The doc string of the function is what you get when you ask for help on the function: C-h f org-before-change-function will show some information about the function plus its doc string: org-before-change-function is a Lisp closure in ‘org.el’. (org-before-change-function BEG END) Every change ...


Top 50 recent answers are included