all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* What if backup-enable-predicate is nil?
@ 2007-01-04 17:27 Juanma Barranquero
  2007-01-04 22:34 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Juanma Barranquero @ 2007-01-04 17:27 UTC (permalink / raw)


ELISP> (let ((backup-enable-predicate nil))
         (find-file-noselect "~/.emacs.el"))
*** Eval error ***  Symbol's function definition is void: nil

which makes sense, but the docstring for `backup-enable-predicate'
does not imply that it couldn't be nil.

Perhaps the following patch should be committed (or the docstring for
`backup-enable-predicate' clarified).

                    /L/e/k/t/u



Index: lisp/files.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/files.el,v
retrieving revision 1.875
diff -u -2 -r1.875 files.el
--- lisp/files.el	2 Jan 2007 01:26:20 -0000	1.875
+++ lisp/files.el	4 Jan 2007 17:22:00 -0000
@@ -1651,5 +1651,6 @@
       ;; Turn off backup files for certain file names.  Since
       ;; this is a permanent local, the major mode won't eliminate it.
-      (and (not (funcall backup-enable-predicate buffer-file-name))
+      (and backup-enable-predicate
+	   (not (funcall backup-enable-predicate buffer-file-name))
 	   (progn
 	     (make-local-variable 'backup-inhibited)
@@ -2905,4 +2906,5 @@
   ;; Since this is a permanent local, the major mode won't eliminate it.
   (and buffer-file-name
+       backup-enable-predicate
        (not (funcall backup-enable-predicate buffer-file-name))
        (progn

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What if backup-enable-predicate is nil?
  2007-01-04 17:27 What if backup-enable-predicate is nil? Juanma Barranquero
@ 2007-01-04 22:34 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2007-01-04 22:34 UTC (permalink / raw)
  Cc: emacs-devel

I installed your patch.  Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-04 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-04 17:27 What if backup-enable-predicate is nil? Juanma Barranquero
2007-01-04 22:34 ` Richard Stallman

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.