From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64283: 29.0.91; js-mode's mark-defun does not work correctly when functions have a comment on top Date: Sun, 25 Jun 2023 15:05:45 +0200 Message-ID: References: Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40347"; mail-complaints-to="usenet@ciao.gmane.io" To: 64283@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 25 15:07:30 2023 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 1qDPSj-000AHM-8T for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jun 2023 15:07:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDPSK-0003kl-M9; Sun, 25 Jun 2023 09:07:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDPSI-0003kc-BO for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 09:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDPSI-0005Rk-2e for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 09:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDPSH-00081a-Pn for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 09:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jun 2023 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64283 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.168769836930782 (code B ref -1); Sun, 25 Jun 2023 13:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jun 2023 13:06:09 +0000 Original-Received: from localhost ([127.0.0.1]:42174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDPRR-00080P-6n for submit@debbugs.gnu.org; Sun, 25 Jun 2023 09:06:09 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDPRM-00080C-Mr for submit@debbugs.gnu.org; Sun, 25 Jun 2023 09:06:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDPRK-0003gw-7n for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 09:06:02 -0400 Original-Received: from sonic303-20.consmr.mail.ir2.yahoo.com ([77.238.178.201]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDPRH-0005IM-99 for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 09:06:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1687698349; bh=Abo+yqJTB0CnHclG/37rJVxToBNieAmkSs2eNfq86oM=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=eWFCzRh8ah1FF7JBfjORQMH4kKR0Pq0pIVo+A6lRifX04AQbxqK+7jVTayhqtZz4v4kYFalry7z00xWlf9/TMFtnSSEpkVJ7VD8PATGbD1HcITsb2jenvyT0CAKVHOWGQoLA/otxyOZFWGVmg+9ZUee4fZiIgE0eY/ukFGD/ZZEG2cE84o5hg6MnYzmNi5J6p6EfVKiqkbIfnWD3xVId3aphPWX9obS80uwdu2Aym1IpTrMGeobptT9PK4QdqcLg/0/c3p4/UfpPmsursFLic4llNBxhdz7wEa7jdiEIoiV9NK0o0JuVcJI4PH+8uKsBbn+K9XfQDYCgGwibg3XPkw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687698349; bh=1w0iWf+bfz4b7FidSfsnn10OjeMAJ3YoKkeTCistAf1=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=oZUsViZmfD7lzaJPFyYnMVX9ESOmO1oLI3ZLtEuQiO0OE90+nHURj0Y25nf11e5zgF2PI5JNeIG6C4w4T1BdAh4OjNTZQjV66G0USs34RpjcXsHZyCGVSkNyDnxyZgn1KRTbpxyZocit08UXzEKhwJ6Y1PsKnVFYmJyl+SGfO4mCTcUVn3XXPVWuhYqgGZyDHUGFYnqP7+ZYv8bS0/8T7JudI/d49HjPYYVqfJstDxX3TZaVyTt/DGz3Kh+ZNbENOrvuXgN4+piNrzS/SubUo2JOhk1whUVcqcStCdfCxlr7sdf8biP1Frf1yThOTMzOqIVzjT4MVRQ4Nhwetl96BA== X-YMail-OSG: vMLIsTUVM1kW_wwn69POCsd5c.kzBw00i26eFCnZKTH35wcp4UF.F2u4kAgJPPU M4dWKxYdq5kI_AooDDgqeImrFoFmZpOCWLhP77kYrIhtRaVZXFJRXzBhn5C2_91eadyeJfB2j_XC pIdTuvx7hMqRDe0ak6nu3BllYKdPwHTgTK98dZFBmuTpuUn2i11FX4s7uYvWGfbbk0uSFspfc08B krgGC6w5LD_NmE.zW_oiwqjKqJtPQwSgG3nwZJ0SZVlhLdldug5Gzl2XRG9oywcQ8CBzgyq5sU.E 0rZi.XbuaEJn92FvURQmC_q9iQGYXJsLmStJIkNRs1pIIrHUFKQuK6tkdMD1n812Q28cSQ8CrkXd wBxPuf69XGmE1MP_rMAoCOQk1Lqm2x5rrb6K2ygnnJq24ts1JJKSqSIcdJrKTP_ulAOrdSJWHL_W 5v7HIREooNg0naF76ccJR7rxWw7LFTrXIhS7T4S_Pe.bV.kOVgDNkn14zVKkELMtMjSYW4DK0Crr wpQSr8DKTZ2xvc_XNHQSJ5MetQkC7aGEm1V.crMywIGBsBcrzLqj4or2dy3DJhhI.uqlCDVJsYZp Are95P0q86rLLgxScPzq4C663ns5ij2L7834S1Xr9BiyXf761dfnLh.Agv8erhrpDjukGvWVeTzm 5ZAFuKe9S6rbmrDS6l.MY1oZ6.gNkG1wbK_zwAOODVVAySMZZOFFBT7L.ye1oq2PmqJz2fByLxdB reH7fDpkbbD.zV6_T63WRfJ91T0wx2LEEq9lRbnk53S1oXRAWo56QgWJRB5UHGzCipLkw8OD85nM TKOSznSlBmhk1wr9n9KaQPABruK6f7L8_TYLFOxGrN X-Sonic-MF: X-Sonic-ID: 47741d8f-db61-42f2-989c-f9dad76df4a4 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Sun, 25 Jun 2023 13:05:49 +0000 Original-Received: by hermes--production-ir2-7867f454fc-s6g4r (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 35ed41c0e66d184bd4dabdadf3fdff36; Sun, 25 Jun 2023 13:05:46 +0000 (UTC) X-Mailer: WebService/1.1.21557 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=77.238.178.201; envelope-from=mardani29@yahoo.es; helo=sonic303-20.consmr.mail.ir2.yahoo.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264042 Archived-At: This is a regression from Emacs 28.2. emacs -Q C-x b sample.js RET M-x js-mode Paste the following code: function foo() { var value = 1; } /* Hello */ function bar() { var value = 1; } Place the point inside function bar. C-M-h Expected result: Function bar is marked. Actual result: Comment "/* Hello */" is marked. This is probably related to the following regression: When point is between function foo and function bar, C-M-e moves point to the _beginning_ of bar, not to the end of bar. In GNU Emacs 29.0.91 (build 8, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.6 (Build 21G115)) of 2023-06-07 built on Daniels-MacBook-Pro.local Repository revision: bcc222251e1a750a11e365f2faa641cc56c1169d Repository branch: emacs-29 Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.6.7 Configured using: 'configure 'CFLAGS=-O0 -g3 -fsanitize=address' CPPFLAGS=-I/opt/homebrew/opt/openjdk@11/include' Configured features: ACL GNUTLS JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG SQLITE3 THREADS TOOLKIT_SCROLL_BARS WEBP ZLIB Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t comint-fontify-input-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t undelete-frame-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 emacsbug ido cc-langs whitespace python pcase reposition edebug gnus-msg sort find-dired kmacro cus-start cus-load info-look info apropos display-line-numbers re-builder dabbrev pp mail-extr goto-addr view smerge-mode diff log-view pcvs-util org-element org-persist org-id org-refile avl-tree oc-basic ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time gnus-spec gnus-int gnus-range message sendmail rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win ol-docview ol-bibtex bibtex iso8601 ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs org-version org-compat org-macs make-mode ffap grep pcmpl-gnu pcmpl-unix novice etags fileloop generator pulse xref project shortdoc cl-extra proced noutline outline icons add-log rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-enc xmltok yank-media mhtml-mode css-mode eww xdg url-queue thingatpt shr pixel-fill kinsoku url-file svg xml 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 eieio eieio-core cl-macs password-cache url-vars mailcap puny mm-url gnus nnheader gnus-util mail-utils range wid-edit mm-util mail-prsvr color sgml-mode facemenu dom vc bug-reference octave misearch multi-isearch js c-ts-common json map cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util format-spec imenu doc-view filenotify jka-compr image-mode exif vc-git diff-mode easy-mmode vc-dispatcher sh-script rx smie treesit cl-seq executable files-x shell pcomplete compile text-property-search comint ansi-osc ansi-color ring dired-aux dired dired-loaddefs time-date subr-x help-fns radix-tree cl-print byte-opt gv bytecomp byte-compile debug backtrace help-mode find-func 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 kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 939191 235686) (symbols 48 45772 49) (strings 32 194496 17389) (string-bytes 1 6108451) (vectors 16 74154) (vector-slots 8 2095032 169146) (floats 8 489 580) (intervals 56 136872 727) (buffers 976 123))