emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GTK `read-file-name' dialog


From: Jan D.
Subject: Re: GTK `read-file-name' dialog
Date: Sat, 02 Sep 2006 20:11:51 +0200
User-agent: Thunderbird 1.5.0.5 (X11/20060719)

I have made some changes.  Please try it and see if you find it better.

Thanks,

   Jan D.

Reiner Steib wrote:
$ touch /tmp/foo.bar
$ emacs -Q /tmp/foo.bar

In Emacs, do <File> <Save as> (`write-file'); you'll get this GTK file
selector dialog:

There are some problems here:

- When called e.g. from `write-file' or similar commands,
  `read-file-name' should *not* discard the default file name.  If
  `x-use-old-gtk-file-dialog' is t, the default filename is used.  But
  also with the new (standard) GTK dialog it should be possible to
  supply the default file name as the "Save as" in Firefox[1] also has
  it.

  Note that `read-file-name' is used by several other commands where
  the default file name should be supplied (e.g. saving attachments in
  Gnus: `gnus-mime-save-part'), i.e. the user can simply hit the "Ok"
  button.

- The additional information text ...

| If you don't like this file selector, customize use-file-dialog to
| turn if off, or type C-x C-f to visit files.

  ... doesn't make sense here and it is confusing.  It should be
  displayed only if `read-file-name' is called from `find-file' or
  there should be an optional argument to `read-file-name' to change
  the text.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]