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: [Emacs-diffs] emacs-25 f8208b6: Document the user-level features of the Xref package Date: Thu, 21 Jan 2016 22:46:03 +0300 Message-ID: <56A1357B.2020601@yandex.ru> References: <20160109191428.26341.44105@vcs.savannah.gnu.org> <5691C9D2.7080905@yandex.ru> <83egdpmo1j.fsf@gnu.org> <56929D6F.2050508@yandex.ru> <834melmfa4.fsf@gnu.org> <5692B1E0.8010100@yandex.ru> <831t9pma4e.fsf@gnu.org> <5693FDFA.2070607@yandex.ru> <83ziwbkj5l.fsf@gnu.org> <5694055E.6050201@yandex.ru> <83si1udcaz.fsf@gnu.org> <569D64AC.1060606@yandex.ru> <83powxbh6c.fsf@gnu.org> <569EB04F.800@yandex.ru> <8337tsc133.fsf@gnu.org> <56A05073.5090100@yandex.ru> <83powu96yo.fsf@gnu.org> <56A1277B.9080001@yandex.ru> <83a8ny92rg.fsf@gnu.org> 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 1453405603 28568 80.91.229.3 (21 Jan 2016 19:46:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 19:46:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 21 20:46:28 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 1aMLBc-0001E6-8W for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2016 20:46:28 +0100 Original-Received: from localhost ([::1]:49543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMLBY-00066C-0l for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2016 14:46:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMLBI-000665-Hw for emacs-devel@gnu.org; Thu, 21 Jan 2016 14:46:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMLBF-0003q4-8X for emacs-devel@gnu.org; Thu, 21 Jan 2016 14:46:08 -0500 Original-Received: from mail-lf0-x233.google.com ([2a00:1450:4010:c07::233]:36338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMLBF-0003pT-0D; Thu, 21 Jan 2016 14:46:05 -0500 Original-Received: by mail-lf0-x233.google.com with SMTP id h129so33952336lfh.3; Thu, 21 Jan 2016 11:46:04 -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=zWTJs+Qcsv2h8YUqDWvqVGh0gMgejCylvUFAsmFKIH0=; b=lPqYzixHZwsonqmEzSxoOmxruVBPSV1+H2hNF+qnAgFleLxsGtg6+DdEVcZeslV93K jt+7qIYkaUnzYClMSt1Mi02AxwyvRoylvaiSVKHBowmVRd2G90CNgTkLE7lGtHhDwDMs Wyq8uggJnJ4t3g8ZITZPRFkseHcKXACVRdujKS8OEsX9mKznZFhZrI1xZJkljQhfzzdg K20du0oV2nDWV88SucmhzipKD0oMOkaRLUVkkpn4jJ5WFK3X+saZbPUgHnixAkOewdPj q+LnGm0TyjuyOqnKgosLfMwDDPZj9v6CIijknQqyl+lJQihaWT7PEhVja9yjI4yvta6V FxpQ== 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=zWTJs+Qcsv2h8YUqDWvqVGh0gMgejCylvUFAsmFKIH0=; b=PIwNU4DsLiioWGL3PitatkQenSjn9LNvt7Pb4Hf2tLGA3MTQiZYxza25edJHlIcS4e assqkhYr484RBO/w0Y+pb+wsrKXX3tBnATKQr1rpKmQ8vQmR6QNLm5D5in/A1JvGozxk uDLzItQnBZabu4Np7BR/SQnpkj5FKDTCKq9AmKPvm//Sja4h2ONSQauXUxwdeWR9BwMg MVOltiKbo1MOvNEePlLlq+Ths+sHcV6WJN37KG9b7LDLXGSfvPvWHNxtIfzAIVTyjpNK sdbsnwVHk+CEQVEdiz537anNnX77AHZXRWhl/roUjtOYr5xN0djuoXM945/CnmN2NkJ9 8LCg== X-Gm-Message-State: ALoCoQlPhSR0El0r6qVQTXcE38NqlRIQrU/Kza+uG2M/jOX8MxepssLk0GgHCH8w3DJnzve28RD3VRVKznCEP1jHuxxvRBuCIQ== X-Received: by 10.25.90.13 with SMTP id o13mr16982298lfb.114.1453405564196; Thu, 21 Jan 2016 11:46:04 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.222]) by smtp.googlemail.com with ESMTPSA id o82sm402166lfo.47.2016.01.21.11.46.03 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jan 2016 11:46:03 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0 In-Reply-To: <83a8ny92rg.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::233 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:198527 Archived-At: On 01/21/2016 10:00 PM, Eli Zaretskii wrote: > But a reference includes a file name, doesn't it? If so, why not > search through those files? My core objection is that "find regexp" is not a semantic query. Whereas all current xref queries are semantic (i.e. require language analysis for best results). So really want some clear justification, rather than "etags has command that does this", and "a user could want this". Without the justification, it would be hard to document the new command anyway. We _couldn't_ just copy "Search through all files listed in tags table" from tags-search docstring. > It probably is for some use cases. But in others, users might want > the other kind. Such as? >> How about xref-query-replace-in-matches? > > Fine with me. You'd agree that tags-query-replace doesn't require a direct replacement then? > It would be OK for xref-find-regexp to do the same. Users who want > the project.el way of doing that can invoke the commands there. (They > should probably be documented in the manual.) We should worry that a user might invoke xref-find-regexp while expecting it to behave like project-find-regexp. Because in most other editors regexp search works more like the latter: it's either in the current file, or across the current project.