all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: 13862@debbugs.gnu.org
Subject: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing	the prefix")
Date: Mon, 04 Mar 2013 18:07:27 +0200	[thread overview]
Message-ID: <83lia3tagw.fsf@gnu.org> (raw)
In-Reply-To: <87ppzf7s1d.fsf@gmail.com>

> From: Jambunathan K <kjambunathan@gmail.com>
> Date: Mon, 04 Mar 2013 09:08:54 +0530
> Cc: 13862@debbugs.gnu.org
> 
> Glenn Morris <rgm@gnu.org> writes:
> 
> > Adding .diff and .patch to inhibit-local-variables-regexps would avoid
> > this.
> 
> ,----
> |  ;; Local variables:
> |  ;; generated-autoload-file: "org-loaddefs.el"
> | +;; coding: utf-8
> |  ;; End:
> `----
> 
> The question is: 
> 
> Is there are any local variables in the patch?  There isn't any.  So why
> should we inhibit something that is not there.
> 
> If `diff-mode' has no comment syntax defined, then by extension, it
> cannot specify file local variables.

File local variables never had anything to do with comment syntax; you
won't find that neither in the code nor in the documentation.  Which
is a Good Thing: if file local variables were supported only for modes
which have comment syntax defined, we couldn't have used them in all
the modes that don't.  For example, Text mode, or the tutorials, or the
ChangeLog files.  You name it.

In modes that do have comment syntax defined, it makes sense to put
these variables into comments, so as not to confuse the translator.
But that's about all these variables have in common with comments.
You will see in the code that Emacs deduces the prefix and suffix
heuristically, and that is how this is documented.

So I think Glenn is right about the solution.  Diffs don't have
contents of their own (well, except for the hunk headers), so looking
up diffs for file-local variables doesn't make much sense.

> ps: I am not sure why *.patch files are visited in diff-mode?

What else?





  parent reply	other threads:[~2013-03-04 16:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-03 16:14 bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix") Jambunathan K
2013-03-03 16:21 ` Jambunathan K
2013-03-04  0:17   ` Glenn Morris
2013-03-04  3:38     ` Jambunathan K
2013-03-04  7:38       ` Glenn Morris
2013-03-04 16:07       ` Eli Zaretskii [this message]
2013-03-04 16:47         ` Stefan Monnier
     [not found] ` <handler.13862.D13862.13623827429099.notifdone@debbugs.gnu.org>
2013-03-04  7:58   ` bug#13862: closed (Re: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix")) Jambunathan K
2013-03-04 14:37     ` 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

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

  git send-email \
    --in-reply-to=83lia3tagw.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13862@debbugs.gnu.org \
    --cc=kjambunathan@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.