From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lajos Bodnar Newsgroups: gmane.emacs.help Subject: Re: menu command Date: Mon, 27 Aug 2018 15:38:06 +0200 Message-ID: References: <20180827112150.GA16347@tuxteam.de> <20180827130300.GD16347@tuxteam.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1535377014 10577 195.159.176.226 (27 Aug 2018 13:36:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2018 13:36:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 27 15:36:50 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuHhK-0002eX-4F for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2018 15:36:50 +0200 Original-Received: from localhost ([::1]:53305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuHjQ-0007OO-Eo for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Aug 2018 09:39:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuHim-0007LY-J7 for help-gnu-emacs@gnu.org; Mon, 27 Aug 2018 09:38:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuHil-0002ah-Et for help-gnu-emacs@gnu.org; Mon, 27 Aug 2018 09:38:20 -0400 Original-Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]:37033) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuHil-0002aT-8k for help-gnu-emacs@gnu.org; Mon, 27 Aug 2018 09:38:19 -0400 Original-Received: by mail-it0-x242.google.com with SMTP id h20-v6so10469818itf.2 for ; Mon, 27 Aug 2018 06:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+aqFbO6z+I899ag66eQEurzrr697Ti8HBnemOyZMeFw=; b=qpHmhJhGsqOtiMIk366DnPZwf6/88ptCyf/+5dsfVFsKgROxEEYpDd7Wzq9H2yPgEl hHftORNXb8/oiI+t8CsgKlVfxF1gwYzwSmPu7CIZed/wdHnB6XhJJsJHKWBDGlH3kvup d2S6TiKb9FN2rXS9ZfPRnROgyHTuGRLQ1fvqnVBOTgIL77Jv20mSVuUOci69GeFraLzD Non22IzpgSYuXt+gYKZkTmhcLYby31UT3ylzozO2ZmJpAdgZhdV3S/ICKshZy9v/jeBH Mw0HkSGTeK6phz2Hwhd7RDrgqRg/wyUbLw22K0ZKk98mT/tLRB1i1lRyTV8cCWq/ESIG 2tOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+aqFbO6z+I899ag66eQEurzrr697Ti8HBnemOyZMeFw=; b=Fvy8e4isj42JofLZpGaV55Cbi8MLx6to0gdjKVbnh7ylx/gFe4ZFtcgVlMZ2d5VeUh XszUm3tUmnRlQXwx0bRf+4RZ7MIUgoFcQPM6l3PE133pGyOBSq0JtZ99U8rAFGDch781 LS9TwGWJ7fdl4N3XBCc84chW8tTVi1cPEOPtufDYpYuyOB5mxWvGb0IpC3BWRuRLFPGR yKFPoOyF9KUgaaPrk7k2HkLLnT4n4uy8NTGxqVxgx8M/pRpbMMMtz51i171ftryx8e33 H5RydriYzgJW61xslC75wa4gKfR2hsRlbjHP2WqFflNUsrZtOj+pB6cCtB0+mXHOXmSa L5qw== X-Gm-Message-State: APzg51BJV92nMsMUeZnd5VGQX+EztKR1Y+4eTXNHKCuhJlKd90XIZLNi y0qdRuZUFzmkAjIT6peqM9pTx5Ly6TF0SKW4m8V9h+ym7k0= X-Google-Smtp-Source: ANB0VdbqVx1j8Y2o3OrzsieU1dH8Rn9UPYGdmThdpjRVO4W2co/AB87X6BFqlPkjW2N/H8nm8ZqIW8/BnxDllxdHIJE= X-Received: by 2002:a02:9288:: with SMTP id b8-v6mr10513119jah.126.1535377098450; Mon, 27 Aug 2018 06:38:18 -0700 (PDT) In-Reply-To: <20180827130300.GD16347@tuxteam.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::242 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117771 Archived-At: Hi Tomas, Yes it's a correct answer. I found it before and I haven't seen that it's working only if I use the mouse ... I'd like to avoid the mouse click and external program (getfile.exe) in this case. thanks again! regards, Lajos On Mon, Aug 27, 2018 at 3:03 PM wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Mon, Aug 27, 2018 at 02:19:24PM +0200, Lajos Bodnar wrote: > > Thanks, > > I haven't found command in the "describe-key" result which open a > > filedialog. > > Ah, I think I get it now: what confuses you is the opening > of a GUI like file dialog? > > If I got you right this time, the best answer is in the > source code: > > `find-file' calls `find-file-read-args' to to ask the user which > file name (s)he wants. This one calls `read-file-name', which has > a pretty extensive documentation string. I insert the relevant > part here: > > If this command was invoked with the mouse, use a graphical file > dialog if =E2=80=98use-dialog-box=E2=80=99 is non-nil, and the window= system or X > toolkit in use provides a file dialog box, and DIR is not a > remote file. For graphical file dialogs, any of the special values > of MUSTMATCH =E2=80=98confirm=E2=80=99 and =E2=80=98confirm-after-com= pletion=E2=80=99 are > treated as equivalent to nil. Some graphical file dialogs respect > a MUSTMATCH value of t, and some do not (or it only has a cosmetic > effect, and does not actually prevent the user from entering a > non-existent file). > > So this is the mechanism which adapts to how the user invoked `find-file'= : > if the user used keys, then the question appears in the minibuffer, but > if the user clicked on a menu, (s)he gets a GUI-like file browser (to > me that makes a lot of sense). > > I hope I've understood your question better now. > > Cheers > - -- tom=C3=A1s > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > > iEYEARECAAYFAluD9oQACgkQBcgs9XrR2kYXNACfYdvSKA/fgTkT/FYC9v4cp6mE > YiwAniDADh9f6yZgxZvI7lnoKG26Um/l > =3DcJi4 > -----END PGP SIGNATURE----- >