From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: Heino Tiedemann <rotkap@gmx.de>
Subject: GTK `read-file-name' dialog
Date: Sat, 02 Sep 2006 14:03:42 +0200 [thread overview]
Message-ID: <v9lkp2scf5.fsf@marauder.physik.uni-ulm.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 274 bytes --]
M-x report-emacs-bug RET wrote:
> [...]
> Please describe exactly what actions triggered the bug
> and the precise symptoms of the bug:
$ 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:
[-- Attachment #2: Emacs-save-as.png --]
[-- Type: image/png, Size: 20518 bytes --]
[-- Attachment #3: Type: text/plain, Size: 1801 bytes --]
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.
> In GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.8.3)
> of 2006-08-30 on viandante
> X server distributor `The X.Org Foundation', version 11.0.60802000
> configured using `configure '--prefix=/import/xtra/emacs/HEAD'
> '--with-gtk' '--exec-prefix=/import/xtra/emacs/HEAD-i686'
> 'CFLAGS=-DSITELOAD_PURESIZE_EXTRA=200000 -g''
[...]
> Recent input:
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <menu-bar> <file> <write-file>
> M-x r e p o <tab> r <tab> <return>
> Recent messages:
> (emacs -Q /tmp/foo.bar)
> For information about the GNU Project and its goals, type C-h C-p.
> Quit
> Making completion list...
> Loading help-mode...done
> Loading emacsbug...
> Loading regexp-opt...done
> Loading emacsbug...done
Bye, Reiner.
Footnotes:
[1] GTK-"Save as" dialog in Firefox:
[-- Attachment #4: FF-save-as.png --]
[-- Type: image/png, Size: 14219 bytes --]
[-- Attachment #5: Type: text/plain, Size: 100 bytes --]
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
[-- Attachment #6: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2006-09-02 12:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-02 12:03 Reiner Steib [this message]
2006-09-02 18:11 ` GTK `read-file-name' dialog Jan D.
2006-09-04 13:12 ` Reiner Steib
2006-09-04 14:49 ` Jan Djärv
2006-09-05 10:19 ` Reiner Steib
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=v9lkp2scf5.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=rotkap@gmx.de \
/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.