unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org
Subject: Re: [PATCH] cc-mode: don't tread dir-local and file-local variables differently
Date: Tue, 26 May 2020 17:18:30 +0000	[thread overview]
Message-ID: <20200526171830.GA3905@ACM> (raw)
In-Reply-To: <jwveer7qvtz.fsf-monnier+emacs@gnu.org>

Hello, Stefan.

On Mon, May 25, 2020 at 22:28:15 -0400, Stefan Monnier wrote:

[ .... ]

> > It’s highly relevant that c-file-style variable behave completely
> > different whether it’s dir-local or file-local.

I think "completly different" here means "not identical".  The situation
we're in is one where there is no totally satisfactory solution.  We
could amend it the way the OP wants, but then hook functions would stop
working "properly", for example.

> IIUC your example shows a different interaction between a global
> setting and file-vs-dir setting.  FWIW, I do find it surprising that
> file-local would be treated differently from dir-local when faced with
> a global setting.

They are treated consistently - where there are conflicting sources for a
particular parameter, that of the highest priority takes precedence.

This was all worked out in 2009 in response to bug #3808.  (The exchange
in https://debbugs.gnu.org is short enough to be readable.)  I really
don't think it a good idea to re-introduce bug #3808 by discarding its
fix.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).


  reply	other threads:[~2020-05-26 17:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200512194516.83180-1-mina86@mina86.com>
     [not found] ` <20200513184745.GA8857@ACM>
     [not found]   ` <CA+pa1O2gKba9iHpPbQCf6PibY4gg57gj2ZjC4oTy4277i5pTzg@mail.gmail.com>
     [not found]     ` <20200517142327.GA12554@ACM>
     [not found]       ` <CA+pa1O2Yoqg9Kjy-Eh7K6RUtpDXpSfWOEW5EWduZVBgY5LK8QQ@mail.gmail.com>
     [not found]         ` <20200525184412.GA8662@ACM>
2020-05-25 19:47           ` [PATCH] cc-mode: don't tread dir-local and file-local variables differently Michał Nazarewicz
2020-05-26  2:13             ` 조성빈
2020-05-26  2:28             ` Stefan Monnier
2020-05-26 17:18               ` Alan Mackenzie [this message]
2020-05-28  2:21                 ` Stefan Monnier
2020-06-01  0:19                   ` Michał Nazarewicz
2020-06-01 13:29                     ` 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=20200526171830.GA3905@ACM \
    --to=acm@muc.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).