[Top][All Lists]
[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
- Re: Info-insert-dir, (continued)
- Message not available
- Message not available
- Re: Info-insert-dir, Richard Stallman, 2007/03/19
- Re: Info-insert-dir, martin rudalics, 2007/03/19
- Re: Info-insert-dir, Richard Stallman, 2007/03/19
- Re: Info-insert-dir, martin rudalics, 2007/03/20
- Re: Info-insert-dir, Richard Stallman, 2007/03/20
- Re: Info-insert-dir, Richard Stallman, 2007/03/20
- Re: Info-insert-dir, martin rudalics, 2007/03/21
- Re: Info-insert-dir, Richard Stallman, 2007/03/22
- Re: Info-insert-dir, martin rudalics, 2007/03/22
- Re: Info-insert-dir, Richard Stallman, 2007/03/22
- Re: Info-insert-dir,
martin rudalics <=
- Re: Info-insert-dir, Richard Stallman, 2007/03/23