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: Sun, 11 Apr 2004 01:32:12 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87r7uvia0q.fsf@mail.jurta.org> References: <407298C7.4040009@math.ku.dk> <87vfkaajor.fsf@mail.jurta.org> <407867B3.4060900@math.ku.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1081651008 28470 80.91.224.253 (11 Apr 2004 02:36:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Apr 2004 02:36:48 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Apr 11 04:36:39 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 1BCUpr-00037o-00 for ; Sun, 11 Apr 2004 04:36:39 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BCUpr-0007iu-00 for ; Sun, 11 Apr 2004 04:36:39 +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 1BCUnu-0006sG-GB for emacs-devel@quimby.gnus.org; Sat, 10 Apr 2004 22:34:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BCUni-0006qk-At for emacs-devel@gnu.org; Sat, 10 Apr 2004 22:34:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BCUnC-0006TZ-BO for emacs-devel@gnu.org; Sat, 10 Apr 2004 22:34:25 -0400 Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BCUnC-0006Sk-0C for emacs-devel@gnu.org; Sat, 10 Apr 2004 22:33:54 -0400 Original-Received: from mail.jurta.org (80-235-32-66-dsl.mus.estpak.ee [80.235.32.66]) by spoon.dreamhost.com (Postfix) with ESMTP id 6627213D851; Sat, 10 Apr 2004 19:33:53 -0700 (PDT) Original-To: Lars Hansen In-Reply-To: <407867B3.4060900@math.ku.dk> (Lars Hansen's message of "Sat, 10 Apr 2004 23:31:31 +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:21457 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21457 Lars Hansen writes: > Juri Linkov wrote: >>if `Info-mode' was able to set a literally visited Info file to Info mode, >>then no handler would be needed in desktop.el, because just calling >>`Info-mode' from `desktop-buffer-file' on a restored Info file would do >>exactly what `desktop-buffer-info' currently does. >> >>If all other special modes would do the same then no new variable like >>`desktop-buffer-mode-handlers' will be needed. >> > This is true for buffers visiting a file only. It would not work for > dired buffers. Why not? Calling (find-file-noselect directory-name) creates a buffer in Dired mode. -- Juri Linkov http://www.jurta.org/emacs/