GNU bug report logs - #23816
adaptive-wrap-extra-indent should be safe as a file local variable

Previous Next

Package: emacs;

Reported by: Jonathan Kotta <jpkotta <at> gmail.com>

Date: Tue, 21 Jun 2016 16:04:02 UTC

Severity: minor

Tags: fixed

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jonathan Kotta <jpkotta <at> gmail.com>
To: 23816 <at> debbugs.gnu.org
Subject: bug#23816: adaptive-wrap-extra-indent should be safe as a file local variable
Date: Thu, 4 May 2017 12:00:15 -0500
[Message part 1 (text/plain, inline)]
Ping.  If there's another place I should report this, please let me know.
I figured that since this is part of GNU ELPA, this is the correct place.

On Tue, Jun 21, 2016 at 11:02 AM, Jonathan Kotta <jpkotta <at> gmail.com> wrote:

> The variable adaptive-wrap-extra-indent from adaptive-wrap.el in ELPA
> should be a safe as a file local variable.  It can be useful to set as a
> file local and shouldn't pose any danger from untrusted files.
>
> diff --git a/packages/adaptive-wrap/adaptive-wrap.el
> b/packages/adaptive-wrap/adaptive-wrap.el
> index 9455789..01024de 100644
> --- a/packages/adaptive-wrap/adaptive-wrap.el
> +++ b/packages/adaptive-wrap/adaptive-wrap.el
> @@ -57,6 +57,7 @@ extra indent = 2
>    :type 'integer
>    :group 'visual-line)
>  (make-variable-buffer-local 'adaptive-wrap-extra-indent)
> +(put 'adaptive-wrap-extra-indent 'safe-local-variable 'integerp)
>
>  (defun adaptive-wrap-fill-context-prefix (beg en)
>    "Like `fill-context-prefix', but with length adjusted by
> `adaptive-wrap-extra-indent'."
>
> --
> Thanks,
>
> Jonathan Kotta
>
> Hofstadter's Law:
>     It always takes longer than you expect, even
>     when you take into account Hofstadter's Law.
>



-- 
Thanks,

Jonathan Kotta

Hofstadter's Law:
    It always takes longer than you expect, even
    when you take into account Hofstadter's Law.
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 16 days ago.

Previous Next


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