Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-28 Thread Chong Yidong
Eli Zaretskii <[EMAIL PROTECTED]> writes: >> > At this late stage in the pretest, won't it be safer to bind >> > default-directory only if the original value doesn't exist? >> >> I don't think so, because it's possible for the original value to >> exist and yet not be accessible to us. > > Okay,

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-27 Thread Richard Stallman
Thanks. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-27 Thread Michael Albinus
Richard Stallman <[EMAIL PROTECTED]> writes: > We need to fix all the file handlers that use call-process, I agree. > Fortunately there are not too many. > > I agree it would be easier if we could fix this in call-process. That > was the first direction I looked in. However, someone pointed out

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-27 Thread Eli Zaretskii
> Cc: [EMAIL PROTECTED], emacs-pretest-bug@gnu.org > From: Chris Moore <[EMAIL PROTECTED]> > Date: Sat, 27 Jan 2007 10:53:24 +0100 > > Eli Zaretskii <[EMAIL PROTECTED]> writes: > > > At this late stage in the pretest, won't it be safer to bind > > default-directory only if the original value doe

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-27 Thread Chris Moore
Eli Zaretskii <[EMAIL PROTECTED]> writes: > At this late stage in the pretest, won't it be safer to bind > default-directory only if the original value doesn't exist? I don't think so, because it's possible for the original value to exist and yet not be accessible to us. For example, if the orig

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-26 Thread Richard Stallman
At this late stage in the pretest, won't it be safer to bind default-directory only if the original value doesn't exist? I am not sure whether it is safer, but it can't really hurt, and it avoids the issue of installing more code by Chris Moore before his papers come. Would you please ins

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-26 Thread Richard Stallman
BTW, I think the comments in jka-compr.el and some doctrings (notoriously those of `jka-compr-shell' and `ja-compr-compression-info-list') do lie about the use of a shell and the following patch should be applied. Please install your patch. ___

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-26 Thread Eli Zaretskii
> Cc: [EMAIL PROTECTED], emacs-pretest-bug@gnu.org > From: Chris Moore <[EMAIL PROTECTED]> > Date: Fri, 26 Jan 2007 15:52:36 +0100 > > *** lisp/jka-compr.el 21 Jan 2007 03:53:11 - 1.92 > --- lisp/jka-compr.el 26 Jan 2007 14:46:48 - > *** > *** 166,171 > --- 166,1

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-26 Thread Chris Moore
Richard Stallman <[EMAIL PROTECTED]> writes: > To see jka-compr failing, evaluate this: > > (let ((default-directory "/a/b/c")) > (insert-file-contents "/usr/share/man/man1/ls.1.gz")) > > Can someone please fix jka-compr? My post which started this thread contained a fix for jka-c

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-26 Thread Juanma Barranquero
On 1/26/07, Richard Stallman <[EMAIL PROTECTED]> wrote: Let's not go around in circles. We've already seen why this can't be "fixed" in a natural way. Yes, sorry. I missed the start of the thread. BTW, I think the comments in jka-compr.el and some doctrings (notoriously those of `jka-compr-s

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-26 Thread Richard Stallman
I guess all I mean is that we need to fix Tramp (and other file handlers) as well as jka-compr, because this also causes an error: We need to fix all the file handlers that use call-process, I agree. Fortunately there are not too many. I agree it would be easier if we could fix this in ca

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-25 Thread Richard Stallman
It's at a lower level than jka-compr: (let ((default-directory "a/b/c")) (call-process "gzip" "c:/emacs/otros/quack.el.gz" t nil "-d")) Let's not go around in circles. We've already seen why this can't be "fixed" in a natural way. So jka-compr needs to be fixed to avoid doing t

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-25 Thread Chris Moore
On 1/25/07, Eli Zaretskii <[EMAIL PROTECTED]> wrote: What do you mean by ``take into account''? File primitives already do take that into account, in a way, so I'm unsure what you meant here. I'm sorry. I guess all I mean is that we need to fix Tramp (and other file handlers) as well as jka-

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-25 Thread Juanma Barranquero
On 1/25/07, Richard Stallman <[EMAIL PROTECTED]> wrote: To see jka-compr failing, evaluate this: (let ((default-directory "/a/b/c")) (insert-file-contents "/usr/share/man/man1/ls.1.gz")) Can someone please fix jka-compr? It's at a lower level than jka-compr: (let ((default

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-25 Thread Richard Stallman
To see jka-compr failing, evaluate this: (let ((default-directory "/a/b/c")) (insert-file-contents "/usr/share/man/man1/ls.1.gz")) Can someone please fix jka-compr? ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-25 Thread Kevin Rodgers
Chris Moore wrote: Kevin Rodgers <[EMAIL PROTECTED]> writes: It should signal an error, that the directory doesn't exist. How does one create a buffer whose default-directory doesn't exist? One finds a file or creates a buffer which isn't associated with a file, but has default-directory set

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-24 Thread Eli Zaretskii
> From: Chris Moore <[EMAIL PROTECTED]> > Date: Wed, 24 Jan 2007 22:58:37 +0100 > Cc: emacs-pretest-bug@gnu.org > > Note that when checking for the existance of default-directory, we > need to take the filename handlers into account. What do you mean by ``take into account''? File primitives alr

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-24 Thread Chris Moore
Richard Stallman <[EMAIL PROTECTED]> writes: > There's no ``best way'', it depends on what code calls call-process. > In some cases, you could bind default-directory to something sensible > (e.g., invocation-directory), in others you _must_ fail, because the > command arguments cou

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-24 Thread Chris Moore
Kevin Rodgers <[EMAIL PROTECTED]> writes: > It should signal an error, that the directory doesn't exist. How > does one create a buffer whose default-directory doesn't exist? One finds a file or creates a buffer which isn't associated with a file, but has default-directory set anyway, and then h

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-24 Thread Richard Stallman
There's no ``best way'', it depends on what code calls call-process. In some cases, you could bind default-directory to something sensible (e.g., invocation-directory), in others you _must_ fail, because the command arguments could use something like "./foo/bar" which precludes

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-22 Thread Eli Zaretskii
> From: Richard Stallman <[EMAIL PROTECTED]> > Date: Mon, 22 Jan 2007 21:07:03 -0500 > Cc: emacs-pretest-bug@gnu.org > Reply-To: [EMAIL PROTECTED] > > This should probably be fixed in call-process (I can't use > shell-command-on-region to pipe a region of a buffer through a shell > com

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-22 Thread Kevin Rodgers
Richard Stallman wrote: This should probably be fixed in call-process (I can't use shell-command-on-region to pipe a region of a buffer through a shell command if default-directory doesn't exist, for example, and I'd like to be able to). Perhaps default-directory could default to

Re: woman doesn't work if current buffer's directory doesn't exist

2007-01-22 Thread Richard Stallman
This should probably be fixed in call-process (I can't use shell-command-on-region to pipe a region of a buffer through a shell command if default-directory doesn't exist, for example, and I'd like to be able to). Perhaps default-directory could default to the value of temporar

woman doesn't work if current buffer's directory doesn't exist

2007-01-22 Thread Chris Moore
In GNU Emacs 22.0.92.24 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2007-01-21 on trpaslik X server distributor `The X.Org Foundation', version 11.0.70101000 configured using `configure '--with-gtk' '--prefix' '/usr/local' '--with-xpm' '--with-jpeg' '--with-png' '--with-gif'' $ mkdir /tmp/foo