On Fri, 24 Mar 2023, Sam James wrote:
I'm slightly confused. What repository is this intended for?
gentoo.git.
[[PGP Signed Part:Undecided]]
On Fri, 24 Mar 2023, Sam James wrote:
This allows conveniently editing ebuilds and eclasses in editors which don't >> have a specific ebuild mode like Emacs and Vim do.
I'm slightly confused. What repository is this intended for?
[[End of PGP Signed Part]]
On Fri, 24 Mar 2023, Sam James wrote:
This allows conveniently editing ebuilds and eclasses in editors which don't have a specific ebuild mode like Emacs and Vim do.
[[PGP Signed Part:Undecided]]
On Fri, 24 Mar 2023, Sam James wrote:
I'm slightly confused. What repository is this intended for?
gentoo.git.
Then it looks wrong, conceptually. Or would it be o.k. if I committed ebuild-mode.el to the top-level directory of the Gentoo repository?
Seriously, these are generic settings which rather belong in the
user's configuration. For example, who would use anything else than
LF on Unix, or anything other than UTF-8 in 2023?
Ulrich
[[End of PGP Signed Part]]
On Fri, 24 Mar 2023, Sam James wrote:
The idea is to make other editors less-hostile when they don't have
a dedicated mode (like I said in the commit message). The specific
reason for doing this is because it's editor agnostic.
This allows conveniently editing ebuilds and eclasses in editors which don't have a specific ebuild mode like Emacs and Vim do.
For example, kde-apps/kate with kde-frameworks/ktexteditor[editorconfig] can automatically read this file and adjust settings appropriately.
It's possible that going forward we may want to have pkgdev support custom keys in this file for e.g. copyright year mangling too.
[[PGP Signed Part:Undecided]]
On Fri, 24 Mar 2023, Sam James wrote:
The idea is to make other editors less-hostile when they don't have
a dedicated mode (like I said in the commit message). The specific
reason for doing this is because it's editor agnostic.
But is it? Emacs and Vim don't seem to natively support it. Nor does
any of the Micro-Emacsen (like mg or Zile). Does Nano, at least?
Ulrich
[[End of PGP Signed Part]]
On Fri, 24 Mar 2023, Sam James wrote:
I'm slightly confused. What repository is this intended for?
gentoo.git.
Then it looks wrong, conceptually. Or would it be o.k. if I committed ebuild-mode.el to the top-level directory of the Gentoo repository?
On Fri, 24 Mar 2023, Florian Schmaus wrote:
Then it looks wrong, conceptually. Or would it be o.k. if I committed
ebuild-mode.el to the top-level directory of the Gentoo repository?
I do not think the comparison with ebuild-mode.el is sound:
ebuild-mode.el appears imperative, while .editorconfig is declarative. Furthermore, and more importantly, ebulid-mode.el is (more or less) editor-specific, while .editorconfig is editor agnostic.
That said, given how coupled ebuild-mode is with gentoo.git, I
personally would not mind if it where managed in the same repository.
[...]
In any case, I am a fan of .editorconfig. Hence +1 from me for adding
it to gentoo.git.
[[PGP Signed Part:Undecided]]
On Fri, 24 Mar 2023, Florian Schmaus wrote:
Then it looks wrong, conceptually. Or would it be o.k. if I committed
ebuild-mode.el to the top-level directory of the Gentoo repository?
I do not think the comparison with ebuild-mode.el is sound:
ebuild-mode.el appears imperative, while .editorconfig is declarative.
Furthermore, and more importantly, ebulid-mode.el is (more or less)
editor-specific, while .editorconfig is editor agnostic.
Sorry, a better example for Emacs would have been .dir-locals.el in
the top-level directory.
That said, given how coupled ebuild-mode is with gentoo.git, I
personally would not mind if it where managed in the same repository.
[...]
That's not going to happen, because it simply doesn't belong there
(and neither does any other editor configuration IMHO).
In any case, I am a fan of .editorconfig. Hence +1 from me for adding
it to gentoo.git.
But what does it do, effectively? Apart from the common-sense settings (utf-8, no trailing whitespace, etc.) which should be the default for
every editor, the only setting specific to ebuilds is to enable tabs.
Then again, it doesn't even say that they represent 4 spaces.
Ulrich
[[End of PGP Signed Part]]
But what does it do, effectively? Apart from the common-sense*should*. And just because it's the default doesn't mean a user can't
settings (utf-8, no trailing whitespace, etc.) which should be the
default for every editor,
the only setting specific to ebuilds is to enable tabs.Which I'd consider important, since I get the feeling that many people
Then again, it doesn't even say that they represent 4 spaces.Is that really important? I don't think we should force a tab width
On Fri, 24 Mar 2023, Adrian Schollmeyer wrote:
Then again, it doesn't even say that they represent 4 spaces.
Is that really important? I don't think we should force a tab width
for the user if we don't have a good reason to do so. The good thing
about tabs is that the user can set the tab width to their liking. If
we enforce a tab width, that would essentially undermine that one big advantage over spaces.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 89:45:54 |
Calls: | 6,697 |
Calls today: | 2 |
Files: | 12,232 |
Messages: | 5,348,420 |