GNU bug report logs -
#32457
26.1.50; automatically set indent-tabs-mode from .gitattributes
Previous Next
Reported by: Tom Tromey <tom <at> tromey.com>
Date: Thu, 16 Aug 2018 16:52:02 UTC
Severity: wishlist
Tags: wontfix
Found in version 26.1.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 32457 <at> debbugs.gnu.org (full text, mbox):
Tom Tromey <tom <at> tromey.com> writes:
> git can be configured to complain about indenting with tabs
> by using "whitespace=tab-in-indent" in .gitattributes.
>
> It would be nice if Emacs automatically detected this and set
> indent-tabs-mode to nil.
>
> git attributes can be queried using "git check-attr", for instance:
>
> $ git check-attr whitespace -- src/librustc_codegen_llvm/debuginfo/metadata.rs
> src/librustc_codegen_llvm/debuginfo/metadata.rs: whitespace: tab-in-indent,trailing-space,tabwidth=4
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
I don't think this would be an appropriate feature for Emacs core -- it
would be too surprising if Emacs was setting `indent-tabs-mode' based on
external factors like this (and I'm sure there's a lot of other hints it
could be taking from other VCs).
It does sound like it could be a useful ELPA package, though, but I'm
closing this wishlist item in the Emacs bug tracker.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 41 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.