From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: make project--find-in-file generic, add interactive filename to project-find-file Date: Fri, 29 Jan 2016 05:05:27 +0300 Message-ID: <56AAC8E7.8090601@yandex.ru> 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; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1454033153 14179 80.91.229.3 (29 Jan 2016 02:05:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jan 2016 02:05:53 +0000 (UTC) Cc: Stephen Leake , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 29 03:05:53 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 1aOyRb-0002v5-I8 for ged-emacs-devel@m.gmane.org; Fri, 29 Jan 2016 03:05:51 +0100 Original-Received: from localhost ([::1]:59394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOyRV-0003sj-U6 for ged-emacs-devel@m.gmane.org; Thu, 28 Jan 2016 21:05:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOyRI-0003sT-OM for emacs-devel@gnu.org; Thu, 28 Jan 2016 21:05:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOyRF-0006A9-JO for emacs-devel@gnu.org; Thu, 28 Jan 2016 21:05:32 -0500 Original-Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:35007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOyRF-00069f-9o for emacs-devel@gnu.org; Thu, 28 Jan 2016 21:05:29 -0500 Original-Received: by mail-lb0-x234.google.com with SMTP id bc4so33581245lbc.2 for ; Thu, 28 Jan 2016 18:05:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=LHwT2iNne88lAc3/oKG2kSfV5yIrHVvzJgkZd020Y8s=; b=lqQXTIHiymywyKHxixbhMDd0hUsAspesk62HR7lxGsog+H9lP3zumvVAZ+L66Ynfmu 1fXhunEoBAMTXasGE9DxFiEzKTFFZl4r8Qh33u2h6SbDT3hKPBfPQRTOWdfq6kWvkiwm YXH+ApoS3FuOfY9f9ACO5HKN+ddz8CF/FcCcWb6BGgCoaXjvZdKINsBfTfEVwZr/mCua gLfSkfAwRowJw8hvid8ZvohDywsAbdz++b4Qz9p6g2+Cw1pD71VzguY1i2Vs+s9K1P4b Mta+Nc9VZ0BKmGKqswFFNIZu9QKloDr6k6yGZg7HlfQ3djVzkoaj1PQmPoRj3OuX6+Dr 1tnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=LHwT2iNne88lAc3/oKG2kSfV5yIrHVvzJgkZd020Y8s=; b=S4MLm9A3+0cLGeZlbMHY6qurJTazbhsjaGvEh6Mw+Q34eBCCeKGrYhayDZM/p3YuXA 6/2vS+DLgzhfEhO+3ugPUBIbxAMuU39tdnjEOutc6TKDMJln3vjz6BPO05YKgrbcEMGM pIgUhA+SZduq97pLnnwh2d1HgRB0bWe356Rw273WwylyFW9VO8oLogUtWti0swlwKsB7 5RohGX9h+qfozJAw7uHl+uWCzEVJiGaG7jZukZKSfd1TPYk+9mCq+bF/c/0P8FK2Z4TD 33DB3LGWcN3NOJ8yzMvTVvhUsDRtFHvGKoQtxGnxBjCa2SMeyqui3z86K+b0ZWe+UPQT qFww== X-Gm-Message-State: AG10YORLSDo0zcLj5aBqyKgELkwI5fIpTe7AScOj1otH+6fj+Igq2rrqyDGqSgG22ztLpw== X-Received: by 10.112.172.233 with SMTP id bf9mr2288021lbc.121.1454033128548; Thu, 28 Jan 2016 18:05:28 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.222]) by smtp.googlemail.com with ESMTPSA id m21sm1768587lfe.29.2016.01.28.18.05.27 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 18:05:27 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::234 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:198971 Archived-At: On 01/29/2016 12:11 AM, Stefan Monnier wrote: >>> 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). How would the user avoid deleting the default value, though? In other GUI applications, I'd click on the input, or press an arrow key. We avoid doing the former in Emacs. And probably neither would help anyway, because the region follows point in Emacs, instead of disappearing as soon as the user moves the cursor without holding Shift, like it happens in other applications. We seem to deal with situations like that by putting the cursor before the input, so the user can press C-k. I probably prefer the M-n mechanics, though.