all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jonathan Kotta <jpkotta@gmail.com>
To: 23816@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	[thread overview]
Message-ID: <CALDneasM0RxDaPydGrYDz_TaaX2ox=Bt8Ow3hyAmKVBUS02CQQ@mail.gmail.com> (raw)
In-Reply-To: <CALDneaukzoXPYdLvRgO2VDNCQA2aRMA25+se=fWqMH6VXAXRLA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]

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@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.

[-- Attachment #2: Type: text/html, Size: 2168 bytes --]

  reply	other threads:[~2017-05-04 17:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-21 16:02 bug#23816: adaptive-wrap-extra-indent should be safe as a file local variable Jonathan Kotta
2017-05-04 17:00 ` Jonathan Kotta [this message]
2017-05-05  0:40   ` npostavs

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='CALDneasM0RxDaPydGrYDz_TaaX2ox=Bt8Ow3hyAmKVBUS02CQQ@mail.gmail.com' \
    --to=jpkotta@gmail.com \
    --cc=23816@debbugs.gnu.org \
    /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.