From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#36644: Git log search Date: Thu, 25 Jul 2019 15:37:05 +0200 Message-ID: References: <874l3p4lks.fsf@mail.linkov.net> <87blxvj5lv.fsf@mail.linkov.net> <23ad9090-ebfc-4307-b41f-30f7c310d978@yandex.ru> <87tvbliw37.fsf@mail.linkov.net> <1251461563472968@myt6-1dca55ddeee8.qloud-c.yandex.net> <87lfwvrpur.fsf@mail.linkov.net> <62a4fa22-d4f5-5cd4-69b7-7ae1c70e68bc@yandex.ru> <46b910fb-25f0-1b6e-df9b-fda1383cb1c9@yandex.ru> <83v9vro1fy.fsf@gnu.org> <3126d32c-fbe5-771e-c89f-d3e898e811c8@yandex.ru> <83h87antwq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="146050"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Dmitry Gutov , 36644@debbugs.gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 25 15:38:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqdwd-000bqT-Eh for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jul 2019 15:38:07 +0200 Original-Received: from localhost ([::1]:60286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqdwc-0007MS-C2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Jul 2019 09:38:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51499) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqdwZ-0007Ll-NE for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 09:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqdwY-0004Mp-Jt for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 09:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58023) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hqdwY-0004Mi-Gf for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 09:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hqdwY-0004Od-Dq for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2019 09:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2019 13:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36644 X-GNU-PR-Package: emacs Original-Received: via spool by 36644-submit@debbugs.gnu.org id=B36644.156406183616834 (code B ref 36644); Thu, 25 Jul 2019 13:38:02 +0000 Original-Received: (at 36644) by debbugs.gnu.org; 25 Jul 2019 13:37:16 +0000 Original-Received: from localhost ([127.0.0.1]:38608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqdvn-0004NS-Ig for submit@debbugs.gnu.org; Thu, 25 Jul 2019 09:37:15 -0400 Original-Received: from mail-ed1-f42.google.com ([209.85.208.42]:44763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqdvl-0004NF-NE for 36644@debbugs.gnu.org; Thu, 25 Jul 2019 09:37:14 -0400 Original-Received: by mail-ed1-f42.google.com with SMTP id k8so50239464edr.11 for <36644@debbugs.gnu.org>; Thu, 25 Jul 2019 06:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=X5HIQdBGGz6bTCykLJNTK6jARt9iOo1ZNLxWnWaOraw=; b=Mfp2iY711AuN/zea+rxgcWi6m7IvBl+eqtb4bg5n0kDc5LN6ua+Gv/1hWzeqeMRc+E CQNpCNa2WWJuTNPKFsHDzw9oF058G2Ms1yk0KJ6U31hGrQYQaZxu5v8fNYUqQ9bRi2hG +6kRBjUShtmQojSIQBbd9CiUTfrZulPZjlheVPDYdeaxYpcek6CchVYZEoJW+/yq6o/x 1Qz4jTD7JloxEGhJ9BafXqshA0ig1xEUvLfDXZU/+QTK5E+NFWIlvKMIT+/bykn7qwyA e1l4SighO3iKOC2a6Qdm4NWu4784LFPfuhRwgRqCC68gCZrF1O61fH/FxHqCI6R8MNAe SZ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=X5HIQdBGGz6bTCykLJNTK6jARt9iOo1ZNLxWnWaOraw=; b=tyf1j1w3qL0y3eHF1vK6hlF66Z91PooNZA+nuClXFiXQF90z5lhcLLrSkoZdpiRyq6 qsdWongMp3mh9kIDBPbF3ygVQTvh35FSLquRYH+x6rSbROdnQ6k3JPiNVE6GmhKYE/Wj 0qJAa9ZXTh5UNyOdTRQn0NSM9PuTGxEZskJsCYLKzhnjSDXlo03W/CGPO/PAEh9Z2YQ7 JSbQp+Y1z7hIam/Uh905vDkgOezbgYa1KhGDqVOsHXTUwoM1hLgDTzd8JzCVXwpBTwVz ahgoTQBpb26S96IGoqzyEVi45fyZF3/pRprQ5PZD4dJkWKmOVJdR2Q1DA+w347E05swr m3MQ== X-Gm-Message-State: APjAAAXXRwDOqr6GJI6YR7h7K1T54W/EMurKodGT2kG+z/ZoWq1bqtir wWSasyHWk/fUV+7Quburnvk= X-Google-Smtp-Source: APXvYqym36xE1EwaOuXiqqgdaXVbWyqhC2rmnMO966wF9mZPOkxfdGXBmdSqwUu0+uK9Fv0KN3pugQ== X-Received: by 2002:a17:906:6c16:: with SMTP id j22mr68237663ejr.307.1564061827728; Thu, 25 Jul 2019 06:37:07 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id g21sm13790426edj.50.2019.07.25.06.37.06 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 06:37:06 -0700 (PDT) In-Reply-To: <83h87antwq.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Jul 2019 16:08:37 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163709 Archived-At: >>>>> On Thu, 25 Jul 2019 16:08:37 +0300, Eli Zaretskii said: >> Cc: rpluim@gmail.com, 36644@debbugs.gnu.org, juri@linkov.net >> From: Dmitry Gutov >> Date: Thu, 25 Jul 2019 15:36:54 +0300 >>=20 >> > I also see your point: it would be nice to be able to document the >> > semantics of PATTERN in a backend-independent way. But I think th= is >> > is next to impossible in this case, both because of significant >> > differences in the backend capabilities (e.g., bzr doesn't have the >> > equivalent of Git's --fixed-strings, AFAICT), and because some bac= kend >> > allow great flexibility in interpreting PATTERN, under control of >> > optional switches passed to the backend. >>=20 >> The other option is to standardize on basic or extended regexp, and= =20 >> simply give up for backends that can't support that. Eli> We could simply say "regular expression" and leave the details Eli> unspecified. But I think Juri said that fixed strings was the low= est Eli> common denominator, which is why I proposed a slightly more vague = doc Eli> string. Juri, which backends don't support regular expressions? = And Eli> Robert, why did you insist on saying STRING? I don=CA=BCt think I did, we can say PATTERN. The thing I=CA=BCm insistent = about is not doing anything to that argument, since its meaning will be understood only by the backend. >> Git supports all kinds of regexps. 'hg grep' uses Perl-compatible on= es=20 >> (meaning extended regexps are supported, at least). I'm not sure whi= ch=20 >> regular expressions are expected by 'bzr log -match', but if it does= n't=20 >> support the extended ones, *shrug*. Eli> I didn't dig deep enough, but since bzr is written in Python, I'd = bet Eli> it supports whatever Python supports natively. >> Anyway, if people disagree, I'm not going to press the issue. Eli> If all the backends either support regular expressions or don't Eli> support this feature at all, then we had better mentioned regular Eli> expressions in the doc string. Yes, although the regular expression types they support may be different. Robert