unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: jidanni@jidanni.org
Cc: 14710@debbugs.gnu.org
Subject: bug#14710: add-file-local-variable vs. unquoted string
Date: Tue, 25 Jun 2013 02:40:40 +0300	[thread overview]
Message-ID: <8738s7t6ok.fsf@mail.jurta.org> (raw)
In-Reply-To: <877ghjl0xm.fsf@jidanni.org> (jidanni@jidanni.org's message of "Tue, 25 Jun 2013 04:16:05 +0800")

> Try
> M-x add-file-local-variable
> compile-command
> a b c
>
> Note how b c are thrown away.

That's because `add-file-local-variable' takes care about writing
only correct values that could be read later without errors.

> Yes the user should have typed "a b c",
> but still some warning should be printed upon throwing them away.

I have no idea how such a warning could be produced, and even
if we will found a way to detect the situation when it should be
displayed, you won't see it anyway because it will be instantaneously
overwritten in the echo area by another recently added message:
"For this change to take effect revisit file using `revert-buffer'".





  reply	other threads:[~2013-06-24 23:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-24 20:16 bug#14710: add-file-local-variable vs. unquoted string jidanni
2013-06-24 23:40 ` Juri Linkov [this message]
2013-06-24 23:56   ` Glenn Morris
2013-06-25  6:10     ` Juri Linkov
2013-06-25  6:56       ` martin rudalics
2013-06-25  7:42       ` Andreas Schwab
2013-06-25 13:06 ` Stefan Monnier
2013-06-25 20:18   ` Juri Linkov
2013-06-26  0:51     ` Stefan Monnier
2013-06-25 13:56 ` jidanni

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=8738s7t6ok.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=14710@debbugs.gnu.org \
    --cc=jidanni@jidanni.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).