unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: indent-tabs-mode in dir-locals
Date: Fri, 09 Jan 2009 00:51:16 +0200	[thread overview]
Message-ID: <8763kpo57t.fsf@jurta.org> (raw)
In-Reply-To: <4o3afujtyb.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 07 Jan 2009 23:35:40 -0500")

>>> I had believed the unwritten rule till now was "respect whatever the
>>> file currently uses" (which there should be a setting for; but that's
>>> a wishlist item).
>>
>> The problem is that this rule is still unwritten ;)
>
> I already had a local hack based on a mode-hook. Now it is broken
> thanks to dir-locals over-riding it. Anyway, I've just edited my local
> copy of dir-locals (making it kind of pointless).

Some modes set it explicitly to nil (e.g. texinfo-mode).  So the global
unconditional indent-tabs-mode in .dir-locals.el currently breaks these
modes, because mode settings are applied before file-local settings.
Maybe we should set (indent-tabs-mode . t) only for c-mode and
emacs-lisp-mode?

-- 
Juri Linkov
http://www.jurta.org/emacs/




  reply	other threads:[~2009-01-08 22:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-04  0:44 indent-tabs-mode in dir-locals Glenn Morris
2009-01-04  4:19 ` Eli Zaretskii
2009-01-07  0:12 ` Juri Linkov
2009-01-07  4:13   ` Stefan Monnier
2009-01-08  4:35   ` Glenn Morris
2009-01-08 22:51     ` Juri Linkov [this message]
2009-01-09  3:18       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8763kpo57t.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).