GNU bug report logs -
#77494
30.1; backward-up-list doesn't work as intended in php-ts-mode
Previous Next
Reported by: Umar Ahmad <ahmad.umar2008 <at> yahoo.in>
Date: Thu, 3 Apr 2025 15:33:01 UTC
Severity: normal
Found in version 30.1
Fixed in version 31.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 77494 in the body.
You can then email your comments to 77494 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77494
; Package
emacs
.
(Thu, 03 Apr 2025 15:33:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Umar Ahmad <ahmad.umar2008 <at> yahoo.in>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 03 Apr 2025 15:33:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
backward-up-list stops at the start of php-doc string instead of going
further up the list to enclosing brackets when php-ts-mode is active
Replicating with emacs -Q
* emacs -Q
* (required once if not already done) M-x php-ts-mode-install-parsers
* M-x switch-to-buffer *temp*
* M-x php-ts-mode
* yank the following php snippet in the buffer
<?php
class Hello {
/** @var string */
private $name;
/**
* @return void
*/
public function setName() :void {
retur|n;
}
}
* consider | as the point position (line:9)
* M-x backward-up-list
* point correctly moves to { after the function (line:8)
* M-x backward-up-list
* [Bug] point moves to / character (line:5)
* M-x backward-up-list
* [Bug] echo area logs "At top level"
Expectation was that the point would move to the {
on line 2 after the second backward-up-list command
GNU Emacs 30.1 (build 2, aarch64-apple-darwin23.6.0, NS
appkit-2487.70 Version 14.7.3 (Build 23H417)) of 2025-03-22 built on
Umars-Macbook-Pro
Windowing system distributor 'Apple', version 10.3.2487
System Description: macOS 14.7.5
Configured using:
'configure --disable-dependency-tracking --disable-silent-rules
--enable-locallisppath=/opt/homebrew/share/emacs/site-lisp
--infodir=/opt/homebrew/Cellar/emacs-plus <at> 30/30.1/share/info/emacs
--prefix=/opt/homebrew/Cellar/emacs-plus <at> 30/30.1
--with-native-compilation=aot --with-xml2 --with-gnutls
--without-compress-install --without-dbus --without-imagemagick
--with-modules --with-rsvg --with-webp --with-xwidgets --with-ns
--disable-ns-self-contained 'CFLAGS=-O2 -DFD_SETSIZE=10000
-DDARWIN_UNLIMITED_SELECT -I/opt/homebrew/opt/sqlite/include
-I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include'
'LDFLAGS=-L/opt/homebrew/opt/sqlite/lib -L/opt/homebrew/lib/gcc/14
-I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include''
Configured features:
ACL GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY
KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XIM XWIDGETS ZLIB
Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: PHP
Minor modes in effect:
display-line-numbers-mode: t
tooltip-mode: t
global-eldoc-mode: t
show-paren-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
minibuffer-regexp-mode: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message yank-media dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums display-line-numbers rx html-ts-mode
php-ts-mode comint ansi-osc ansi-color ring js cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs css-mode
smie sgml-mode facemenu imenu eww xdg url-queue thingatpt shr pixel-fill
kinsoku url-file svg xml dom browse-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie generate-lisp-file
url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core
cl-macs icons password-cache json map byte-opt gv bytecomp byte-compile
url-vars mailcap puny mm-url gnus nnheader gnus-util
text-property-search time-date subr-x mail-utils range wid-edit mm-util
mail-prsvr color c-ts-common treesit cl-loaddefs cl-lib rmc iso-transl
tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize
mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
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 emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads xwidget-internal kqueue cocoa ns lcms2 multi-tty
make-network-process native-compile emacs)
Memory information:
((conses 16 160600 10230) (symbols 48 13333 0) (strings 32 42165 3963)
(string-bytes 1 1383167) (vectors 16 21407)
(vector-slots 8 280373 8131) (floats 8 183 10) (intervals 56 329 0)
(buffers 992 11))
--
Regards,
Umar Ahmad
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77494
; Package
emacs
.
(Thu, 03 Apr 2025 16:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 77494 <at> debbugs.gnu.org (full text, mbox):
close 77494 31.0.50
thanks
> backward-up-list stops at the start of php-doc string instead of going
> further up the list to enclosing brackets when php-ts-mode is active
> [...]
> GNU Emacs 30.1 (build 2, aarch64-apple-darwin23.6.0,
Thanks for the report. This is already fixed in GNU Emacs 31.
bug marked as fixed in version 31.0.50, send any further explanations to
77494 <at> debbugs.gnu.org and Umar Ahmad <ahmad.umar2008 <at> yahoo.in>
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Thu, 03 Apr 2025 16:46:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77494
; Package
emacs
.
(Fri, 04 Apr 2025 05:47:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 77494 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> This is already fixed in GNU Emacs 31.
I see! I actually tried to check this with a copy of php-ts-mode.el from
the master branch before reporting
and also copied in the new macro definition of
`treesit-declare-unavailable-functions`
I eval'ed the whole thing and still faced the same problem.
I might be missing something else that is not obvious to me here.
I'll try upgrading to emacs 31 completely in a few weeks to see if it works
for me as well.
Thank you for checking this!
On Thu, Apr 3, 2025 at 10:15 PM Juri Linkov <juri <at> linkov.net> wrote:
> close 77494 31.0.50
> thanks
>
> > backward-up-list stops at the start of php-doc string instead of going
> > further up the list to enclosing brackets when php-ts-mode is active
> > [...]
> > GNU Emacs 30.1 (build 2, aarch64-apple-darwin23.6.0,
>
> Thanks for the report. This is already fixed in GNU Emacs 31.
>
--
Regards,
Umar Ahmad
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77494
; Package
emacs
.
(Fri, 04 Apr 2025 06:18:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 77494 <at> debbugs.gnu.org (full text, mbox):
>> This is already fixed in GNU Emacs 31.
>
> I see! I actually tried to check this with a copy of php-ts-mode.el from
> the master branch before reporting
> and also copied in the new macro definition of
> `treesit-declare-unavailable-functions`
>
> I eval'ed the whole thing and still faced the same problem.
>
> I might be missing something else that is not obvious to me here.
> I'll try upgrading to emacs 31 completely in a few weeks to see if it works
> for me as well.
Unfortunately this is not as simple as using the new php-ts-mode.el.
You also need the new treesit.el and even treesit.c.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77494
; Package
emacs
.
(Fri, 04 Apr 2025 07:10:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 77494 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Got it! Thank you
On Fri, Apr 4, 2025 at 11:47 AM Juri Linkov <juri <at> linkov.net> wrote:
> >> This is already fixed in GNU Emacs 31.
> >
> > I see! I actually tried to check this with a copy of php-ts-mode.el from
> > the master branch before reporting
> > and also copied in the new macro definition of
> > `treesit-declare-unavailable-functions`
> >
> > I eval'ed the whole thing and still faced the same problem.
> >
> > I might be missing something else that is not obvious to me here.
> > I'll try upgrading to emacs 31 completely in a few weeks to see if it
> works
> > for me as well.
>
> Unfortunately this is not as simple as using the new php-ts-mode.el.
> You also need the new treesit.el and even treesit.c.
>
--
Regards,
Umar Ahmad
[Message part 2 (text/html, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 02 May 2025 11:24:18 GMT)
Full text and
rfc822 format available.
This bug report was last modified 50 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.