gnu-emacs-sources
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inhibit-backup-locally


From: Stefan Monnier
Subject: Re: inhibit-backup-locally
Date: Wed, 28 Mar 2012 19:04:59 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

> I do this a lot (what a dare-devil),
> and note a handful of usages in Emacs.
> Maybe it can go in files.el?

> (defun inhibit-backup-locally ()
>   "Make `backup-inhibited' buffer-local and set it to t."
>   (set (make-local-variable 'backup-inhibited) t))

I don't see what is the benefit of writing

  (inhibit-backup-locally)
over
  (set (make-local-variable 'backup-inhibited) t)

tho I do feel like we should maybe introduce a new macro so that you can
write:

  (setq-local backup-inhibited t)


-- Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]