Open j-cr opened 4 years ago
A related question, why separedit doesn't use comment-region
functionality instead of hard-coding every major mode possible?
@j-cr Can you provide more detail or a minimal configuration to reproduce the issue?
Or you can run the following script to confirm the issue:
test-separedit-clojure-comments.el
@a13 I don't know how to use comment-region
to remove/restore various styles of comment delimiters, for example:
/* comment
comment */
/*
* comment
*/
/**
* comment
*/
//!
//! comment
//!
//
// comment
//
@twlz0ne I'm not sure I understand; probably I haven't expressed myself well enough, sorry for that.
separedit-comment-delimiter-alist
includes: ((";+") (emacs-lisp-mode lisp-interaction-mode common-lisp racket-mode scheme-mode))
, but not clojure-mode
. My suggestion is to add it to this list.
I don't know how to use comment-region to remove/restore various styles of comment delimiters
You can use the default one, unless the rules are defined, reinventing a wheel is not the best strategy
As for docs - check comment-start, comment-end, comment-start-skip vars, as well as comment-region docs
Since clojure is a lisp, it uses exactly the same comment format as other lisps. Thus it would be nice if this packaged worked with clojure-mode out of the box.