Closed galeo closed 3 years ago
An empty LICENSE file has no comment syntax, so it's expected. It's mainly used in those modes derived from prog-mode
Should this error be handled? Or prompt that it is unavailable in current mode?
Yes, thanks for advice.
It should be fixed in 20e48f3b439ff2bfd24b6f68bcb8bf802b1f40e3
Thanks.
I stumbled over this as well, found this issue, upgraded and now I get an actionable explanation. That's great!
However, if I call comment-or-uncomment-region
(which also needs comment-start
to be set) I get an option to set the comment syntax.
Maybe a call to (comment-normalize-vars)
instead of the (spdx--ensure-comment-syntax-defined)
defun would be even better? :)
Good tips
Thanks for this convenient package. When try to call
spdx-insert-spdx
in an emptyLICENSE
file, it would lead towrong-type-argument
error. Here is the backtrace log: