From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Andr=C3=A9s_?= =?UTF-8?Q?Ram=C3=ADrez?= Newsgroups: gmane.emacs.bugs Subject: bug#41745: 28.0.50; problem with json file and which-function on pretest an master Date: Sun, 07 Jun 2020 04:12:20 +0000 Message-ID: <86tuznms4b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="128926"; mail-complaints-to="usenet@ciao.gmane.io" To: 41745@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 07 06:13:10 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 1jhmgI-000XRg-8G for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jun 2020 06:13:10 +0200 Original-Received: from localhost ([::1]:37366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhmgG-0005FS-Pv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Jun 2020 00:13:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhmgA-0005FK-62 for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 00:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhmg9-0005oS-Tx for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 00:13:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhmg9-0002dx-Of for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 00:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Andr=C3=A9s_?= =?UTF-8?Q?Ram=C3=ADrez?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jun 2020 04:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41745 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.159150315210118 (code B ref -1); Sun, 07 Jun 2020 04:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jun 2020 04:12:32 +0000 Original-Received: from localhost ([127.0.0.1]:53109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhmfg-0002d7-0D for submit@debbugs.gnu.org; Sun, 07 Jun 2020 00:12:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:39686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhmff-0002d0-0A for submit@debbugs.gnu.org; Sun, 07 Jun 2020 00:12:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhmfe-0005DJ-Rc for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 00:12:30 -0400 Original-Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:44059) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhmfd-0005lH-KM for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2020 00:12:30 -0400 Original-Received: by mail-qk1-x72c.google.com with SMTP id c14so14058975qka.11 for ; Sat, 06 Jun 2020 21:12:28 -0700 (PDT) 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=d6JiououQ2UoITEtAbOiZAsrKcO9++MuT3qEhriZnMI=; b=ZDwx1VERKBA4yY7Nb/DKqaOTwpKW+lE+1aDf79fCwOiF/G/X8hhKfuz5XVWr2zWkG7 FRfJsCAOEerYqsjF0tXHvIAwxi0BoWGsjZvej62C9+1W9Mai4uQbNeh3isOD22tnNLtt DMB6FqQm5rwjAItjuSndeQhNJFFkOHHzNEXMehOrz4PdeSUg23jay+5wAN5/jvjnlGtP IVxiFsKgmKqyXrtLV+7Ic5i+O9aXtZmIweA0B2A0tatcpN6lCqLVVG48HnJ+OyJqUmq+ cjKIvaLrDHmQXo2MeZ3xXzspEW60J5cpjkVOmQNIjFbvW5UI/VDoCTh0ldzokkaW56Xo Ifrg== 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=d6JiououQ2UoITEtAbOiZAsrKcO9++MuT3qEhriZnMI=; b=JqRNRjYk4XVhK/q3AFqXu5m5+ho2HaS19LijjYxhvsQCY67LWm7PQVdoLKuc8ICahh N2LM/dg7mh6D5JUr6u2/RQ++k6FOIRidkc70kVpjEEpBbiij9TKJhN7zsnJegQ4J2TJE A+Xt7jdXVIt6mWl8HUMkMTf7Boq8u4kWqOTHpXqc+9iDSliOcE11ZQO2BJs7Nv3e+Xz2 j7eSTZqeuiTchPbj3U8MO66BQvK3lGWmbJHndWWGUZAgNhDgWKJ70Q+Ap8BuAwGASbG8 2b4GSpGN1rJzkfynFt1CbGzN3TCFgQPgE51lXnlBcjKhUKRUyomjTLxBy2/9SDE6bE9w hEcg== X-Gm-Message-State: AOAM532hQFPKZa6SSe6OufT96UpgQnYrgulw/soZg8GxbNSxyDeepqAj KNu3z2YZe74/8zQ2YbIjiXNCbHna X-Google-Smtp-Source: ABdhPJw+wfEhwJH2GM21/pt+XbpQs/0K/jvMpIBNdjdZ4gEvc4Nu1JjxZVurMPPoIfouq4DZQz8eGg== X-Received: by 2002:ae9:df86:: with SMTP id t128mr16336579qkf.29.1591503147480; Sat, 06 Jun 2020 21:12:27 -0700 (PDT) Original-Received: from sacsa.n800.arm.processor.yandex.fm ([190.236.255.173]) by smtp.gmail.com with ESMTPSA id s52sm4475566qtb.3.2020.06.06.21.12.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jun 2020 21:12:26 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::72c; envelope-from=rrandresf@gmail.com; helo=mail-qk1-x72c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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" Xref: news.gmane.io gmane.emacs.bugs:181655 Archived-At: Hi. I have an issue after opening a json file with pretest. Going to end of file with M-> then M-x backward-delete-char. I get this: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (cl-assertion-failed ((or (= (point-min) (point-max)) (eq js--last-parse-pos (point))) nil)) cl--assertion-failed((or (= (point-min) (point-max)) (eq js--last-parse-pos (point)))) js--imenu-create-index() imenu--make-index-alist(t) which-function() which-func-update-1(#) which-func-update() apply(which-func-update nil) timer-event-handler([t 0 0 500000 t which-func-update nil idle 0]) --8<---------------cut here---------------end--------------->8--- I have tried to do the same with emacs -Q (But. I was not able of reproducing it). Also I have tested the same with emacs26.3. And everything works ok. So my personal conclusion is that this is a regression (related to which-func.el). So. I have not been able of reproducing it with emacs -Q. If needed I could share my dot emacs files. Just in Case this is the content of the file that causes the issue: --8<---------------cut here---------------start------------->8--- // TODO: code the #else; analize it {before document better the keywords} #if ( ${saleline.is_service()} == 0 ) ${saleline.supplier()}/${saleline.subcategory()}/${saleline.color()}/${saleline.size()}/${saleline.name()}/${saleline.unit()} #end #if ( ${saleline.is_service()} == "1" ) ${saleline.supplier()}/${saleline.subcategory()}/${saleline.name()} #end --8<---------------cut here---------------end--------------->8--- Best Regards In GNU Emacs 28.0.50 (build 2, armv7l-unknown-linux-gnueabihf, GTK+ Version 3.24.20, cairo version 1.17.3) Repository revision: a69ef94e22716f9cbb7cf8d78b89e7be4a4c60eb Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Arch Linux ARM Recent messages: Loading /home/olla/.emacs.d/init.el (source)...done Loading /home/olla/.emacs.d/elpa/god-mode/god-mode.el (source)...done Loading /home/olla/.emacs.d/elpa/avy/avy.el (source)...done Loading /home/olla/.emacs.d/elpa/ace-window/ace-window.el (source)...done Loading /home/olla/.emacs.d/my-noexternals.el (source)... Created wl link. loading my-noexternal not dot file restoring gc-cons-threshold after startup Loading /home/olla/.emacs.d/my-noexternals.el (source)...done Package cl is deprecated Configured using: 'configure '--program-transform-name=s/^ctags$/ctags.emacs/' --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/usr/share --with-x-toolkit=gtk --mandir=/usr/share/man --pdfdir=/usr/share/doc/emacs --with-modules --with-xft --without-gconf --without-gsettings --with-imagemagick --without-xwidgets --without-pop --with-gameuser=:games --disable-build-details 'CFLAGS=-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector-strong -fno-plt -g3 -Og -fdebug-prefix-map=/home/user/abs/emacs-gtk-85715/src=/usr/src/debug' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO IMAGEMAGICK SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: display-time-mode: t which-function-mode: t savehist-mode: t show-paren-mode: t erc-track-mode: t erc-match-mode: t erc-autojoin-mode: t erc-fill-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tron-theme add-log my-noexternals server time org-wl org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color org-list org-faces org-entities time-date noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs find-func cal-menu calendar cal-loaddefs sm-c-mode derived pcase smie netrc ace-window avy ring god-mode emms-get-lyrics mbsync rx my-misc-setup ido which-func savehist paren vc-git diff-mode easy-mmode em-alias em-smart esh-mode esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util my-erc-setup erc-services erc-networks erc-track erc-match erc-sasl cl erc-menu erc-join erc-fill erc-stamp erc-goodies erc erc-backend erc-compat format-spec auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map seq byte-opt gv bytecomp byte-compile cconv pp erc-loaddefs my-defuns-setup imenu thingatpt info-look info google-c-style gtags cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs edmacro kmacro cl-loaddefs cl-lib jka-compr advice lemacs-public 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 lcms2 dynamic-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 8 194069 156217) (symbols 24 20498 1) (strings 16 63580 8303) (string-bytes 1 2150082) (vectors 8 27826) (vector-slots 4 327386 154564) (floats 8 101 627) (intervals 28 316 0) (buffers 576 10))