[Top][All Lists]   Re: find-file dialog in Carbon Emacs is
broken  From: Jan D. Date: Mon, 11 Oct 2004 12:47:52 +0200  In
any case, what MUST-MATCH != nil means in Emacs is that the user
can specify any existing file.  If that is not what read-file-
name does now with the Motif toolkit in that case, that's a bug.
Can you fix it?  Okay, then I misunderstood the meaning of MUST-
MATCH.  I think the name is confusing (for me at least).  If an
existing file is wanted, it should be named MUST-EXIST or
something like that.  So we can use MUST-MATCH both for OSX and
GTK.  Basically Emacs will have to change so that commands from
the menu bar and tool bar call a new function that knows if this
is a save or load. We then remove the use of a dialog entirely
from read-file-name.  We could define two new functions, read-
input-file-name and read-output-file-name.  Would this do the
job?  Yes, but if MUST-MATCH already shows this, we can use
that.  But we need  a method for opening a directory, as
explained by Steven Tamm: