all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Lin Sun <sunlin7@hotmail.com>
Cc: 55865@debbugs.gnu.org
Subject: bug#55865: [BUG] 28.1.50; Msg "Local variables list is not properly terminated." displayed when opening a file with line `print("Local Variable:")`
Date: Thu, 09 Jun 2022 14:56:09 +0200	[thread overview]
Message-ID: <87a6am6lna.fsf@gnus.org> (raw)
In-Reply-To: <TYCP286MB1986D966589F3813F4071624FBA49@TYCP286MB1986.JPNP286.PROD.OUTLOOK.COM> (Lin Sun's message of "Wed, 8 Jun 2022 23:02:18 +0000")

Lin Sun <sunlin7@hotmail.com> writes:

> Create a file /tmp/test.sh with one line:
>
> print("Local Variables:")
>
> Then open this test.sh file with emacs, a message appeared in the
> *Message* buffer:
>
>>Local variables list is not properly terminated.
>
> The message produced by function `hack-local-variables--find-variables`.
>
> Please help to check it. Thanks

I don't think there's anything to fix here -- Emacs makes a guess that
this is a Local Variable section, but then it turns out that it's not,
and it says so.

So if you don't want that message, you have to obfuscate the string.

Closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2022-06-09 12:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-08 23:02 bug#55865: [BUG] 28.1.50; Msg "Local variables list is not properly terminated." displayed when opening a file with line `print("Local Variable:")` Lin Sun
2022-06-09 12:56 ` Lars Ingebrigtsen [this message]
2022-06-09 16:04   ` Lin Sun
2022-11-23 15:22   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=87a6am6lna.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=55865@debbugs.gnu.org \
    --cc=sunlin7@hotmail.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.