GNU bug report logs -
#8534
24.0.50; Documentation bug in ns-read-file-name
Previous Next
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
> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00
> autolearn=unavailable version=3.3.1
> Resent-From: Chong Yidong <cyd <at> stupidchicken.com>
> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
> Resent-To: owner <at> debbugs.gnu.org
> Resent-CC: bug-gnu-emacs <at> gnu.org
> Resent-Sender: help-debbugs <at> gnu.org
> From: Chong Yidong <cyd <at> stupidchicken.com>
> Date: Sun, 24 Apr 2011 13:51:21 -0400
> Cc: 8534 <at> debbugs.gnu.org
>
> Harald Hanche-Olsen <hanche <at> math.ntnu.no> writes:
>
> > The doc string for ns-read-file-name (defined in src/nsfns.m) says
> >
> > Optional arg ISLOAD, if non-nil, means read a file name for saving.
> >
> > However the exact opposite is true, as the name of the variable also
> > indicates.
>
> 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.
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.