From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 55ec674: * lisp/multifile.el: New file, extracted from etags.el Date: Fri, 28 Dec 2018 01:31:57 +0200 Message-ID: References: <20180922154639.23195.66360@vcs0.savannah.gnu.org> <20180922154640.9D58220310@vcs0.savannah.gnu.org> <54108dbc-9d12-06ff-3f1d-151118e9b234@yandex.ru> <87sgyi69iw.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1545953685 23470 195.159.176.226 (27 Dec 2018 23:34:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2018 23:34:45 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Thunderbird/64.0 Cc: Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 28 00:34:41 2018 Return-path: Envelope-to: ged-emacs-devel@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 1gcfAm-0005yY-Rs for ged-emacs-devel@m.gmane.org; Fri, 28 Dec 2018 00:34:40 +0100 Original-Received: from localhost ([127.0.0.1]:55805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcfCt-0006Mq-3p for ged-emacs-devel@m.gmane.org; Thu, 27 Dec 2018 18:36:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcfCi-0006La-Uy for emacs-devel@gnu.org; Thu, 27 Dec 2018 18:36:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcf8D-0002Js-Uw for emacs-devel@gnu.org; Thu, 27 Dec 2018 18:32:06 -0500 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:42150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcf8D-0002ES-Mt for emacs-devel@gnu.org; Thu, 27 Dec 2018 18:32:01 -0500 Original-Received: by mail-lj1-x234.google.com with SMTP id l15-v6so17394322lja.9 for ; Thu, 27 Dec 2018 15:32:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0kjXnToabsB+0wppzyvqJruLZPY+o9OQBgjSI5F49RA=; b=fQR9C/hEP2bIN3UOmE+oR/14t/eLiHzGHyW2Huc/0fn2jks1eGuungvbYLmIsdVGQT 2z1fnr4ptpeInWBIrTjW5W6qQcS0ztMQAKYH/qCjHqZBuNAzqVH5MfoICgOUDdTBw1yS Kh/6Nr5AHYd0L7XYiwyeW4VEuBwh9+lAvoYlrYRMT4DMd6h0CBDmOXZsRXkRuZ6Qg+jn Ky8K+qnBS+vxW2Sa/8SbxxHvL4XjDv21thPcYjKNs6IloCCQJJ93gI+3M8TsFSZIKvc+ U3a2NYIyZq2zaFAA9RcTc7qQvKWr6mKUTTzjtbu6P3FBDd4d8lPGZ9tK/iflUivpnLJL r8QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0kjXnToabsB+0wppzyvqJruLZPY+o9OQBgjSI5F49RA=; b=IxVHgs/42czizImHVp6b1+m/G8T4cnjB0JcmU2PX0jvt/s8zIjB0tfn62T7EtXV2uk 0EVroZk+32y0CYh0uH/srNFkkJIP6r/pFZ2K4mKHVJDMa2p9uZ1D/bBpA9L448qOup8V f9ZkIAFmxtBzB9tRyTVGb2jrnOU0rImWqIKW/0TnXLAecnrQIIvaw4mIjIT1RmCx9+Mh VyxHeu5IeqAc89CwBVqhKWjLJzKz0XJY1YmqaawTlJMJaCR1/q9GWACWscppWGtTk2Q1 v2oLyWwk6To+0SuoUfHNIx1F5ixLlnAUpDnybtgn5BcnJbWx60qx2JZENWt7zTNKq/bu jn0g== X-Gm-Message-State: AA+aEWbS7shrUe/FYToT0J1iZ4q/HLkYCXpE26kOLg7CQ3tfsKKVDguM g1nZYA70xP+WifqkQXxHeJ9fkDGnlNk= X-Google-Smtp-Source: ALg8bN5x1NNfN10mhDFMBOPhWUAIrbp083/bz/73YqrNE83uDHP6Q5c+VgH4EMgbwcaUKCYpEuZa+A== X-Received: by 2002:a2e:5356:: with SMTP id t22-v6mr13952287ljd.26.1545953520178; Thu, 27 Dec 2018 15:32:00 -0800 (PST) Original-Received: from [10.232.14.98] ([195.133.224.50]) by smtp.googlemail.com with ESMTPSA id m4-v6sm8054817ljb.58.2018.12.27.15.31.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Dec 2018 15:31:59 -0800 (PST) In-Reply-To: <87sgyi69iw.fsf@mail.linkov.net> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:232011 Archived-At: On 27.12.2018 22:33, Juri Linkov wrote: > 'git ls-files' seems very fast, and moreover it outputs only relative > paths, not absolute. On TAB completion with too long absolute paths > the list of completions is quite unreadable. That's a question of presentation, not data. And Stefan gave some pertinent suggestions in this thread. Actually, if we didn't manage to have 'find' and 'git ls-files' output in the same format as each other, that would be a problem. > Also is it possible to complete only on file names, not paths? You can input a file name and press RET. If the name is unique, it will be completed fully. Isn't this the best possible scenario? >> OK, so unless somebody objects I'd like to move them to lisp/multifile.el >> and rename to multifile-project-find-regexp and >> multifile-project-query-replace-regexp. > > I think they should mirror everything that makes sense to use in the > multifile project: project-occur, project-grep, ... "multifile project" Stefan, I think Juri is (maybe unknowingly) hinting that the package's name is a bit unfortunate. Every project is multifile (with very rare exceptions). It's not about that. Or maybe I don't understand the suggestion. I'm find with adding project-occur, whatever it might do. As for project-grep, we have project-find-regexp already. I think it's a better name. > But I don't know to what existing command corresponds 'project-search'? > I tried it on the Emacs source tree, but it failed with: It's analogous to tags-search. Which is also an unfortunate name, IMO. > Debugger entered--Lisp error: (compression-error "Opening input file" "error uncompressing empty.zz.gz" "emacs/test/manual/etags/a-src/empty.zz.gz") Does M-x project-find-regexp work in the same situation?