From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.bugs Subject: bug#8534: 24.0.50; Documentation bug in ns-read-file-name Date: Fri, 22 Apr 2011 12:50:36 +0200 (CEST) Message-ID: <20110422.125036.50362026316335083.hanche@math.ntnu.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1303470459 8348 80.91.229.12 (22 Apr 2011 11:07:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2011 11:07:39 +0000 (UTC) To: 8534@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 22 13:07:35 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QDED1-00052f-8G for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Apr 2011 13:07:35 +0200 Original-Received: from localhost ([::1]:48613 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDED0-00045M-80 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Apr 2011 07:07:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDECx-00045H-GS for bug-gnu-emacs@gnu.org; Fri, 22 Apr 2011 07:07:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDECw-0004cL-KB for bug-gnu-emacs@gnu.org; Fri, 22 Apr 2011 07:07:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDECw-0004cH-HP for bug-gnu-emacs@gnu.org; Fri, 22 Apr 2011 07:07:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QDDx0-0004F7-E1; Fri, 22 Apr 2011 06:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Harald Hanche-Olsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Apr 2011 10:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8534 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130346945816296 (code B ref -1); Fri, 22 Apr 2011 10:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Apr 2011 10:50:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QDDwv-0004En-12 for submit@debbugs.gnu.org; Fri, 22 Apr 2011 06:50:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QDDwr-0004EZ-6i for submit@debbugs.gnu.org; Fri, 22 Apr 2011 06:50:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDDwl-0002GO-HL for submit@debbugs.gnu.org; Fri, 22 Apr 2011 06:50:48 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:43070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDDwl-0002GK-D8 for submit@debbugs.gnu.org; Fri, 22 Apr 2011 06:50:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QDDwk-0003A2-BJ for bug-gnu-emacs@gnu.org; Fri, 22 Apr 2011 06:50:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QDDwj-0002GA-CX for bug-gnu-emacs@gnu.org; Fri, 22 Apr 2011 06:50:46 -0400 Original-Received: from anne.math.ntnu.no ([129.241.15.150]:52049) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QDDwi-0002G0-Ug for bug-gnu-emacs@gnu.org; Fri, 22 Apr 2011 06:50:45 -0400 Original-Received: (qmail 15999 invoked from network); 22 Apr 2011 10:50:41 -0000 Original-Received: from gauss.math.ntnu.no (HELO localhost) (hanche@129.241.15.58) by anne.math.ntnu.no with ESMTPA; 22 Apr 2011 10:50:41 -0000 X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 6.3.50 on Emacs 24.0.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 22 Apr 2011 06:51:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45942 Archived-At: 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. On a side note, when the function is called (with ISLOAD = nil) and you select an existing file, the usual warning pane about overwriting an existing file pops up briefly before the dialog vanishes and the function returns the chosen filename. It is not clear to me if this is the intended behaviour, but I find it confusing. It would have been better, I think, to let the save dialog do its usual thing, and then for the caller of ns-read-file-name to assume that the user has authorized the overwriting of a pre-existing file with the same name. In GNU Emacs 24.0.50.1 (x86_64-apple-darwin10.7.0, NS apple-appkit-1038.35) of 2011-04-21 on mack Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' - Harald