* A question about GTK file selection dialog and `use-dialog-box'
@ 2003-11-27 3:49 Peter S Galbraith
2003-11-27 12:38 ` David Kastrup
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Peter S Galbraith @ 2003-11-27 3:49 UTC (permalink / raw)
Hi all,
Using a GTK build of CVS Emacs, I see that `read-file-name' uses a GTK
file selector instead of the minbuffer. I had to disable it because
it's very awkward to use compared to the minibuffer (no history or
completion). The only advertised way to disable it is to unset
`use-dialog-box', which also disables the nice `y-or-n-p' and
`yes-or-no-p' pop-ups (I like thoese!).
It would be great if the GTK file selector's minibuffer area acted like
the minibuffer (history and completion). If not, then consider
providing a way to disable the file selector without disabling
`y-or-n-p' and `yes-or-no-p' pop-ups.
Thanks,
Peter
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question about GTK file selection dialog and `use-dialog-box'
2003-11-27 3:49 A question about GTK file selection dialog and `use-dialog-box' Peter S Galbraith
@ 2003-11-27 12:38 ` David Kastrup
2003-11-27 14:35 ` Stefan Monnier
[not found] ` <dak@gnu.org>
2003-11-27 16:17 ` Danilo Segan
2003-11-29 11:15 ` Jan D.
2 siblings, 2 replies; 10+ messages in thread
From: David Kastrup @ 2003-11-27 12:38 UTC (permalink / raw)
Cc: emacs-devel
Peter S Galbraith <p.galbraith@globetrotter.net> writes:
> Using a GTK build of CVS Emacs, I see that `read-file-name' uses a
> GTK file selector instead of the minbuffer. I had to disable it
> because it's very awkward to use compared to the minibuffer (no
> history or completion). The only advertised way to disable it is to
> unset `use-dialog-box', which also disables the nice `y-or-n-p' and
> `yes-or-no-p' pop-ups (I like thoese!).
>
> It would be great if the GTK file selector's minibuffer area acted like
> the minibuffer (history and completion). If not, then consider
> providing a way to disable the file selector without disabling
> `y-or-n-p' and `yes-or-no-p' pop-ups.
It only uses the GTK file selector if the triggering event is a mouse
event. So if you are using the keyboard, you won't get to see a GTK
file selector.
Unless, say, you are hitting upon a bug of AUCTeX that can trigger
calling read-file-name from update-menu-hook or so (which apparently
does not count as a keyboard event in that context). The solution, of
course, is to fix that by delaying the guilty functions until the
LaTeX menu or respective keyboard functions actually get called.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question about GTK file selection dialog and `use-dialog-box'
2003-11-27 12:38 ` David Kastrup
@ 2003-11-27 14:35 ` Stefan Monnier
[not found] ` <dak@gnu.org>
1 sibling, 0 replies; 10+ messages in thread
From: Stefan Monnier @ 2003-11-27 14:35 UTC (permalink / raw)
Cc: Peter S Galbraith, emacs-devel
> Unless, say, you are hitting upon a bug of AUCTeX that can trigger
> calling read-file-name from update-menu-hook or so (which apparently
> does not count as a keyboard event in that context).
I believe the behavior depends on the last actual event (although the event
may be totally unrelated to the execution of the update-menu-hook).
Stefan
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <dak@gnu.org>]
* Re: A question about GTK file selection dialog and `use-dialog-box'
[not found] ` <dak@gnu.org>
@ 2003-11-28 1:42 ` Peter S Galbraith
0 siblings, 0 replies; 10+ messages in thread
From: Peter S Galbraith @ 2003-11-28 1:42 UTC (permalink / raw)
David Kastrup <dak@gnu.org> wrote:
> Peter S Galbraith <p.galbraith@globetrotter.net> writes:
>
> > Using a GTK build of CVS Emacs, I see that `read-file-name' uses a
> > GTK file selector instead of the minbuffer. I had to disable it
> > because it's very awkward to use compared to the minibuffer (no
> > history or completion). The only advertised way to disable it is to
> > unset `use-dialog-box', which also disables the nice `y-or-n-p' and
> > `yes-or-no-p' pop-ups (I like thoese!).
> >
> > It would be great if the GTK file selector's minibuffer area acted like
> > the minibuffer (history and completion). If not, then consider
> > providing a way to disable the file selector without disabling
> > `y-or-n-p' and `yes-or-no-p' pop-ups.
>
> It only uses the GTK file selector if the triggering event is a mouse
> event. So if you are using the keyboard, you won't get to see a GTK
> file selector.
I know, but the GTK file selector doesn't have the required features to
replace the trusty minibuffer for me.
> Unless, say, you are hitting upon a bug of AUCTeX
No, this is when I hit the `compose MIME insertion' toolbar buttom in
MH-E. Hmmm, maybe I can (optionally) locally-bind `use-dialog-box'
within that MH-E command...
Thanks for replying,
Peter
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question about GTK file selection dialog and `use-dialog-box'
2003-11-27 3:49 A question about GTK file selection dialog and `use-dialog-box' Peter S Galbraith
2003-11-27 12:38 ` David Kastrup
@ 2003-11-27 16:17 ` Danilo Segan
[not found] ` <dsegan@gmx.net>
2003-11-29 11:15 ` Jan D.
2 siblings, 1 reply; 10+ messages in thread
From: Danilo Segan @ 2003-11-27 16:17 UTC (permalink / raw)
Cc: emacs-devel
Peter S Galbraith <p.galbraith@globetrotter.net> написа:
>
> It would be great if the GTK file selector's minibuffer area acted like
> the minibuffer (history and completion). If not, then consider
> providing a way to disable the file selector without disabling
> `y-or-n-p' and `yes-or-no-p' pop-ups.
>
Uhm, GTK file selector provides TAB completion since the beginning of
time (or at least for four years).
You just type the few starting letters and press TAB: if it completes
to a directory name, it will enter it (then use "..[TAB]" to go one
level back if you need it), and if it completes to several file
names, it will filter them in the right side of the dialog.
Perhaps you're using some modified file selector dialog, instead of
the original one (Ximian and others have modified it in their
distributions).
Cheers,
Danilo
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: A question about GTK file selection dialog and `use-dialog-box'
2003-11-27 3:49 A question about GTK file selection dialog and `use-dialog-box' Peter S Galbraith
2003-11-27 12:38 ` David Kastrup
2003-11-27 16:17 ` Danilo Segan
@ 2003-11-29 11:15 ` Jan D.
[not found] ` <jan.h.d@swipnet.se>
2 siblings, 1 reply; 10+ messages in thread
From: Jan D. @ 2003-11-29 11:15 UTC (permalink / raw)
Cc: emacs-devel
>
> It would be great if the GTK file selector's minibuffer area acted like
> the minibuffer (history and completion). If not, then consider
> providing a way to disable the file selector without disabling
> `y-or-n-p' and `yes-or-no-p' pop-ups.
I've added a variable use-file-dialog that you can customize.
Jan D.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-11-29 18:41 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-27 3:49 A question about GTK file selection dialog and `use-dialog-box' Peter S Galbraith
2003-11-27 12:38 ` David Kastrup
2003-11-27 14:35 ` Stefan Monnier
[not found] ` <dak@gnu.org>
2003-11-28 1:42 ` Peter S Galbraith
2003-11-27 16:17 ` Danilo Segan
[not found] ` <dsegan@gmx.net>
2003-11-28 1:56 ` Peter S Galbraith
2003-11-28 2:34 ` Danilo Segan
2003-11-28 2:45 ` Peter S Galbraith
2003-11-29 11:15 ` Jan D.
[not found] ` <jan.h.d@swipnet.se>
2003-11-29 18:41 ` Peter S Galbraith
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).