From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 16 12:51:30 2018 Received: (at submit) by debbugs.gnu.org; 16 Aug 2018 16:51:30 +0000 Received: from localhost ([127.0.0.1]:52769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fqLUf-0005s0-Vs for submit@debbugs.gnu.org; Thu, 16 Aug 2018 12:51:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fqLUc-0005rg-UG for submit@debbugs.gnu.org; Thu, 16 Aug 2018 12:51:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqLUQ-0004ql-3k for submit@debbugs.gnu.org; Thu, 16 Aug 2018 12:51:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49542) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fqLUP-0004qM-1S for submit@debbugs.gnu.org; Thu, 16 Aug 2018 12:51:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqLUN-0004YI-Lj for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2018 12:51:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqLUH-0004k7-2s for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2018 12:51:11 -0400 Received: from gateway23.websitewelcome.com ([192.185.50.250]:26673) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fqLUG-0004h4-Cs for bug-gnu-emacs@gnu.org; Thu, 16 Aug 2018 12:51:05 -0400 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 86D3A11454 for ; Thu, 16 Aug 2018 11:50:59 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id qLTuf02rMPvAdqLU2fzlkA; Thu, 16 Aug 2018 11:50:58 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nVcs4C2+/RNKflAOiBF5UdP2kV0Qjvg9tbNuvr/koqs=; b=ZeholoFtRvx8ZE+41jEBUp5KzN qlFnmBZYXO4qa9e6++mmoxDO1AMQdh8vYSlRpj48zqb1SqcQiWp69ZexY8XarjeQvss4A6d20lAsW lQP5O2Y4/T51Qc2iA4fW3IwMt; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:36966 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fqLTu-001z3v-1M; Thu, 16 Aug 2018 11:50:42 -0500 From: Tom Tromey To: bug-gnu-emacs@gnu.org Subject: 26.1.50; automatically set indent-tabs-mode from .gitattributes X-Attribution: Tom Date: Thu, 16 Aug 2018 10:50:40 -0600 Message-ID: <87zhxm8dcv.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.85.72 X-Source-L: No X-Exim-ID: 1fqLTu-001z3v-1M X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-85-72.hlrn.qwest.net (pokyo) [75.166.85.72]:36966 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) git can be configured to complain about indenting with tabs by using "whitespace=3Dtab-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=3D4 Tom In GNU Emacs 26.1.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-08-07 built on pokyo Repository revision: cd9032532d119b35685dc078b8156023122f6dcd Windowing system distributor 'Fedora Project', version 11.0.11906000 System Description: Fedora release 28 (Twenty Eight) Recent messages: Mark saved where search started Invoking man 1 git-config in the background 1 git-config man page formatted Mark saved where search started [3 times] Invoking man gitattributes in the background gitattributes man page formatted Mark saved where search started Invoking man 1 git-check-attr in the background 1 git-check-attr man page formatted ggtags-make-project: (error "=E2=80=98global=E2=80=99 non-zero exit: global= : /home/tromey/Rust/rust/GRTAGS seems corrupted.") Configured using: 'configure --prefix=3D/home/tromey/Emacs/install --with-modules' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Rust Minor modes in effect: erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-netsplit-mode: t erc-spelling-mode: t erc-truncate-mode: t ggtags-mode: t bug-reference-prog-mode: t diff-auto-refine-mode: t flyspell-mode: t shell-dirtrack-mode: t which-function-mode: t erc-track-mode: t erc-track-minor-mode: t erc-notify-mode: t erc-notifications-mode: t erc-match-mode: t erc-services-mode: t erc-networks-mode: t erc-hl-nicks-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t savehist-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: rust-do-auto-fill transient-mark-mode: t Load-path shadows: /home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Emacs/ins= tall/share/emacs/26.1.50/lisp/play/bubbles Features: (shadow emacsbug tabify man gnus-fun thai-util thai-word find-file log-edit markdown-mode noutline outline vc-annotate python tramp-sh sh-script smie executable eieio-opt speedbar sb-image ezimage dframe dxr js sgml-mode cl-print wgrep find-dired grep smerge-mode rust-mode term/xterm xterm log-view pcvs-util copyright pulse pcase whitespace goto-addr jka-compr gnus-html url-queue help-fns radix-tree url-cache mm-url erc-list erc-menu erc-join erc-ring erc-pcomplete erc-netsplit erc-spelling erc-truncate idutils dabbrev asm-mode add-log ggtags etags xref project compile bug-reference cc-mode cc-fonts cc-guess cc-menus cc-cmds url-http url url-proxy url-privacy url-history url-auth url-cookie url-domsuf url-gw url-expand url-methods mailalias bbdb-sc supercite regi mail-hist nnir shr-color shr svg dom browse-url qp bbdb-gui bbdb-hooks bbdb-rmail rmailsum vc-mtn vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs sort smiley gnus-cite flow-fill mm-archive gnus-async gnus-bcklg gnus-ml disp-table misearch multi-isearch gnus-topic nndraft nnmh nnfolder utf-7 bbdb-gnus bbdb-snarf mail-extr bbdb-com network-stream nsm starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap nntp gnus-cache gnus-sum gnus-group gnus-undo smtpmail sendmail gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr elec-pair flyspell ispell diminish appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time which-func imenu autorevert filenotify desktop frameset cus-start cus-load git-link url-util erc-track erc-notify erc-desktop-notifications erc-match erc-services erc-networks notifications dbus xml erc-hl-nicks easy-mmode color erc-button erc-fill erc-stamp wid-edit erc-goodies erc erc-backend erc-compat format-spec thingatpt pp dired-aux dired-x dired dired-loaddefs warnings advice vc-dir ewoc vc vc-dispatcher flycheck cl-extra json map find-func help-mode rx subr-x dash cc-styles cc-align cc-engine cc-vars cc-defs bbdb cl timezone ange-ftp comint ansi-color ring server savehist finder-inf bbdb-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1453366 216483) (symbols 48 111622 37) (miscs 40 27067 6968) (strings 32 386270 48381) (string-bytes 1 8566013) (vectors 16 145046) (vector-slots 8 2688470 145676) (floats 8 599 1046) (intervals 56 58879 2902) (buffers 992 149)) From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 08:18:21 2022 Received: (at 32457) by debbugs.gnu.org; 18 May 2022 12:18:21 +0000 Received: from localhost ([127.0.0.1]:59273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrIdB-00025K-75 for submit@debbugs.gnu.org; Wed, 18 May 2022 08:18:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrId9-000256-8x for 32457@debbugs.gnu.org; Wed, 18 May 2022 08:18:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VfDuct8HAH0UORSRRF7wQWBAY1DCh3idkxL8PGm4i2U=; b=jic30rwRucBt+yiPY3ujzKIJW8 uaoIQiIWChnRY4BllPIBAkbqDLXcqMJFWwEr8+81vj9seL+xyt0udEE2rBcRgO9ZwvcxvThIyjYWd c5LFNbLjoe4Gpn/EcdY68OcJo8yV3et7jhTl9M3Bj1vmQL2eWrItb3DuqbHyUTwrsBkA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrId0-00076j-GN; Wed, 18 May 2022 14:18:12 +0200 From: Lars Ingebrigtsen To: Tom Tromey Subject: Re: bug#32457: 26.1.50; automatically set indent-tabs-mode from .gitattributes References: <87zhxm8dcv.fsf@tromey.com> X-Now-Playing: Richard and Linda Thompson's _Hard Luck Stories (5): The Madness of Love: Live 1975 & 1977_: "A Bird In Gods Garden (Live At The Theatre Royal, London 01.05.1977)" Date: Wed, 18 May 2022 14:18:09 +0200 In-Reply-To: <87zhxm8dcv.fsf@tromey.com> (Tom Tromey's message of "Thu, 16 Aug 2018 10:50:40 -0600") Message-ID: <87tu9nc9vi.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tom Tromey 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-m [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32457 Cc: 32457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Tom Tromey 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 From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 08:18:24 2022 Received: (at control) by debbugs.gnu.org; 18 May 2022 12:18:24 +0000 Received: from localhost ([127.0.0.1]:59276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrIdE-00025a-EB for submit@debbugs.gnu.org; Wed, 18 May 2022 08:18:24 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrIdD-00025B-4W for control@debbugs.gnu.org; Wed, 18 May 2022 08:18:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=56efn15eCbd58QTmCFuwzPTHsdh3DggjlMqirgNT3VM=; b=e2kQ6KftgY/MU/Tifz8shEld7h wLKJWYmGMtd4GAa9keNHKFiZHmVFz7pctn6WfGl7vyBDmdnoULXF7dg4XoSSkfNI9scEXFZRa9CTw mb5wlBR84O9j4mx4AB2WTU9cIhGJtXzjNOCRMe1g0lHP3/iY7vR0JiUt0Gsuci6V/Do8=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrId5-00076s-Ol for control@debbugs.gnu.org; Wed, 18 May 2022 14:18:17 +0200 Date: Wed, 18 May 2022 14:18:15 +0200 Message-Id: <87sfp7c9vc.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #32457 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 32457 wontfix close 32457 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 32457 wontfix close 32457 quit From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 09:32:16 2022 Received: (at 32457) by debbugs.gnu.org; 18 May 2022 13:32:16 +0000 Received: from localhost ([127.0.0.1]:59453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrJmS-00063n-WD for submit@debbugs.gnu.org; Wed, 18 May 2022 09:32:16 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:45006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrJmR-0005xo-82 for 32457@debbugs.gnu.org; Wed, 18 May 2022 09:31:59 -0400 Received: by mail-wr1-f50.google.com with SMTP id h5so1601745wrb.11 for <32457@debbugs.gnu.org>; Wed, 18 May 2022 06:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version; bh=EVKnevrcLrw2UbNqPZ/mZb2mwfDqxu3NdHeWebfh/1A=; b=YYfVfrd/Wrg8+5hFbvzbRC9fLKMN8MB5DLEVLhNfW49oShx4dTxxzUwK8C0Q4047+J fJs49xsT8k5GgMn4IEmJwlT4tt21IzQJKtNKGrFBXdR8EkVzV1Zfoj3MjSXky6MO7xo1 zDEvxEEA/b1RN9ZUxRSo1L5jR7UL5DZPvyk63mWsOuvms8CLbPGpXI3m2zm36G9nIGcJ v/p8nrrKf+PMtBd868vy1SpLgHDorxAW4sLgNF/h4WwF+tpFvoxoYns4lqfnKdMkXKNC a7jlnXG8H3/V2qImZOioOLw/V5fmmZ9s8KUXo8zLmKgwCB3SXTgyfMbzr6Ehsvr1nrup FFsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version; bh=EVKnevrcLrw2UbNqPZ/mZb2mwfDqxu3NdHeWebfh/1A=; b=JR0i3cbOpkENulMa/pd/4K6v9nwtlkIK+PfM4tq465nEbqwWowudA8TUV3Xgmu61WM 9HqY6q7JdwNKi6sXBvSMDVmT9Uzwwu7rxcOrEd9fKEjDcevHU3h8nqtpi4Tz/vL5fJbV 2Nq+0L2eEym8rov2Yzi6ALmzPwz7bIKSCkUKIEC6BxqVnEZmQDR/g6+THbVI9xlzyVHc OnAZ6hsskuSycfz3RT72z59GgbfnPpmOVCsK968cbpkeFGKp2NDMgTmCif9s0oimoK4p C+Z0BN+Za5sAXN/+Phc0njEUo1m68yqLj6DcKsbBC09PaMXvxTQ7XCR844PQ/P1IiROL C13w== X-Gm-Message-State: AOAM533sSMUXpCxGAA4PJ10PwcivBqYf5a6GN4TULzjv5NfG4aqp1DHE ZDGypiIf3GASLGhgH7jk6gL/AlW1NGA= X-Google-Smtp-Source: ABdhPJyCXbbhc/Xw7Xf8WA8jfx+Nm8KnYQzOLoDD0YJDHZ5Fb8SnALRheieB3i3sf5QrZRXs2Tw5dg== X-Received: by 2002:a5d:4112:0:b0:20d:b5e:e9bb with SMTP id l18-20020a5d4112000000b0020d0b5ee9bbmr11485109wrp.655.1652880712821; Wed, 18 May 2022 06:31:52 -0700 (PDT) Received: from rltb ([2a01:e0a:3f3:fb50:cd02:384a:6bea:3e81]) by smtp.gmail.com with ESMTPSA id x9-20020adfbb49000000b0020c5253d90esm2444267wrg.90.2022.05.18.06.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 06:31:52 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Subject: Re: bug#32457: 26.1.50; automatically set indent-tabs-mode from .gitattributes References: <87zhxm8dcv.fsf@tromey.com> <87tu9nc9vi.fsf@gnus.org> Date: Wed, 18 May 2022 15:31:51 +0200 In-Reply-To: <87tu9nc9vi.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 18 May 2022 14:18:09 +0200") Message-ID: <874k1n0xx4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32457 Cc: Tom Tromey , 32457@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Wed, 18 May 2022 14:18:09 +0200, Lars Ingebrigtsen said: Lars> Tom Tromey 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 Lars> (I'm going through old bug reports that unfortunately weren't resolved Lars> at the time.) Lars> I don't think this would be an appropriate feature for Emacs core -- it Lars> would be too surprising if Emacs was setting `indent-tabs-mode' based on Lars> external factors like this (and I'm sure there's a lot of other hints it Lars> could be taking from other VCs). Lars> It does sound like it could be a useful ELPA package, though, but I'm Lars> closing this wishlist item in the Emacs bug tracker. .dir-locals.el supports 'eval', so anyone who wants this could put it there. Robert -- From debbugs-submit-bounces@debbugs.gnu.org Wed May 18 10:22:49 2022 Received: (at submit) by debbugs.gnu.org; 18 May 2022 14:22:49 +0000 Received: from localhost ([127.0.0.1]:33109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrKZY-0004GC-HZ for submit@debbugs.gnu.org; Wed, 18 May 2022 10:22:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:44544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrKZX-0004G4-6U for submit@debbugs.gnu.org; Wed, 18 May 2022 10:22:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrKZX-0003B7-1O for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 10:22:43 -0400 Received: from ciao.gmane.io ([116.202.254.214]:41682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrKZV-0003BX-2e for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 10:22:42 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nrKZS-0002V6-J6 for bug-gnu-emacs@gnu.org; Wed, 18 May 2022 16:22:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Rudolf Schlatte Subject: Re: bug#32457: 26.1.50; automatically set indent-tabs-mode from .gitattributes Date: Wed, 18 May 2022 16:22:31 +0200 Message-ID: References: <87zhxm8dcv.fsf@tromey.com> <87tu9nc9vi.fsf@gnus.org> <874k1n0xx4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) Cancel-Lock: sha1:EvMGFoSUxS2C/cBmuF5zjmr+6xU= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Robert Pluim writes: >>>>>> On Wed, 18 May 2022 14:18:09 +0200, Lars Ingebrigtsen said: > > Lars> Tom Tromey 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 > > Lars> (I'm going through old bug reports that unfortunately weren't resolved > Lars> at the time.) > > Lars> I don't think this would be an appropriate feature for Emacs core -- it > Lars> would be too surprising if Emacs was setting `indent-tabs-mode' based on > Lars> external factors like this (and I'm sure there's a lot of other hints it > Lars> could be taking from other VCs). > > Lars> It does sound like it could be a useful ELPA package, though, but I'm > Lars> closing this wishlist item in the Emacs bug tracker. > > .dir-locals.el supports 'eval', so anyone who wants this could put it there. There is also EditorConfig (https://editorconfig.org, http://elpa.nongnu.org/nongnu/editorconfig.html) for setting indent-tabs-mode and other variables according to a configuration file. From unknown Sat Jul 26 21:33:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 16 Jun 2022 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator