X-Loop: help-debbugs@HIDDEN Subject: bug#72080: imenu returns different lists in emacs-news-mode and emacs-news-view-mode Resent-From: Siyuan Chen <chansey97@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 12 Jul 2024 17:53:01 +0000 Resent-Message-ID: <handler.72080.B.172080673031913 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 72080 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 72080 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.172080673031913 (code B ref -1); Fri, 12 Jul 2024 17:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jul 2024 17:52:10 +0000 Received: from localhost ([127.0.0.1]:54753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sSKRF-0008Ie-RI for submit <at> debbugs.gnu.org; Fri, 12 Jul 2024 13:52:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:35142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <chansey97@HIDDEN>) id 1sSKRC-0008IW-VE for submit <at> debbugs.gnu.org; Fri, 12 Jul 2024 13:52:07 -0400 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 <chansey97@HIDDEN>) id 1sSKRC-0004dH-C2 for bug-gnu-emacs@HIDDEN; Fri, 12 Jul 2024 13:52:06 -0400 Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <chansey97@HIDDEN>) id 1sSKRA-0006iE-FK for bug-gnu-emacs@HIDDEN; Fri, 12 Jul 2024 13:52:06 -0400 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-64b9f11b92aso20389677b3.1 for <bug-gnu-emacs@HIDDEN>; Fri, 12 Jul 2024 10:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720806723; x=1721411523; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=EewpS9HViU3rD+xYAmWx3Oon9o0GmwlIq/anjuQwW2E=; b=iebGGnlPhRJJgREP/Z9YNFTsj8wNYAuRPWPlWotuhmfAtdfWEw5nWAn3UWN9OEvYlO IfTmUKfyrhmD5gZE7ijNZdb7Ci5NxuSbGpmjPkP1AR2F8qx8la6pNe1lkKp4vQYba8yG RS08OnE3Qen/8I4xQYXzSHzXwfnS3GUqSY2/n5G3eREMSSF0Gs+JVhd7NQ/HZsYmtSD2 bzUQ0Qyw9ewJ7LmcC3RSFZwcPU7V9DPQZGg710SEx+oKDcOFdOzmbCjNbWkk1FuMWGWI Aza3i0Vci95AcUfdbbyzVuQhvBJUuga0ImSqFsEBri0+tX33k0zHohUJekYQ1wqwZ66s 6tKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720806723; x=1721411523; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=EewpS9HViU3rD+xYAmWx3Oon9o0GmwlIq/anjuQwW2E=; b=WZIUG3tpTCRweW0p5nmLc1vF/9bAPRmUaNwgVI+snZ9wiQyLuxeVUO1+EvxsXdtxy1 wy8L60fvOc0NB89C5bjI6oV55Py+EBPowT5/EB9vrVSw8Us7REUi7i/txTX3IVXeojcl Zt1g/VKg4qidSCfwbOAYQxD2BKj8iQlL0WMI0IPoVRqS+OPWEBMRxuF1AHSBUG0Ps753 WWSQbvMqfagYme/iGYPe0jQZ3BnbKAVdbSPBnfgWCrEJI82zbkF3Qyz20/YCSqh7SJNu HSTKDeEno87UPPWB9nDHD2Si1ecFGiKUuOwqbJ/5pCDcNng3OdUQOMyxgqEvRzftyd9x sEtg== X-Gm-Message-State: AOJu0YySFmJaTn/QsgaQzdBviHd4D0nYO7CmGZ8vAyjpXwWeev8EuLi9 /o1gKjpEvuYYBjOqmkHyQh4pAtyVnHwpqn7UwF73QSZE+Hb5OU8RbcJ0stu8VpO5O+iyzCh8E53 YucuZJ5NwuN1PWITj44vsPIbI0Prdnm3f2mi0uks6 X-Google-Smtp-Source: AGHT+IHjZ4IXlEOQaDDeDFwk8NpkDzsJPtnV/z22NzWUAZJamY4DrbXO8P0kEVtgju539kVVadfzJxE2u6rlhyvRo+0= X-Received: by 2002:a05:690c:e08:b0:64a:b33a:d954 with SMTP id 00721157ae682-658ef24b7cemr166870957b3.23.1720806722933; Fri, 12 Jul 2024 10:52:02 -0700 (PDT) MIME-Version: 1.0 From: Siyuan Chen <chansey97@HIDDEN> Date: Sat, 13 Jul 2024 01:52:11 +0800 Message-ID: <CAHWTsY=y_VbMn12-RV8AYqcdv4UdR+kRXmGDzN36gBkV7GcvXg@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000729d38061d1089ff" Received-SPF: pass client-ip=2607:f8b0:4864:20::1130; envelope-from=chansey97@HIDDEN; helo=mail-yw1-x1130.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.1 (--) --000000000000729d38061d1089ff Content-Type: text/plain; charset="UTF-8" Reproduce steps: 1 Clone Emacs source code from https://github.com/emacs-mirror/emacs 2. Emacs -Q (Emacs 29.3 on Windows) 3. Open etc/NEWS.30 from the Emacs source code (by default Emacs will use emacs-news-mode) 4. M-x imenu and press TAB to complete Emacs shows 515 possible completions. 6. M-x emacs-news-view-mode 7. M-x imenu and press TAB to complete Emacs shows 202 possible completions. This is the problem, i.e. emacs-news-mode and emacs-news-view-mode return different imenu lists. The Background: I am reading Emacs NEWS and using the "imenu-list" package to display the outline of the NEWS as a side window since NEWS are often very long. It works well in emacs-news-mode, but lacks many entries in emacs-news-view-mode. BTW the emacs-news-view-mode is nice because it allows button click symbol references in the buffer.. In step 4 and step 7, you can do M-x eval-expression ``` (progn (require 'imenu) (setq message-log-max t) (let ((inhibit-read-only t)) (with-current-buffer "*Messages*" (erase-buffer))) (pp (imenu--make-index-alist))) ``` and save the *Messages* buffer to two files respectively, e.g. news-mode.txt and news-view-mode.txt. You will find that these two files are different. The news-view-mode.txt lacks many imenu entries. P.s. This issue only occurs for NEWS.30. It is OK for NEWS.29. Thanks. Best regards, Siyuan Chen --000000000000729d38061d1089ff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Reproduce steps:</div><div><br></div><div>1 Clone Ema= cs source code from=20 <span class=3D"gmail-Lm gmail-ng"><a href=3D"https://github.com/emacs-mirro= r/emacs">https://github.com/emacs-mirror/emacs</a></span> <br></div><div><b= r></div><div>2. Emacs -Q (Emacs 29.3 on Windows)<br></div><div><br></div><d= iv>3. Open etc/NEWS.30 from the Emacs source code (by default Emacs will us= e emacs-news-mode)<br></div><div><br></div><div>4. M-x imenu and press TAB = to complete</div><div><br></div><div>Emacs shows 515 possible completions. = <br></div><br><div>6. M-x=C2=A0emacs-news-view-mode<br></div><div><br></div= ><div> 7. M-x imenu and press TAB to complete<br></div><div><br></div><div> Emacs shows 202 possible completions.=20 </div><div><br></div><div>This is the problem, i.e. emacs-news-mode and ema= cs-news-view-mode return different imenu lists.<br></div><div><br></div><di= v>The Background:</div><div><br></div><div>I am reading Emacs NEWS and usin= g the "imenu-list" package to display the outline of the NEWS as = a side window since NEWS are often very long. It works well in=20 emacs-news-mode, but=20 lacks many entries in emacs-news-view-mode. BTW the=20 emacs-news-view-mode is nice because it allows button click symbol referenc= es in the buffer..</div><div><br></div><div>In step 4 and step 7, you can d= o M-x eval-expression <br></div><div><br></div><div>```</div><div> (progn <br>=C2=A0 (require 'imenu) <br>=C2=A0 (setq message-log-max t)<= br>=C2=A0 (let ((inhibit-read-only t))<br>=C2=A0 =C2=A0 (with-current-buffe= r "*Messages*" (erase-buffer)))<br>=C2=A0 (pp (imenu--make-index-= alist))) </div><div>```<br></div><div>and save=20 the *Messages* buffer to two files=20 <span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"gmail-jCAhz gmail-Jx= Vs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">respectively, e.g. </span><= /span></span> news-mode.txt and news-view-mode.txt. You will find that these two files ar= e different. The=20 news-view-mode.txt lacks <span class=3D"gmail-HwtZe" lang=3D"en"><span clas= s=3D"gmail-jCAhz gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">ma= ny imenu entries.</span></span></span> </div><div><br></div><div>P.s. This issue only occurs for NEWS.30. It is OK= for NEWS.29.<br></div><div><br></div><div>Thanks.</div><div><br></div><div= >Best regards,</div><div>Siyuan Chen<br></div><div><br></div></div> --000000000000729d38061d1089ff--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Siyuan Chen <chansey97@HIDDEN> Subject: bug#72080: Acknowledgement (imenu returns different lists in emacs-news-mode and emacs-news-view-mode) Message-ID: <handler.72080.B.172080673031913.ack <at> debbugs.gnu.org> References: <CAHWTsY=y_VbMn12-RV8AYqcdv4UdR+kRXmGDzN36gBkV7GcvXg@HIDDEN> X-Gnu-PR-Message: ack 72080 X-Gnu-PR-Package: emacs Reply-To: 72080 <at> debbugs.gnu.org Date: Fri, 12 Jul 2024 17:53:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 72080 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 72080: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72080 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.