[Top][All Lists]

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

[h-e-w] Re: Traditional find-file vs. file open dialog?

From: John Paul Wallington
Subject: [h-e-w] Re: Traditional find-file vs. file open dialog?
Date: 30 Jul 2002 15:03:32 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Rob Allen <address@hidden> wrote:
> Unfortunately, use-dialog-box only applies to commands initiated using
> the mouse.
> How do I get gnu emacs to use the dialog box for the keyboard command
> c-x,c-f ?

Maybe you can bind `last-nonmenu-event' to nil at the right moment?

This appears to work in LessTif (lightly tested):

(defadvice read-file-name (around use-dialog activate)
  "Always use file selection dialog, if `use-dialog-box' is non-nil."
  (let ((last-nonmenu-event nil))

John Paul Wallington

reply via email to

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