GNU bug report logs - #8534
24.0.50; Documentation bug in ns-read-file-name

Previous Next

Packages: ns, emacs;

Reported by: Harald Hanche-Olsen <hanche <at> math.ntnu.no>

Date: Fri, 22 Apr 2011 10:51:02 UTC

Severity: minor

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Harald Hanche-Olsen <hanche <at> math.ntnu.no>
To: eliz <at> gnu.org
Cc: cyd <at> stupidchicken.com, 8534 <at> debbugs.gnu.org
Subject: bug#8534: 24.0.50; Documentation bug in ns-read-file-name
Date: Sun, 24 Apr 2011 22:34:49 +0200 (CEST)
[Eli Zaretskii <eliz <at> gnu.org> (2011-04-24 18:28:42 UTC)]

> > I can patch up the docstring if you explain to me what the opposite of
> > "read a file name for saving" is, and what is the difference between the
> > two kinds of file dialogs (I don't use OSX).
> 
> I guess it means that "non-nil" is backwards, as this part of
> ns-read-file-name shows:
> 
>   panel = NILP (isLoad) ?
>     (id)[EmacsSavePanel savePanel] : (id)[EmacsOpenPanel openPanel];
> 
> This seems to say that if isLoad is non-nil, we pop up a File Open
> dialog, while when it's nil, we pop up a File Save dialog.

That is exactly correct. And the former dialog only lets you select an
existing file, while the latter lets you navigate to a folder and type
a filename.

- Harald




This bug report was last modified 14 years and 89 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.