GNU bug report logs - #23294
25.0.92; modify-file-local-variable-prop-line adds extra "; "

Previous Next

Package: emacs;

Reported by: "Mohammed Sadik P. K." <sadiq <at> sadiqpk.org>

Date: Fri, 15 Apr 2016 05:14:02 UTC

Severity: minor

Tags: confirmed, easy, fixed, patch

Found in versions 25.0.92, 26.1

Fixed in version 26.2

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #25 received at control <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Wenjamin Petrenko <wenjamin.petrenko <at> yandex.com>
Cc: 23294 <at> debbugs.gnu.org, "Mohammed Sadik P. K." <sadiq <at> sadiqpk.org>
Subject: Re: bug#23294: 25.0.92;
 modify-file-local-variable-prop-line adds extra "; "
Date: Wed, 15 Aug 2018 20:02:01 -0400
tags 23294 + patch
quit

Wenjamin Petrenko <wenjamin.petrenko <at> yandex.com> writes:

> Subject: [PATCH] Fix bug#23294
>
> * lisp/files-x.el (modify-file-local-variable-prop-line): Handle
> whitespace when checking if there's a ';' before the variable name.

> -	  (if (and (not (eq (char-before) ?\;))
> +	  (if (and (save-excursion
> +		     (skip-chars-backward " \t")
> +		     (not (eq (char-before) ?\;)))

This looks reasonable.  Could you give a more informative summary line
please?  I.e., one where I can see what the bug is about without having
memorized all bug numbers.  And same for your email subject headers, if
you don't mind.





This bug report was last modified 6 years and 323 days ago.

Previous Next


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