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: Sat, 07 Mar 2020 14:07:42 +0100
Message-ID:
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
logging-data="12941"; mail-complaints-to="usenet@ciao.gmane.io"
To: 39972@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 07 14:09:12 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 1jAZCa-0003IK-7Q
for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 14:09:12 +0100
Original-Received: from localhost ([::1]:48694 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1jAZCZ-0007Yt-A5
for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Mar 2020 08:09:11 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57259)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from ) id 1jAZCR-0007Yl-Jy
for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 08:09:04 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1jAZCQ-0007bH-E1
for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 08:09:03 -0500
Original-Received: from debbugs.gnu.org ([209.51.188.43]:40401)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1jAZCQ-0007bB-Ak
for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 08:09:02 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1jAZCQ-0002Gz-68
for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 08:09:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 07 Mar 2020 13:09:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 39972
X-GNU-PR-Package: emacs
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.15835865008688
(code B ref -1); Sat, 07 Mar 2020 13:09:02 +0000
Original-Received: (at submit) by debbugs.gnu.org; 7 Mar 2020 13:08:20 +0000
Original-Received: from localhost ([127.0.0.1]:46374 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1jAZBk-0002G4-82
for submit@debbugs.gnu.org; Sat, 07 Mar 2020 08:08:20 -0500
Original-Received: from lists.gnu.org ([209.51.188.17]:46546)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1jAZBi-0002Fw-Jc
for submit@debbugs.gnu.org; Sat, 07 Mar 2020 08:08:19 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56773)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from ) id 1jAZBh-0007Vh-6X
for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 08:08:18 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1jAZBf-0006VY-QS
for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 08:08:17 -0500
Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:51810)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1jAZBf-0006U9-Ha
for bug-gnu-emacs@gnu.org; Sat, 07 Mar 2020 08:08:15 -0500
Original-Received: by mail-wm1-x330.google.com with SMTP id a132so5327740wme.1
for ; Sat, 07 Mar 2020 05:08:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version;
bh=C3fYfWpm7mLtPCf7SvZnm3Y2CrKMNGucynK2eQ4zYfE=;
b=qWuaTaHKWyEHp6slkV3dA7vg4GaN+gtr/R/6fMSJgyLdw9Oj2h7pmoYiwFSqr/gmb9
WJ1SGfEUvxlZc/Lnbl+QN60s3QpfBFEgCs6ygprrrcXl0tmHNrOKUbHEX77wSFrv0mvF
o5YjZHaXupQCMfHBCwouwqAtnncJw41JJ6am3XBWygs3Fvo/Wuib7UWmrl8kEqYSNZod
2xm3/TdQ9VkPbqKjpkiqEfA1XUirrumv1xF4eGNLIYP7eXbJVEjO59A9Tacwglz04N+l
cRBmU7TWap2Hd4Vz8i2v3hn6fnsFmq1acTaoXXpMSHh5j9dhLqYrX6DOy+55VxXOlsRO
3sMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
bh=C3fYfWpm7mLtPCf7SvZnm3Y2CrKMNGucynK2eQ4zYfE=;
b=emSk+44Z00jU38g7UEbuskicV9pZxuCVE32RpMq62IPeHCVEC6S+aOK/80lmyV6AK/
91TrzMm/WaOTtFs0faGG39qFq5LIVGCb6hgSr6fgyjzIeEZA1jAT4EqWCUf6C2XOp4Hz
zZzIiwrO/lM6d4FTmJf6sISmimnp8a+jvMTI658qN/xn3VsSSRFhDmFgSuG0az6RGtXG
yBN4trJt78Jpv2AsCaPWEvC64FR25X7iJIXGcaCKghbN1wL9pM5GRNTbpIqb+YTvl4Fy
qdL55mVXZZ7psSsePuFDY5GMWQA84EPkP2UyTTil7UxQnUKyPu6mlIiJQYFhy6j5Uqe3
NjRA==
X-Gm-Message-State: ANhLgQ2ZIRe03j8W1BFPonxKBdrTEnCVjT93BvNNzDi53HfaOEAAPNNN
ghPhpXSTluyV5hzA8MBUplPXdQB+
X-Google-Smtp-Source: ADFU+vuMcu+jYBCwLuyIe3NU+MJRQt/oHTU+oAgwDocQuPzWSmf5KcaN6btxZXfl40X0y94yORaASg==
X-Received: by 2002:a1c:a714:: with SMTP id q20mr9758091wme.148.1583586493437;
Sat, 07 Mar 2020 05:08:13 -0800 (PST)
Original-Received: from phst1 (85.233.42.145.dynamic.cablesurf.de. [85.233.42.145])
by smtp.gmail.com with ESMTPSA id w4sm1580144wrl.12.2020.03.07.05.08.12
for
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 07 Mar 2020 05:08:12 -0800 (PST)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
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-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.io gmane.emacs.bugs:177005
Archived-At:
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.
In GNU Emacs 28.0.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version 3.24.12, cairo version 1.16.0)
of 2020-02-25
Repository revision: 03c07c88d90b5747456b9d286bace2dd4a713aac
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux rodete
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --enable-gcc-warnings=warn-only
--enable-gtk-deprecation-warnings --without-pop --with-mailutils
--enable-checking --enable-check-lisp-object-type --with-modules
'CFLAGS=-O0 -ggdb3''
Configured features:
XPM JPEG TIFF GIF PNG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY
LIBSELINUX GNUTLS FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
XDBE XIM MODULES THREADS PDUMPER GMP
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec epa epg epg-config gnus-util
rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils phst skeleton
derived edmacro kmacro pcase ffap thingatpt url-parse auth-source cl-seq
eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars
subr-x rx gnutls puny seq byte-opt gv bytecomp byte-compile cconv dbus
xml cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook help
simple abbrev obarray cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)
Memory information:
((conses 16 59465 7934)
(symbols 48 8079 1)
(strings 32 20894 1643)
(string-bytes 1 680049)
(vectors 16 12053)
(vector-slots 8 164854 5050)
(floats 8 26 33)
(intervals 56 196 0)
(buffers 1000 11))