From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Moving handlers out of desktop.el Date: Tue, 13 Apr 2004 18:15:25 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8765c3sycy.fsf@mail.jurta.org> References: <407298C7.4040009@math.ku.dk> <87zn9ggpx4.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1081870062 30103 80.91.224.253 (13 Apr 2004 15:27:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2004 15:27:42 +0000 (UTC) Cc: Lars Hansen , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 13 17:27:18 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDPok-0004yr-00 for ; Tue, 13 Apr 2004 17:27:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDPoj-0001v1-00 for ; Tue, 13 Apr 2004 17:27:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDPoG-0005PV-JR for emacs-devel@quimby.gnus.org; Tue, 13 Apr 2004 11:26:48 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BDPmF-0004Ew-Ng for emacs-devel@gnu.org; Tue, 13 Apr 2004 11:24:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BDPke-00031R-UO for emacs-devel@gnu.org; Tue, 13 Apr 2004 11:23:36 -0400 Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDPhu-0001Ln-Ct; Tue, 13 Apr 2004 11:20:14 -0400 Original-Received: from mail.jurta.org (80-235-34-57-dsl.mus.estpak.ee [80.235.34.57]) by spoon.dreamhost.com (Postfix) with ESMTP id A819B13D831; Tue, 13 Apr 2004 08:20:12 -0700 (PDT) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "13 Apr 2004 15:05:48 +0200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21573 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21573 David Kastrup writes: > Juri Linkov writes: >> This could be done independently from the first item. > > But it does not make sense without putting the handlers where they > belong. And where the byte compiler will warn if they are using bad > variables and so on. And where they'll be autoloaded along with the > respective mode only when they are needed. I agree with your arguments. And just for the same reasons I suggested to create generalized functions in respective modes. Currently, mode handling functions in desktop.el have references to desktop global variables desktop-buffer-misc, desktop-buffer-file-name, desktop-buffer-name, etc. These variables should stay in desktop.el. And new mode handling functions should be created in respective modes with no free references to desktop variables. The values should be given to these general functions only via function arguments. -- Juri Linkov http://www.jurta.org/emacs/