From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: make project--find-in-file generic, add interactive filename to project-find-file Date: Thu, 28 Jan 2016 16:11:51 -0500 Message-ID: References: <86wpqu8qf9.fsf@stephe-leake.org> <56A9DDA8.9080504@yandex.ru> <86si1i813n.fsf@stephe-leake.org> <56A9EF4B.7020406@yandex.ru> <56AA6CCA.10103@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454015542 4999 80.91.229.3 (28 Jan 2016 21:12:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jan 2016 21:12:22 +0000 (UTC) Cc: Stephen Leake , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 28 22:12:13 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aOtrP-0000Nf-Hd for ged-emacs-devel@m.gmane.org; Thu, 28 Jan 2016 22:12:11 +0100 Original-Received: from localhost ([::1]:58583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOtrO-00087x-Kk for ged-emacs-devel@m.gmane.org; Thu, 28 Jan 2016 16:12:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOtrB-00087C-4Z for emacs-devel@gnu.org; Thu, 28 Jan 2016 16:11:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOtr7-0000y7-W7 for emacs-devel@gnu.org; Thu, 28 Jan 2016 16:11:57 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:54368) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOtr7-0000y1-SO for emacs-devel@gnu.org; Thu, 28 Jan 2016 16:11:53 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A+FgA731xV/3+SCkxcgxCEAoVVwwsEAgKBPD0QAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQcBAQEBHos6hQUHhC0Fi0Rspw+BRSOBZlWBWyCCeAEBAQ X-IPAS-Result: A0A+FgA731xV/3+SCkxcgxCEAoVVwwsEAgKBPD0QAQEBAQEBAYEKQQWDXQEBAwFWIwULCw4mEhQYDSSINwjPIwEBAQcBAQEBHos6hQUHhC0Fi0Rspw+BRSOBZlWBWyCCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="191807180" Original-Received: from 76-10-146-127.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([76.10.146.127]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Jan 2016 16:11:52 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id B8C12AE9CF; Thu, 28 Jan 2016 16:11:51 -0500 (EST) In-Reply-To: <56AA6CCA.10103@yandex.ru> (Dmitry Gutov's message of "Thu, 28 Jan 2016 22:32:26 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198955 Archived-At: > But in the current use case, the "filename at point" will almost always > _not_ be in the completion table. And it may even have several expansions, > not just one. Because it's only a part of the file name: maybe it's the base > name, or maybe it doesn't even have an extension. So, we want to check it only if it's actually returned. Sounds right. >> This would also allow users to replace this function with one which >> handles DEFAULT differently (e.g. inserting it as initial-input but >> pre-selected so that delete-selection-mode deletes it in many cases). > I'm not sure that delete-selection-mode is the answer: It's not an answer, it's an alternative UI (which is the standard in pretty much every other GUI application). Stefan