all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: rms@gnu.org
Cc: Stefan Monnier <monnier@IRO.UMontreal.CA>, emacs-devel@gnu.org
Subject: Re: Should `auto-fill-function' be a safe local variable?
Date: Tue, 31 Mar 2009 17:22:53 +0100	[thread overview]
Message-ID: <xbaik565acgy.fsf_-_@cam.ac.uk> (raw)
In-Reply-To: <E1LKKtT-0008Cg-KS@fencepost.gnu.org> (Richard M. Stallman's message of "Tue, 06 Jan 2009 17:59:27 -0500, Tue, 06 Jan 2009 16:39:44 -0500")

On 2009-01-06 22:59 +0000, Richard M Stallman wrote:
>     So should `auto-fill-function' be a safe local variable?
>
> In general, it cannot be safe.  Its value is a function.
> But we could say that the value nil is safe for it.
[...]

On 2009-01-06 21:39 +0000, Stefan Monnier wrote:
[...]
>> So should `auto-fill-function' be a safe local variable?
>
> Of course not.  It's safe to set it to nil, but not to set it to some
> arbitrary value such as (lambda (&rest) (wreak-havoc)).

Hi Richard and Stefan,

Our discussion a long while ago seems to converge to making nil safe for
auto-fill-function. I have been using

  (put 'auto-fill-function 'safe-local-variable 'null)

in my .emacs, which enables users to disable auto-fill on a per-file
basis. May it be possible to make that default in Emacs?


Best wishes,
Leo




  parent reply	other threads:[~2009-03-31 16:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-06 18:27 Should `auto-fill-function' be a safe local variable? Leo
2009-01-06 21:39 ` Stefan Monnier
2009-01-07  4:01   ` Leo
2009-01-06 22:59 ` Richard M Stallman
2009-01-07  3:49   ` Stefan Monnier
2009-01-08 11:38     ` Richard M Stallman
2009-01-09  5:33       ` Leo
2009-01-09 23:58         ` Richard M Stallman
2009-01-10  4:18           ` Leo
2009-01-10 20:33             ` Richard M Stallman
2009-01-11  3:46               ` Leo
2009-01-11 19:12                 ` Richard M Stallman
2009-01-11 21:56                   ` Reiner Steib
2009-01-12  5:28                   ` Leo
2009-01-12  6:34                     ` Miles Bader
2009-01-22  3:51   ` Leo
2009-03-31 16:22   ` Leo [this message]
2009-04-02  1:56     ` Stefan Monnier
2009-04-02 14:36       ` Leo

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=xbaik565acgy.fsf_-_@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=rms@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.