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 #8 received at 23294 <at> debbugs.gnu.org (full text, mbox):

From: Alexis <flexibeast <at> gmail.com>
To: "Mohammed Sadik P. K." <sadiq <at> sadiqpk.org>
Cc: 23294 <at> debbugs.gnu.org
Subject: Re: bug#23294: 25.0.92;
 modify-file-local-variable-prop-line adds extra "; "
Date: Fri, 15 Apr 2016 17:55:58 +1000
Mohammed Sadik P. K. <sadiq <at> sadiqpk.org> writes:

> For the function modify-file-local-variable-prop-line if run 
> with 'add-or-replace as the third argument, it should replace 
> the current values. It does, but along with replacing the 
> values, it adds an extra "; " at the beginning of the variable.
>
> Eg.:
>
> my current first line: 
>    /* -*- mode: c; indent-tabs-mode: t; -*- */
>
> I executed (modify-file-local-variable-prop-line 
> 'indent-tabs-mode 'nil 'add-or-replace)
>
> The result was:
>
>    /* -*- mode: c; ; indent-tabs-mode: nil; -*- */
>
> Expected result:
>
>    /* -*- mode: c; indent-tabs-mode: nil; -*- */
>
> Each time I run the function, an "; " is added.

Reproduced on 24.5 (Debian Jessie x86_64).




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.