From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: emacs <--> file-browser as coroutines Date: Mon, 27 Jun 2016 14:18:10 +0600 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1467015542 7290 80.91.229.3 (27 Jun 2016 08:19:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2016 08:19:02 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Rustom Mody Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 27 10:19:01 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bHRkz-0001z6-5q for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 10:19:01 +0200 Original-Received: from localhost ([::1]:57123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHRky-00042x-DC for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jun 2016 04:19:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHRkX-00042p-Bs for help-gnu-emacs@gnu.org; Mon, 27 Jun 2016 04:18:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHRkV-0005M6-9f for help-gnu-emacs@gnu.org; Mon, 27 Jun 2016 04:18:32 -0400 Original-Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:33596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHRkV-0005LB-1d for help-gnu-emacs@gnu.org; Mon, 27 Jun 2016 04:18:31 -0400 Original-Received: by mail-lf0-x236.google.com with SMTP id f6so150724072lfg.0 for ; Mon, 27 Jun 2016 01:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=nTj1QT0O55qkU+62zj4glvWPbVL2H6bhxwHH9x05lhs=; b=KixiOrE0/sFpm9f2tg7noNB1LRiH5X1Z2YmxwngkSEEW0bHDhvRqtmt3xSpV1u6RJz TP5tcEn2BTHcUcWHBXH7O69rQPZ+8UpPZ30F7+EbSCwzoBp1OjWlTvP9dIB6R5dmV0HV cGOiGKzGGnf/AotNvapdp6E/RGd0wDQljl5aP0/odABr3ItGOXF4lBF7219K4JgX5gDs 2Tga6Jcd/Fan1/FXM4B6tyjRGvjDONJkBag3uiIUQWAcUkUeMyCsM7JAcpaMNjZ2Ph9r 91Et5wbitlVHO/bragEvYC880KLWai2docYUmZoKwO8rR2ilo5zCJ9crcnGtrHKDB6oK Jg8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=nTj1QT0O55qkU+62zj4glvWPbVL2H6bhxwHH9x05lhs=; b=bSeYCHwze08ANrxuPoowqTiNedBIK0Qz1GL1Bpmo8QynDBvCfgPLXRuQDAzKAe25Mz pQ2WcuXz2FxPy+L1tgJfbKf/uUA9zWcyCDe1QSgl1xUUg+kpsJReeXkUrM4z4hWDfoo3 vL2mvm4GBf2wkKXEx46N4Gg3w659lsHjI99xisO5nfr5JfGIHR+xL4mr8T93bj1E2t8f nqPoEjNpd1m8p6WU8y/4+5bWeWEk0vEsPyZNw6yUjVc1mfHX5qL4B+2Z1YtOIIgklyUz Dk2980sWaXBfoePUAc45KuKefm4rvNMVJNHPOtD8k4C8u26bkKnyN25WfnvBpaEDRRTD 2AWw== X-Gm-Message-State: ALyK8tIA3ZTTHCszSWBttKUmERL5QInu6diJlb3fWzowFw/B0tShOW9x5NF/MVEAVNMmG2PHLmSd9BE8TZfLgA== X-Received: by 10.46.9.203 with SMTP id 194mr4380454ljj.61.1467015510123; Mon, 27 Jun 2016 01:18:30 -0700 (PDT) Original-Received: by 10.114.182.164 with HTTP; Mon, 27 Jun 2016 01:18:10 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: XAfWM3-zA6z3wU8saiw0rpEZ9rw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::236 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:110603 Archived-At: On Mon, Jun 27, 2016 at 1:09 PM, Rustom Mody wrote: > The second (needs first) is more experimental -- its about emacs not using > its usual C-x C-f method of opening files but calling out to the file > browser > [In my experiments that's nautilus] > Similar on other gnu-linux-variants should be much the same If you pull down the File menu and select the Open File item there or click on the Open File button on the toolbar, you will be presented with an Open File dialog that is specific to and appropriate for your desktop environment. runs the command menu-find-file-existing, which is an interactive compiled Lisp function in `menu-bar.el'. The actual code that decides whether to ask for a file name in the minibuffer or to pop up a dialog is in read-file-name-default and next-read-file-uses-dialog-p. The latter returns t if the current frame is graphical, the variables use_file_dialog and use_dialog box are non-nil, and the command was invoked with the mouse. You might be able to circumvent that last condition and get read-file-name-default to use the dialog even if invoked from the keyboard. The file manager as such is usually not an appropriate method of asking for a file name in response to an Open File command; that calls for a modal dialog. However, the file manager can invoke Emacs or emacsclient in response to a double-click on a file of a suitable type, to a menu or context menu command, or a drag-and-drop of a file into an Emacs window or on an Emacs launcher button or icon. (All of the above actually works for me in Thunar, provided that I set up file type associations.)