all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#8534: 24.0.50; Documentation bug in ns-read-file-name
@ 2011-04-22 10:50 Harald Hanche-Olsen
  2011-04-24 17:51 ` Chong Yidong
  0 siblings, 1 reply; 8+ messages in thread
From: Harald Hanche-Olsen @ 2011-04-22 10:50 UTC (permalink / raw)
  To: 8534

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-04-26 18:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-22 10:50 bug#8534: 24.0.50; Documentation bug in ns-read-file-name Harald Hanche-Olsen
2011-04-24 17:51 ` Chong Yidong
2011-04-24 18:28   ` Eli Zaretskii
2011-04-24 20:34     ` Harald Hanche-Olsen
2011-04-24 22:52       ` Chong Yidong
2011-04-25  9:00         ` Harald Hanche-Olsen
2011-04-26 18:31           ` Chong Yidong
2011-04-25 13:00         ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.