GNU bug report logs - #68743
29.1; modify-file-local-variable does not handle variables with embedded newlines in their value

Previous Next

Package: emacs;

Reported by: Karthik <karthikchikmagalur <at> gmail.com>

Date: Fri, 26 Jan 2024 20:31:02 UTC

Severity: normal

Found in version 29.1

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Karthik <karthikchikmagalur <at> gmail.com>
Cc: 68743 <at> debbugs.gnu.org
Subject: bug#68743: 29.1; modify-file-local-variable does not handle variables with embedded newlines in their value
Date: Fri, 26 Jan 2024 22:05:40 +0100
On Jan 26 2024, Karthik wrote:

> This is not the format specified in the Emacs manual.  It should look
> like
>
> Some text
>
> ;; Local Variables:
> ;; testvar: "Data on\
> two lines"
> ;; End:

That's still not correct: the third line lacks the prefix, and a
backslash-newline pair is ignored, not producing a newline.  Only
printing the newline as "\n" will work.

;; Local Variables:
;; testvar: "Data on\ntwo lines"
;; End:

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




This bug report was last modified 1 year and 146 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.