From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Should diff.elisp.xfuncname match cl-lib macros? Date: Sun, 17 Mar 2019 23:33:12 +0200 Organization: LINKOV.NET Message-ID: <87sgvlzf6b.fsf@mail.linkov.net> References: <87wol0qecg.fsf@tcd.ie> <87a7hug7ld.fsf@tcd.ie> <83imwiydnr.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="172757"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: "Basil L. Contovounesios" , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 17 22:42:23 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5dXy-000ipQ-3p for ged-emacs-devel@m.gmane.org; Sun, 17 Mar 2019 22:42:22 +0100 Original-Received: from localhost ([127.0.0.1]:60494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5dXx-0005IR-41 for ged-emacs-devel@m.gmane.org; Sun, 17 Mar 2019 17:42:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5dWl-0005GT-Ku for emacs-devel@gnu.org; Sun, 17 Mar 2019 17:41:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5dUJ-0005G4-7b for emacs-devel@gnu.org; Sun, 17 Mar 2019 17:38:35 -0400 Original-Received: from cichlid.maple.relay.mailchannels.net ([23.83.214.36]:46736) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h5dUH-0005FG-Jo; Sun, 17 Mar 2019 17:38:34 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 027C96A0FDE; Sun, 17 Mar 2019 21:38:32 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a47.g.dreamhost.com (100-96-7-25.trex.outbound.svc.cluster.local [100.96.7.25]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 98D506A0F72; Sun, 17 Mar 2019 21:38:31 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a47.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.3); Sun, 17 Mar 2019 21:38:31 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Soft-Obese: 6edbb20976a037b4_1552858711836_115277490 X-MC-Loop-Signature: 1552858711836:3466196297 X-MC-Ingress-Time: 1552858711836 Original-Received: from pdx1-sub0-mail-a47.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a47.g.dreamhost.com (Postfix) with ESMTP id 9C13B8042D; Sun, 17 Mar 2019 14:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=QqPb6G MKkgSPf1ZUopodrYcesL4=; b=mlMa+v5KMj9uUjP8MX7GETFlKp8bnQzuBwpiLi rZUNw1nb6y0Z5lgCSqGTb7qXQbSItw0mKAtqn6E7dEqF3wINhQjVVLoUpKdnKyzc XUuK5BSlhzJuenky+3hIPl66vQjIrn8Ikn0IBqz0ippFEF43cgkDPMW1q4g+SXgR 26F8w= Original-Received: from mail.jurta.org (m91-129-106-13.cust.tele2.ee [91.129.106.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a47.g.dreamhost.com (Postfix) with ESMTPSA id 88BCB80429; Sun, 17 Mar 2019 14:38:22 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a47 In-Reply-To: <83imwiydnr.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 Mar 2019 18:42:00 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrheelgdduheegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtiedrudefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtiedrudefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghlihiisehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.214.36 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:234303 Archived-At: > Is this feature even useful with Lisp? I find it mostly useless, > here's a typical example: > > git log -L :next-line:lisp/simple.el > > Type this command in your repository, then watch the fun. More fun is > available when Git for some reason decides you asked about some > variable, not a function (and in Lisp we frequently have variables by > the same name as a function). Since it uses the first match, a workaround would be first to find a match immediately before 'next-line', e.g. 'next-line-add-newlines', then starting from its position continue the search for 'next-line': git log -L :next-line-add-newlines:lisp/simple.el -L :next-line:lisp/simp= le.el Maybe this feature could be used by =E2=80=98C-x v h=E2=80=99 (vc-region-= history) in case when there is no active region. Currently it signals an error "The mark is not active now", but could use the name of the current defun for '-L :defun:filename'. PS: Regarding the change in diff.elisp.xfuncname, can we also have an appropriate regexp for diff.c.xfuncname as well, to find DEFUN in C code?