From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: What if backup-enable-predicate is nil? Date: Thu, 4 Jan 2007 18:27:41 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167931761 32045 80.91.229.12 (4 Jan 2007 17:29:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Jan 2007 17:29:21 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 04 18:29:19 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H2WP0-0000DQ-3t for ged-emacs-devel@m.gmane.org; Thu, 04 Jan 2007 18:29:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2WOz-0003qQ-GV for ged-emacs-devel@m.gmane.org; Thu, 04 Jan 2007 12:29:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2WNU-0002vg-U8 for emacs-devel@gnu.org; Thu, 04 Jan 2007 12:27:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2WNT-0002ub-Be for emacs-devel@gnu.org; Thu, 04 Jan 2007 12:27:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2WNT-0002uS-2x for emacs-devel@gnu.org; Thu, 04 Jan 2007 12:27:43 -0500 Original-Received: from [66.249.92.170] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2WNS-0008AJ-HA for emacs-devel@gnu.org; Thu, 04 Jan 2007 12:27:42 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so6140533ugf for ; Thu, 04 Jan 2007 09:27:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=WtvebmjTjfQZe8lLSxYcg/qZiuO94es7teTLO90tJucehJDGTfyiqB/H2fTbi5AeJdph+vvF/zlebCk+prk1EcCBjeBx33BAQiuZeofwEwVVjTOwNLixhBkowlFe/6rBXJogd9t1cF7uzf9GmfQHzzL4c5P9YwZrLx9CSwwbLoo= Original-Received: by 10.82.153.5 with SMTP id a5mr4019323bue.1167931661542; Thu, 04 Jan 2007 09:27:41 -0800 (PST) Original-Received: by 10.82.147.2 with HTTP; Thu, 4 Jan 2007 09:27:41 -0800 (PST) Original-To: "Emacs Devel" Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64758 Archived-At: 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