From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#39972: 28.0.50;
which-function no longer returning current Java method in Emacs 27
Date: Thu, 21 May 2020 17:56:16 +0200
Message-ID:
References:
<20200308113302.43082.qmail@mail.muc.de>
<20200520191303.GA19762@ACM>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
logging-data="13633"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 39972@debbugs.gnu.org
To: Alan Mackenzie
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 21 17:57:34 2020
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.92)
(envelope-from )
id 1jbnZe-0003RI-0O
for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 May 2020 17:57:34 +0200
Original-Received: from localhost ([::1]:51572 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1jbnZd-0000DH-0Y
for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 May 2020 11:57:33 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44160)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1jbnZA-0008Ck-LM
for bug-gnu-emacs@gnu.org; Thu, 21 May 2020 11:57:04 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:45595)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1jbnZ7-0003N2-Ti
for bug-gnu-emacs@gnu.org; Thu, 21 May 2020 11:57:04 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1jbnZ7-00067v-T8
for bug-gnu-emacs@gnu.org; Thu, 21 May 2020 11:57:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Thu, 21 May 2020 15:57:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 39972
X-GNU-PR-Package: emacs
Original-Received: via spool by 39972-submit@debbugs.gnu.org id=B39972.159007660223521
(code B ref 39972); Thu, 21 May 2020 15:57:01 +0000
Original-Received: (at 39972) by debbugs.gnu.org; 21 May 2020 15:56:42 +0000
Original-Received: from localhost ([127.0.0.1]:57140 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1jbnYi-00067F-Pe
for submit@debbugs.gnu.org; Thu, 21 May 2020 11:56:42 -0400
Original-Received: from mail-ot1-f52.google.com ([209.85.210.52]:44107)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1jbnYf-00066y-6E
for 39972@debbugs.gnu.org; Thu, 21 May 2020 11:56:35 -0400
Original-Received: by mail-ot1-f52.google.com with SMTP id f18so5848732otq.11
for <39972@debbugs.gnu.org>; Thu, 21 May 2020 08:56:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=ve/Z+aBYZFjOdnlTjImduwKGcmyNM1owS40ug+Th/7U=;
b=ZF/HSueGU1hPrqovjaDy2uFiSu5pw8835c4VuPLAeYrB4WuZwN9K51mfFnfeqJIoVt
+t1O7/JY7NYcPlCjngWhFb93UxEE4F8ttorwK4EUwarP4qcLE6v2tGDcX8c/mDcpuGrM
EnEIFaXxoeaOjpuYZviPGFNGg7cZZERxW7ADiWSlZUBS92q44Ucby1u5ns5bj3Aq8/PD
bwWHP7H9Jtu4BOE30E1yjStcWb6Ol8yfEbC+eh6vYyl0Y5x2/4Q69WGSDS8J1vskEmop
nx5OZwzySVtO5HGgc8qfWBinCRgwNccZlo9cafhK2e9NZ/dypnRqcU91d9UnCcELG8SE
kvww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=ve/Z+aBYZFjOdnlTjImduwKGcmyNM1owS40ug+Th/7U=;
b=VHhvM8cdsR4Txt+rmoThVx5jhTkR0e7wSnopQ7b+oymf+3aW7UsqsKR/OylyqL0sCq
X24PnTTCVlOcnj+0r4JTAseiwTjIxf3EixVmdVRDhfiTTENuJhPtjtpIBlkAHmMQNKCM
mRP3jjceNJhM5vjDBRZi+vuh/SkCB6yu2O9HVr6SRTYwXwqQt5z21bUHJF58ej6OZ4nw
kNBE3IRjjO4bTxtzQRT/jubXG1zWcC87V9SvLOq/9o/8E1/M+py3e61ORjmd8JSuJCgU
B4YL9S3LLV6mGybdUuB6G9baklN3lpz0KuUzLsfMRzsR3EC62EluBBtWsrPdKoxOYgT4
c6pA==
X-Gm-Message-State: AOAM532RPaSm7N8kOgWLSg6Ke7cMcFlkumlAwJJrBF93oUNI1m2jznzK
dQ61sC1GMO0EDz4PPB9u3X6koMDggLAHE0CXFfTlcjpg
X-Google-Smtp-Source: ABdhPJwUETRtgdgqJTSgxkHvqom19S2WnHl5zpTEWH2nvsXXhLl1Yv4EheZUYjSG5zojus+eFvLAFkzMVDJUSBnpRLk=
X-Received: by 2002:a05:6830:1457:: with SMTP id
w23mr7121910otp.174.1590076587168;
Thu, 21 May 2020 08:56:27 -0700 (PDT)
In-Reply-To: <20200520191303.GA19762@ACM>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
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-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.io gmane.emacs.bugs:180706
Archived-At:
Am Mi., 20. Mai 2020 um 21:13 Uhr schrieb Alan Mackenzie :
>
> Hello, Philipp.
>
> On Sun, Mar 08, 2020 at 11:33:02 -0000, Alan Mackenzie wrote:
> > In article you wrote:
>
> > > Assume there's a file /tmp/Foo.java:
>
> > > $ cat /tmp/Foo.java
> > > class Foo {
> > > void bar() {
> > > // body
> > > }
> > > }
>
> > > Emacs 26:
>
> > > $ emacs -Q -batch -l which-func /tmp/Foo.java -eval '(progn
> > > (search-forward "// body") (print (which-function)))'
>
> > > "bar"
>
>
> > > Emacs 27 pretest:
>
> > > $ emacs -Q -batch -l which-func /tmp/Foo.java -eval '(progn
> > > (search-forward "// body") (print (which-function)))'
>
> > > "class Foo"
>
>
> > > That is, Emacs 27 now prints the clas name instead of the method name.
> > > I think the Emacs 26 behavior is preferrable.
>
> [ .... ]
>
> > I'll look more closely into this in the coming days.
>
> I've committed two patches to savannah master which I hope have fixed
> this. One was to CC Mode, the other to lisp/progmodes/which-func.el.
>
> Could you possibly try out these and let me know whether they have, in
> fact, fixed the problem. Thanks!
Seems to work as expected, thanks.
Do you think you could push these patches onto the release branch, as
this appears to be a regression?