add machine-readable copyright and license information
See https://reuse.software/ for a description.
Merge request reports
Activity
changed milestone to %DUNE 2.9.0
Vim only looks at the first line? That is pretty limiting...
For the emacs setting, I would like to remove them and instead have one ".dirlocals.el" per module. I haven't found an equivalent for vim without extensions, but there are extensions like editorconfig that work with several editors (but requires non-standard extensions for common editors like emacs or vim).
Eh, I think I misunderstood that: vim checks the first five and last five lines.
But for file-local variables emacs only checks the first line and second line if the first is an interpreter (i.e., starts with "#!"):
In shell scripts, the first line is used to identify the script interpreter, so you cannot put any local variables there. To accommodate this, Emacs looks for local variable specifications in the second line if the first line specifies an interpreter. The same is true for man pages which start with the magic string ‘'\"’ to specify a list of troff preprocessors (not all do, however).
So we can either:
- use editorconfig for emacs, vim and others
- use .dirlocals.el for emacs, per-file modeline for vim
- move editor config top end of file
- change order to: emacs mode, vim mode, copyright
mentioned in commit bca0f2bf
As I understood the comment, it was a general concern about using non-legacy encodings. I think if there's any problem with using UTF-8, that's a bug that should be fixed (especially for just using it in a comment); depending on the issue one could also revert to using legacy constructs like "(C)" at that time.
This approach would maybe be ok, if this fix was just for the master. But if this issue comes up and this change is already in the release, it will be difficult to just fix that. So the safe option would be to use (C), in my opinion. Especially since it really does not matter whether it's (C) or that special sign.
I'm also in favor of changing it to
(C)
.While, theoretically, it should be fine to use UFT-8 characters in comments, there is no benefit and in the interaction of the many tools we are using it could very well be that one still has a bug. Why should we make our live possibly more difficult, just because of a single character?
While, theoretically, it should be fine to use UFT-8 characters in comments
We already did that before this change in almost all file types. I'm not sure there are any new ones besides "dune.module" where it indeed triggered a bug (which as said on the mailing list should be fixed pending someone who can do so deploying the change).
Do you propose to remove all those?
Edited by Ansgar BurchardtThe decision to only change the symbol in the release 2.9 branch to
(C)
and leave it in the master branch as UTF-8 symbol (I don't know how to type it on the keyboard) was a bit unfortunate. It makes all currently active merge request complicated and in the end leaves the release branch in an inconsistent state. We cannot merge into master, then manually change all the symbols, create a new merge request, and merge into the release - the cherry-picking does not work directly anymore - at least I don't know how to do it properly.I understood the proposal above so that we simple change the comment in all branches to the same, a pure
(C)
characters text.Any suggestions how to proceed? Or any info how to make the merge requests into master and into release and have them consistent?
mentioned in merge request !206 (merged)