From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: find-file-hook as illustration of Custom problems Date: Sat, 5 Feb 2005 20:07:20 -0600 (CST) Message-ID: <200502060207.j1627Kp15685@raven.dms.auburn.edu> References: <200502040036.j140atb03430@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1107656029 30869 80.91.229.2 (6 Feb 2005 02:13:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Feb 2005 02:13:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 06 03:13:49 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Cxbvg-0008GG-Tk for ged-emacs-devel@m.gmane.org; Sun, 06 Feb 2005 03:13:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cxc9W-00013F-Qa for ged-emacs-devel@m.gmane.org; Sat, 05 Feb 2005 21:27:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cxc7p-0000Of-Lv for emacs-devel@gnu.org; Sat, 05 Feb 2005 21:26:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cxc7g-0000IW-6B for emacs-devel@gnu.org; Sat, 05 Feb 2005 21:26:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cxc7f-0000Hf-Ny for emacs-devel@gnu.org; Sat, 05 Feb 2005 21:26:03 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cxbqt-0003xF-Ed; Sat, 05 Feb 2005 21:08:43 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j1628g9N003281; Sat, 5 Feb 2005 20:08:42 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j1627Kp15685; Sat, 5 Feb 2005 20:07:20 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Sat, 05 Feb 2005 12:38:33 -0500) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:32926 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32926 >>From my previous message: So it looks like we should also give the user veto power over code and implement `remove-hook' and `delete' functionality through Custom, adding to the complexity. But it is difficult to see how this could work reliably. The `remove-hook' or `delete' functionality is only going to work if the code adds the stuff _before_ the user's custom-set-variables form is executed. Code that runs later will override the user's veto and add the stuff back anyway. We would have to do something like keep track of all Lisp files that add code to defcustoms (and what code to which defcustom) and put the remove-hook or delete in an `eval-after-load' call. That does not seem very attractive. Problems related to Custom tend to grow more and more complex the longer you keep thinking about them. Sincerely, Luc.