New answers tagged

1

This can be done, although Emacs doesn't seem to provide useful info about multi-line comment ends, so it needs a hard coded check for */. (defun my-end-of-comment () (interactive) (let ((state (syntax-ppss)) (point-init (point))) ;; We may be at the comment start, which isn't considered a comment. (unless (nth 4 state) (save-...


Top 50 recent answers are included