emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info-insert-dir


From: martin rudalics
Subject: Re: Info-insert-dir
Date: Fri, 23 Mar 2007 10:01:38 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

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?
*** 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]