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 23:10:52 +0300 Message-ID: <56A13B4C.6040101@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> <56A1357B.2020601@yandex.ru> <8360ym8zvk.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 1453407072 20918 80.91.229.3 (21 Jan 2016 20:11:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jan 2016 20:11:12 +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 21:11:07 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 1aMLZR-0004S8-CT for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2016 21:11:05 +0100 Original-Received: from localhost ([::1]:49595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMLZQ-0003KQ-Pm for ged-emacs-devel@m.gmane.org; Thu, 21 Jan 2016 15:11:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMLZM-0003KI-Ss for emacs-devel@gnu.org; Thu, 21 Jan 2016 15:11:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMLZH-0002CW-Sk for emacs-devel@gnu.org; Thu, 21 Jan 2016 15:11:00 -0500 Original-Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:34314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMLZH-0002Bi-JV; Thu, 21 Jan 2016 15:10:55 -0500 Original-Received: by mail-lf0-x236.google.com with SMTP id 17so34059761lfz.1; Thu, 21 Jan 2016 12:10:55 -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=zuqmnajMSYEtTQkVmoCI0ANyWWTOjRzPl7C5SvaBHEU=; b=A6XE3BVDU9ilAbPQyYluzvq0stP4nnbW1FtHdDA+hgz241vOl45uspjytIOyJMmcPP 9seADqd19DCToIpPMZnHBWFjMexQ3+rordCIk8U/slrpi+WgU9MeZAN8oHcYzfiLitoP 7ttfHV+Bxyw5zXD5nbPFeWN0r2B/TVnT+UpoIu3NcDu51ksYPqFXiB7ASGf8wQC9cKnR SQfqzdZoUPDpuBFmVi2aDdAOlPJZTQvsWiDJM3xUcVfTXlj5YLxMKW9T117+h2+c4Rnz lc1yTENzU99gwQQzM3yceInMBS5FqDnq8cp2acHySp6gVy2DJl9pBp+4ltC98LTO0zqZ q+fQ== 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=zuqmnajMSYEtTQkVmoCI0ANyWWTOjRzPl7C5SvaBHEU=; b=dqqbLK3Vq4n4vAmGBwfy972eSPGY/yF+btqleYiKuZy/NJz9wbPmBpssQ6/vF1Bti0 ZurTSZgWj1nopmZDgwoHdgTdKDYH6GOjsyqjSwmMy5xcGEJDVClcE8goK/3z0jAefuW5 t4DJ2mt8FB4WZ/sKEA7GlJThhenbCrmQMKcTMJRWK95zYsJOvcByBlBO7E/2k93n8tJS IwPGPTMUQDa1gdLP2imzENi3sihmR36WQ1rdmGCZlyKuzcXuK7ubIB2Ae6/qxuVmMqPD 2kATAc2kfq2ooiuF5BJSlVVuAYW8UnwpXWRTpwlW6sHz2lZ+M2psYOvOPgUZuWAyB44S uMuQ== X-Gm-Message-State: ALoCoQl6Srdekh5O2qCRvYpfJiFYTc4ovwNhPQd2gwIKFnCwVxNtmc1a443rie4RKD5Ff7RE93lo6c9TLAZMRPuTz0KszO0/UA== X-Received: by 10.25.25.142 with SMTP id 136mr16721865lfz.42.1453407054694; Thu, 21 Jan 2016 12:10:54 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.222]) by smtp.googlemail.com with ESMTPSA id bf5sm411888lbc.49.2016.01.21.12.10.53 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jan 2016 12:10:53 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Thunderbird/44.0 In-Reply-To: <8360ym8zvk.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::236 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:198531 Archived-At: On 01/21/2016 11:02 PM, Eli Zaretskii wrote: >> 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. > > Same justification as for Dired's command you just coded. Except that > in this case, I want to search and/or replace in files that belong to > some coherent group that is not a directory hierarchy. Dired's command makes sense: when there's no project, or we want to search some dirs specifically, we can fire up Dired, select the directories and files one by one, and do the search. When you call xref-find-regexp, you won't get to tell exactly what you want. So, the command needs to have some useful, clear semantics. >>>> How about xref-query-replace-in-matches? >>> >>> Fine with me. >> >> You'd agree that tags-query-replace doesn't require a direct replacement >> then? > > I thought that was what xref-query-replace-in-matches will do. xref-query-replace-in-matches will be the new name for the current xref-query-replace. The changed name should signify that it replaces, indeed, in the already-present list of matches. Since you said that having xref-query-replace called almost the same as tags-query-replace is confusing.