unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: juri@jurta.org, ich@frank-schmitt.net, emacs-devel@gnu.org
Subject: Re: GTK file selector
Date: Thu, 22 Dec 2005 10:27:17 +0100 (CET)	[thread overview]
Message-ID: <200512220927.jBM9RHcE021048@coolsville.localdomain> (raw)
In-Reply-To: <E1EowY4-0000Xi-UU@fencepost.gnu.org> "from Richard M. Stallman at Dec 21, 2005 00:30:00 am"

>     I don't know, but if some lisp code sets mustmatch to t, it probably  
>     expects the returned file name to be an existing file.
> 
> Not for the Open File menu item!  The only reason we made that pass t
> for MUSTMATCH is that someone thought that's appropriate for Open File
> menu items.

Actually the reason was not just that someone thought it would be appropriate,
but that the GTK/OSX (and perhaps W32) file dialogs more or less require it.

For the new GTK file chooser, if you don't specify that it is selecting
existing files, it does not show the directory/file tree (you have to click
on a toggle to see it).  Also, if we don't tell the new file chooser that
it is opening an existing file and the user selects an existing file, the
file chooser will pop up a dialog that asks the user if the file selected
should be replaced.  So, for the new file chooser, the behaviour between
opening an existing file and saving a file is quite different.  That is
what motivated the difference between new and open file in the current
Emacs.

But the old GTK file dialog does not make any distinction between saving and
opening, so for that one we could pass nil for MUSTMATCH.

> If it works better, in practical terms, when MUSTMATCH is nil,
> we can make it set MUSTMATCH to nil!

Yes it can be done.  But is it really worthwhile for a dialog that is
not default in the first place, and that will probably be gone from GTK soon?

	Jan D.

  reply	other threads:[~2005-12-22  9:27 UTC|newest]

Thread overview: 95+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-14  9:27 GTK file selector Jérôme Marant
2005-12-14 14:06 ` Aidan Kehoe
2005-12-14 14:38   ` Jérôme Marant
2005-12-14 19:41     ` Eli Zaretskii
2005-12-14 20:33       ` Jérôme Marant
2005-12-14 20:00     ` Jan Djärv
2005-12-16 20:10       ` Jérôme Marant
2005-12-16 20:16         ` Jan Djärv
2005-12-16 20:28           ` Jérôme Marant
2005-12-16 22:00         ` Paul Pogonyshev
2005-12-14 15:25 ` Mario Domenech Goulart
2005-12-14 20:30   ` Jérôme Marant
2005-12-14 15:28 ` Frank Schmitt
2005-12-15  9:00   ` Stephen Berman
2005-12-16  1:52     ` Richard M. Stallman
2005-12-15 12:59   ` Juri Linkov
2005-12-15 15:52     ` Aidan Kehoe
2005-12-16  7:56       ` Juri Linkov
2005-12-16 11:38         ` Aidan Kehoe
2005-12-16 12:49           ` Juri Linkov
2005-12-16 15:40             ` Romain Francoise
2005-12-17 10:44               ` Kaloian Doganov
2005-12-17 15:16                 ` Romain Francoise
2005-12-16 16:27             ` Kim F. Storm
2005-12-16 20:54             ` Chong Yidong
2005-12-16 20:08           ` Nick Roberts
2005-12-16 22:23             ` David Kastrup
2005-12-16 23:23               ` Jérôme Marant
2005-12-16 23:38                 ` David Kastrup
2005-12-17 13:05                   ` Jérôme Marant
2005-12-17 15:22                     ` David Kastrup
2005-12-17 22:21                       ` Aidan Kehoe
2005-12-18  0:38                         ` David Kastrup
2005-12-18 11:07                           ` Aidan Kehoe
2005-12-18 12:56                       ` Jérôme Marant
2005-12-18 13:40                         ` David Kastrup
2005-12-18 17:37                           ` Stephen J. Turnbull
2005-12-18 17:57                             ` David Kastrup
2005-12-18 20:37                         ` Xavier Maillard
2005-12-18 22:36                           ` Miles Bader
2005-12-18 23:33                             ` Stefan Monnier
2005-12-19 14:07                             ` Xavier Maillard
2005-12-19  1:41                           ` Tom Tromey
2005-12-19  2:26                             ` Alfred M. Szmidt
2005-12-19  5:33                               ` Tom Tromey
2005-12-18 22:33                         ` Miles Bader
2005-12-17 15:27                     ` Eli Zaretskii
2005-12-17 22:02               ` Aidan Kehoe
2005-12-18 20:59                 ` Juri Linkov
2005-12-22 15:26                 ` Lőrentey Károly
2005-12-17 16:22             ` Stephen J. Turnbull
2005-12-18  5:24               ` Nick Roberts
2005-12-18 10:25                 ` Aidan Kehoe
2005-12-18 12:23                   ` David Kastrup
2005-12-18 12:47                     ` Aidan Kehoe
2005-12-18 12:57                       ` David Kastrup
2005-12-18 12:14                 ` David Kastrup
2005-12-18 14:47                 ` Stephen J. Turnbull
2005-12-18 15:07                   ` David Kastrup
2005-12-18 19:26                   ` Eli Zaretskii
2005-12-19  4:38                   ` Richard M. Stallman
2005-12-17 16:52           ` Nikita Danilov
2005-12-16 20:13     ` Jan Djärv
2005-12-17 10:57       ` Juri Linkov
2005-12-18 17:02         ` Jan D.
2005-12-19  4:40           ` Richard M. Stallman
2005-12-19 23:18             ` Jan D.
2005-12-20  0:36               ` Jan D.
2005-12-20 16:33                 ` Richard M. Stallman
2005-12-20 19:21                   ` Jan D.
2005-12-21  5:30                     ` Richard M. Stallman
2005-12-22  9:27                       ` Jan D. [this message]
2005-12-22 22:20                         ` Richard M. Stallman
2005-12-23  0:09                           ` David Kastrup
2005-12-23 11:38                           ` Jan D.
2005-12-23 18:09                             ` Richard M. Stallman
2005-12-24 20:29                               ` Jan D.
2005-12-25 19:06                                 ` Richard M. Stallman
2005-12-27 10:47                                   ` Jan D.
2005-12-27 13:31                                     ` Jan D.
2005-12-27 16:42                                       ` Stefan Monnier
2005-12-28 10:50                                         ` Jan D.
2005-12-20  5:32               ` Richard M. Stallman
2005-12-20  6:35                 ` Jan D.
2005-12-21  2:58                   ` Richard M. Stallman
2005-12-19 23:45             ` Richard M. Stallman
2005-12-17 13:06       ` Jérôme Marant
2005-12-14 16:18 ` Reiner Steib
2005-12-14 21:23   ` Jérôme Marant
2005-12-14 16:20 ` Emfox Zhou
2005-12-15  2:08 ` Richard M. Stallman
2005-12-16 20:05   ` Jérôme Marant
  -- strict thread matches above, loose matches on Subject: below --
2005-12-16 18:53 Pierre-Charles David
2005-12-17 10:57 ` Juri Linkov
2005-12-18 17:02   ` Jan D.

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200512220927.jBM9RHcE021048@coolsville.localdomain \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=ich@frank-schmitt.net \
    --cc=juri@jurta.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).