From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Info-insert-dir Date: Wed, 21 Mar 2007 08:38:32 +0100 Message-ID: <4600E0F8.4020507@gmx.at> References: <45FAF396.1030504@gmx.at> <45FD35C4.7060207@gmx.at> <45FE5CDD.3010909@gmx.at> <45FFAFE7.2010702@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174466366 23761 80.91.229.12 (21 Mar 2007 08:39:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 21 Mar 2007 08:39:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 21 09:39:20 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 1HTwLk-0005ym-7m for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2007 09:39:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTwNN-00031g-Uh for ged-emacs-devel@m.gmane.org; Wed, 21 Mar 2007 03:40:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HTwNJ-000315-9D for emacs-devel@gnu.org; Wed, 21 Mar 2007 04:40:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HTwNF-0002zy-Cw for emacs-devel@gnu.org; Wed, 21 Mar 2007 04:40:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HTwNF-0002zn-5D for emacs-devel@gnu.org; Wed, 21 Mar 2007 03:40:49 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HTwLY-0008Up-CV for emacs-devel@gnu.org; Wed, 21 Mar 2007 04:39:05 -0400 Original-Received: (qmail invoked by alias); 21 Mar 2007 07:39:00 -0000 Original-Received: from N767P013.adsl.highway.telekom.at (EHLO [62.47.39.205]) [62.47.39.205] by mail.gmx.net (mp039) with SMTP; 21 Mar 2007 08:39:00 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+xGcFGA/uxsdi258SoICA4ePj/2wa3kXiWDPa/pJ +cnASTdo9PQ3Fc User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:68203 Archived-At: > Maybe we could introduce a macro like > > (defmacro with-valid-default-directory (&rest body) > > Is there anything in Emacs except ispell.el that needs to do this? flyspell.el and maybe complete.el and man.el. Most libraries have to handle this in a special way. comint.el, for example, also checks the directory for accessibility. Moreover, it's not clear whether such a macro should unwind-protect body in order to restore the non-existing default-directory after exiting abnormally. Finally, macros add an annoying extra indentation level.