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: Fri, 23 Mar 2007 10:01:38 +0100 Message-ID: <46039772.7080404@gmx.at> References: <45FAF396.1030504@gmx.at> <45FD35C4.7060207@gmx.at> <45FE5CDD.3010909@gmx.at> <45FFAFE7.2010702@gmx.at> <4600E0F8.4020507@gmx.at> <46022E19.803@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090103070008010909030908" X-Trace: sea.gmane.org 1174641158 31943 80.91.229.12 (23 Mar 2007 09:12:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2007 09:12:38 +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 Fri Mar 23 10:12:32 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 1HUfp1-0000oZ-Fn for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 10:12:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUfqt-0008GB-7f for ged-emacs-devel@m.gmane.org; Fri, 23 Mar 2007 04:14:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HUfqp-0008Ej-Uj for emacs-devel@gnu.org; Fri, 23 Mar 2007 05:14:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HUfqo-0008BI-4f for emacs-devel@gnu.org; Fri, 23 Mar 2007 05:14:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUfqn-0008AW-Rk for emacs-devel@gnu.org; Fri, 23 Mar 2007 04:14:21 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HUfot-0007wg-11 for emacs-devel@gnu.org; Fri, 23 Mar 2007 05:12:23 -0400 Original-Received: (qmail invoked by alias); 23 Mar 2007 09:05:36 -0000 Original-Received: from N826P010.adsl.highway.telekom.at (EHLO [62.47.47.42]) [62.47.47.42] by mail.gmx.net (mp042) with SMTP; 23 Mar 2007 10:05:36 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19V/lYjv2NVMhsQ9APgygcAC9/QB84GoiQHsJORYS 0ntch/WyskBKoD 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:68363 Archived-At: This is a multi-part message in MIME format. --------------090103070008010909030908 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit > In what sense does the use of `with-temp-buffer' "handle" this issue? > New buffers copy the default directory from the current buffer, and I > don't see any code in `with-temp-buffer' to ensure the default > directory exists. Silly me. Would the attached do it? --------------090103070008010909030908 Content-Type: text/plain; name="man.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="man.patch" *** man.el Tue Jan 23 07:40:06 2007 --- man.el Fri Mar 23 09:54:48 2007 *************** *** 628,634 **** (setq Man-support-local-filenames (with-temp-buffer (and (equal (condition-case nil ! (call-process manual-program nil t nil "--help") (error nil)) 0) (progn --- 628,639 ---- (setq Man-support-local-filenames (with-temp-buffer (and (equal (condition-case nil ! (let ((default-directory ! (if (and (file-directory-p default-directory) ! (file-readable-p default-directory)) ! default-directory ! (expand-file-name "~/")))) ! (call-process manual-program nil t nil "--help")) (error nil)) 0) (progn --------------090103070008010909030908 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --------------090103070008010909030908--