From: "Jan D." <jan.h.d@swipnet.se>
Cc: steventamm@mac.com, miles@gnu.org, mmoll@rice.edu,
monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: find-file dialog in Carbon Emacs is broken
Date: Mon, 11 Oct 2004 12:47:52 +0200 [thread overview]
Message-ID: <416A64D8.2050404@swipnet.se> (raw)
In-Reply-To: <E1CGfQF-0002rV-GO@fencepost.gnu.org>
> 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:
> Another distinction is whether or not we mean to open a file or a directory.
> To make the distinction in both the w32 & OSX code, we check for the prompt
> starting with "Dired". That makes me ill.
I don't know what is best, to have a new function that reads directories, or to
extend the MUST-MATCH parameter with some value that indicates a directory read.
>
> Replace "Open File" with "Open old file" and "New buffer".
>
> It is not a good idea to encourage users to create a buffer to edit a new
> file without specifying the file name. So instead let's have "Open File"
> and "New File"; "New File" should use the Save dialog to choose the file
> name.
>
> See any problem with that?
No, that is okay.
Jan D.
next prev parent reply other threads:[~2004-10-11 10:47 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-08 22:55 find-file dialog in Carbon Emacs is broken Mark Moll
2004-10-09 16:40 ` Steven Tamm
2004-10-09 17:14 ` Stefan
2004-10-09 17:26 ` David Kastrup
2004-10-09 17:33 ` Jan D.
2004-10-09 18:43 ` Miles Bader
2004-10-09 19:15 ` Jan D.
2004-10-09 19:27 ` Miles Bader
2004-10-09 20:20 ` Jan D.
2004-10-10 3:07 ` Steven Tamm
2004-10-10 15:15 ` Richard Stallman
2004-10-11 10:47 ` Jan D. [this message]
2004-10-11 14:32 ` Stefan
2004-10-11 17:01 ` Jan D.
2004-10-11 21:38 ` Kim F. Storm
2004-10-11 21:58 ` Jason Rumney
2004-10-11 22:24 ` Jan D.
2004-10-12 8:58 ` Richard Stallman
2004-10-12 9:24 ` David Kastrup
2004-10-12 8:57 ` Richard Stallman
2004-10-12 8:56 ` Richard Stallman
2004-10-10 15:15 ` Richard Stallman
2004-10-10 15:15 ` Richard Stallman
2004-10-10 20:25 ` David Kastrup
2004-11-02 8:28 ` Need w32 help (was find-file dialog in Carbon Emacs is broken) Jan D.
2004-11-02 8:46 ` Dhruva Krishnamurthy
2004-11-02 8:57 ` Need w32 help Jason Rumney
2004-11-02 10:49 ` Jan D.
2004-11-02 11:11 ` Jason Rumney
2004-11-02 12:44 ` Jan D.
2004-11-02 10:37 ` Need w32 help (was find-file dialog in Carbon Emacs is broken) Jan D.
2004-10-09 18:01 ` find-file dialog in Carbon Emacs is broken Jason Rumney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=416A64D8.2050404@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=miles@gnu.org \
--cc=mmoll@rice.edu \
--cc=monnier@iro.umontreal.ca \
--cc=steventamm@mac.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.