From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.devel Subject: Re: Moving handlers out of desktop.el Date: Wed, 21 Apr 2004 23:28:45 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <4086E78D.1050706@math.ku.dk> References: <407298C7.4040009@math.ku.dk> <87zn9ggpx4.fsf@mail.jurta.org> <407BE4BD.4010308@math.ku.dk> <877jwjsyhn.fsf@mail.jurta.org> <87ad1fli7c.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1082583671 19295 80.91.224.253 (21 Apr 2004 21:41:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Apr 2004 21:41:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Apr 21 23:41:00 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 1BGPSl-0005J8-00 for ; Wed, 21 Apr 2004 23:40:59 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BGPSl-0002r6-00 for ; Wed, 21 Apr 2004 23:40:59 +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 1BGPKW-0000nf-Bv for emacs-devel@quimby.gnus.org; Wed, 21 Apr 2004 17:32:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BGPHr-0007TP-Rq for emacs-devel@gnu.org; Wed, 21 Apr 2004 17:29:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BGPHA-0006MA-Hj for emacs-devel@gnu.org; Wed, 21 Apr 2004 17:29:32 -0400 Original-Received: from [213.170.224.162] (helo=smtp.kabelnettet.dk) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BGPH6-000662-Kr for emacs-devel@gnu.org; Wed, 21 Apr 2004 17:28:56 -0400 Original-Received: from math.ku.dk (0x52b410e6.dhcp.kabelnettet.dk [82.180.16.230]) by smtp.kabelnettet.dk (Postfix) with ESMTP id CCB5960995F for ; Wed, 21 Apr 2004 23:28:43 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk X-Accept-Language: en Original-To: emacs-devel@gnu.org In-Reply-To: <87ad1fli7c.fsf@mail.jurta.org> 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:22008 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22008 I have now moved handlers out of desktop and into the modules where they belong. That applies to dired, info, rmail and mh-e. The idea is as follows: The desktop module handles buffers visiting a file. For buffers not visiting a file, desktop needs help from the major mode module. The major mode module must define a function to restore desktop buffers, and the function must be listed in `desktop-buffer-mode-handlers'. If the major mode needs to save auxiliary information in the desktop file, it must also define a function returning that information and assign the function to the buffer local variable `desktop-buffer-misc-data-function' in the mode function.