From unknown Sat Aug 16 16:12:16 2025 X-Loop: don@donarmstrong.com Subject: bug#1103: 23.0.60; which-func misses functions Reply-To: "Lennart Borgman (gmail)" , 1103@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 06 Oct 2008 22:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1103 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122333050630234 (code B ref -1); Mon, 06 Oct 2008 22:10:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Oct 2008 22:01:46 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m96M1hN7030228 for ; Mon, 6 Oct 2008 15:01:44 -0700 Received: from mx10.gnu.org ([199.232.76.166]:60781) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kmy6r-00071P-Up for emacs-pretest-bug@gnu.org; Mon, 06 Oct 2008 17:59:22 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kmy98-0006aI-9k for emacs-pretest-bug@gnu.org; Mon, 06 Oct 2008 18:01:42 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:35040) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kmy97-0006Zw-Mu for emacs-pretest-bug@gnu.org; Mon, 06 Oct 2008 18:01:42 -0400 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:64335 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Kmy8p-00088u-75 for emacs-pretest-bug@gnu.org; Tue, 07 Oct 2008 00:01:35 +0200 Message-ID: <48EA8A9D.8020103@gmail.com> Date: Tue, 07 Oct 2008 00:01:01 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 081006-0, 2008-10-06), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1Kmy8p-00088u-75. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Kmy8p-00088u-75 162de320571a58537cd838ebe955af7f X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6? (barebone, rare!) Instead of displaying the last function in an elisp file it may display the name of a variable that is above the function. I do not know if the patch below is the right way to fix it. Index: which-func.el =================================================================== RCS file: /sources/emacs/emacs/lisp/progmodes/which-func.el,v retrieving revision 1.25 diff -u -r1.25 which-func.el --- which-func.el 30 Sep 2008 03:42:47 -0000 1.25 +++ which-func.el 6 Oct 2008 21:56:46 -0000 @@ -313,7 +313,8 @@ (reverse (cons (car pair) namestack))))) ;; Entries in order, so can skip all those after point. (setq alist nil - imstack nil))))) + ;;imstack nil + ))))) (setq alist (car imstack) namestack (cdr namestack) In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-10-03 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' From unknown Sat Aug 16 16:12:16 2025 X-Loop: don@donarmstrong.com Subject: bug#1103: 23.0.60; which-func misses functions Reply-To: "Lennart Borgman (gmail)" , 1103@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 07 Oct 2008 10:55:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1103 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1103-submit@emacsbugs.donarmstrong.com id=B1103.122337656825659 (code B ref 1103); Tue, 07 Oct 2008 10:55:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MIXEDBDN,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1103) by emacsbugs.donarmstrong.com; 7 Oct 2008 10:49:28 +0000 Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m97AnOtX025652 for <1103@emacsbugs.donarmstrong.com>; Tue, 7 Oct 2008 03:49:25 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:65227 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KnA7p-0006t9-87 for 1103@emacsbugs.donarmstrong.com; Tue, 07 Oct 2008 12:49:21 +0200 Message-ID: <48EB3E90.9010709@gmail.com> Date: Tue, 07 Oct 2008 12:48:48 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: 1103@debbugs.gnu.org References: <48EA8A9D.8020103@gmail.com> In-Reply-To: <48EA8A9D.8020103@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: multipart/mixed; boundary="------------030106020300080800040407" X-Antivirus: avast! (VPS 081006-0, 2008-10-06), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KnA7p-0006t9-87. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KnA7p-0006t9-87 40ed6cc06b529f0d553b382590eefc3a This is a multi-part message in MIME format. --------------030106020300080800040407 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Lennart Borgman (gmail) wrote: > Instead of displaying the last function in an elisp file it may display > the name of a variable that is above the function. I do not know if the > patch below is the right way to fix it. Here is a new patch which I think is correct. --------------030106020300080800040407 Content-Type: text/plain; name="which-func.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="which-func.diff" Index: which-func.el =================================================================== RCS file: /sources/emacs/emacs/lisp/progmodes/which-func.el,v retrieving revision 1.25 diff -u -r1.25 which-func.el --- which-func.el 30 Sep 2008 03:42:47 -0000 1.25 +++ which-func.el 7 Oct 2008 10:45:56 -0000 @@ -287,11 +287,12 @@ (boundp 'imenu--index-alist) imenu--index-alist) (let ((alist imenu--index-alist) (minoffset (point-max)) - offset pair mark imstack namestack) + offset pair mark imstack namestack + skip-sub) ;; Elements of alist are either ("name" . marker), or ;; ("submenu" ("name" . marker) ... ). The list can be ;; arbitrarily nested. - (while (or alist imstack) + (while (or alist imstack skip-sub) (if alist (progn (setq pair (car-safe alist) @@ -302,9 +303,12 @@ ((imenu--subalist-p pair) (setq imstack (cons alist imstack) namestack (cons (car pair) namestack) - alist (cdr pair))) + alist (cdr pair) + skip-sub nil + )) ((number-or-marker-p (setq mark (cdr pair))) + (unless skip-sub (if (>= (setq offset (- (point) mark)) 0) (if (< offset minoffset) ; find the closest item (setq minoffset offset @@ -312,12 +316,15 @@ which-func-imenu-joiner-function (reverse (cons (car pair) namestack))))) ;; Entries in order, so can skip all those after point. - (setq alist nil - imstack nil))))) + ;;(setq alist nil imstack nil) + (setq skip-sub t) + ) + )))) (setq alist (car imstack) namestack (cdr namestack) - imstack (cdr imstack)))))) + imstack (cdr imstack) + skip-sub nil))))) ;; Try using add-log support. (when (and (null name) (boundp 'add-log-current-defun-function) --------------030106020300080800040407-- From unknown Sat Aug 16 16:12:16 2025 X-Loop: don@donarmstrong.com Subject: bug#1103: 23.0.60; which-func misses functions Reply-To: Chong Yidong , 1103@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Oct 2008 16:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1103 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1103-submit@emacsbugs.donarmstrong.com id=B1103.122348266514943 (code B ref 1103); Wed, 08 Oct 2008 16:25:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,BAYES_00, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1103) by emacsbugs.donarmstrong.com; 8 Oct 2008 16:17:45 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m98GHcwf014936 for <1103@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 09:17:39 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 59C0557E212; Wed, 8 Oct 2008 12:19:20 -0400 (EDT) From: Chong Yidong To: "Lennart Borgman \(gmail\)" Cc: 1103@debbugs.gnu.org Date: Wed, 08 Oct 2008 12:19:20 -0400 Message-ID: <87fxn7oy9j.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Instead of displaying the last function in an elisp file it may > display the name of a variable that is above the function. Could you send (i) a recipe to reproduce this problem, and (ii) a ChangeLog entry for your patch? Thanks. From unknown Sat Aug 16 16:12:16 2025 X-Loop: don@donarmstrong.com Subject: bug#1103: 23.0.60; which-func misses functions Reply-To: "Lennart Borgman (gmail)" , 1103@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 08 Oct 2008 23:30:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1103 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1103-submit@emacsbugs.donarmstrong.com id=B1103.122350818922897 (code B ref 1103); Wed, 08 Oct 2008 23:30:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.0 required=4.0 tests=AWL,BAYES_00, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1103) by emacsbugs.donarmstrong.com; 8 Oct 2008 23:23:09 +0000 Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m98NN56j022891 for <1103@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 16:23:06 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:60607 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KniMe-0000Xs-8i; Thu, 09 Oct 2008 01:22:56 +0200 Message-ID: <48ED40A6.1000706@gmail.com> Date: Thu, 09 Oct 2008 01:22:14 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Chong Yidong CC: 1103@debbugs.gnu.org References: <87fxn7oy9j.fsf@cyd.mit.edu> In-Reply-To: <87fxn7oy9j.fsf@cyd.mit.edu> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 081008-1, 2008-10-08), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KniMe-0000Xs-8i. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KniMe-0000Xs-8i 56d2d3ee26e08b0e37583bb703db9be5 Chong Yidong wrote: >> Instead of displaying the last function in an elisp file it may >> display the name of a variable that is above the function. > > Could you send (i) a recipe to reproduce this problem, and Hm, sorry, I can't reproduce it now. It might be a problem with an imenu library I loaded, I did not think of that. I have to investigate this further. > (ii) a > ChangeLog entry for your patch? > > Thanks. > From unknown Sat Aug 16 16:12:16 2025 X-Loop: don@donarmstrong.com Subject: bug#1103: 23.0.60; which-func misses functions Reply-To: "Lennart Borgman (gmail)" , 1103@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Oct 2008 00:55:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1103 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1103-submit@emacsbugs.donarmstrong.com id=B1103.122351320411416 (code B ref 1103); Thu, 09 Oct 2008 00:55:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1103) by emacsbugs.donarmstrong.com; 9 Oct 2008 00:46:44 +0000 Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m990kejG011410 for <1103@emacsbugs.donarmstrong.com>; Wed, 8 Oct 2008 17:46:42 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:63127 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KnjfZ-0008Ac-3V; Thu, 09 Oct 2008 02:46:34 +0200 Message-ID: <48ED543E.30403@gmail.com> Date: Thu, 09 Oct 2008 02:45:50 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: 1103@debbugs.gnu.org CC: Chong Yidong References: <87fxn7oy9j.fsf@cyd.mit.edu> <48ED40A6.1000706@gmail.com> In-Reply-To: <48ED40A6.1000706@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 081008-1, 2008-10-08), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KnjfZ-0008Ac-3V. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KnjfZ-0008Ac-3V 770719293ea8d41f2ff51a3ba56680cd Lennart Borgman (gmail) wrote: > Chong Yidong wrote: >>> Instead of displaying the last function in an elisp file it may >>> display the name of a variable that is above the function. >> Could you send (i) a recipe to reproduce this problem, and > > Hm, sorry, I can't reproduce it now. It might be a problem with an imenu > library I loaded, I did not think of that. I have to investigate this > further. I am a bit puzzled. I see a bit different things. I just tested with a checkout from 2008-10-03: emacs -Q M-x find-function RET which-function-mode M-x which-function-mode This gives me wrong function names in the mode line. But there is something strange there, I will check with a new checkout later ... >> (ii) a >> ChangeLog entry for your patch? >> >> Thanks. >> > > > > > From unknown Sat Aug 16 16:12:16 2025 X-Loop: don@donarmstrong.com Subject: bug#1103: 23.0.60; which-func misses functions Reply-To: "Lennart Borgman (gmail)" , 1103@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Oct 2008 18:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1103 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1103-submit@emacsbugs.donarmstrong.com id=B1103.122357639615965 (code B ref 1103); Thu, 09 Oct 2008 18:25:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1103) by emacsbugs.donarmstrong.com; 9 Oct 2008 18:19:56 +0000 Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m99IJmWE015958 for <1103@emacsbugs.donarmstrong.com>; Thu, 9 Oct 2008 11:19:49 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:60535 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Ko06b-0004Cp-4Q; Thu, 09 Oct 2008 20:19:33 +0200 Message-ID: <48EE4B01.3070909@gmail.com> Date: Thu, 09 Oct 2008 20:18:41 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: "Lennart Borgman (gmail)" CC: 1103@debbugs.gnu.org, Chong Yidong References: <87fxn7oy9j.fsf@cyd.mit.edu> <48ED40A6.1000706@gmail.com> <48ED543E.30403@gmail.com> In-Reply-To: <48ED543E.30403@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 081009-0, 2008-10-09), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1Ko06b-0004Cp-4Q. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Ko06b-0004Cp-4Q b888419131d6b86c973a2df0f8add02b Lennart Borgman (gmail) wrote: > Lennart Borgman (gmail) wrote: >> Chong Yidong wrote: >>>> Instead of displaying the last function in an elisp file it may >>>> display the name of a variable that is above the function. >>> Could you send (i) a recipe to reproduce this problem, and >> Hm, sorry, I can't reproduce it now. It might be a problem with an imenu >> library I loaded, I did not think of that. I have to investigate this >> further. > > I am a bit puzzled. I see a bit different things. I just tested with a > checkout from 2008-10-03: > > emacs -Q > M-x find-function RET which-function-mode > M-x which-function-mode > > This gives me wrong function names in the mode line. But there is > something strange there, I will check with a new checkout later ... With a fresh update from today I can still reproduce this problem as above. Can you please reopen this bug so we do not forget it? >>> (ii) a >>> ChangeLog entry for your patch? >>> >>> Thanks. >>> >> >> >> >> > From unknown Sat Aug 16 16:12:16 2025 X-Loop: don@donarmstrong.com Subject: bug#1103: 23.0.60; which-func misses functions Reply-To: Chong Yidong , 1103@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Oct 2008 20:05:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1103 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1103-submit@emacsbugs.donarmstrong.com id=B1103.12235823238203 (code B ref 1103); Thu, 09 Oct 2008 20:05:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.4 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1103) by emacsbugs.donarmstrong.com; 9 Oct 2008 19:58:43 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m99JwcuA008197 for <1103@emacsbugs.donarmstrong.com>; Thu, 9 Oct 2008 12:58:39 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 3467657E14E; Thu, 9 Oct 2008 16:00:26 -0400 (EDT) From: Chong Yidong To: "Lennart Borgman \(gmail\)" Cc: 1103@debbugs.gnu.org References: <87fxn7oy9j.fsf@cyd.mit.edu> <48ED40A6.1000706@gmail.com> <48ED543E.30403@gmail.com> <48EE4B01.3070909@gmail.com> Date: Thu, 09 Oct 2008 16:00:26 -0400 In-Reply-To: <48EE4B01.3070909@gmail.com> (Lennart Borgman's message of "Thu, 09 Oct 2008 20:18:41 +0200") Message-ID: <87d4i9k085.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> emacs -Q >> M-x find-function RET which-function-mode >> M-x which-function-mode >> >> This gives me wrong function names in the mode line. But there is >> something strange there, I will check with a new checkout later ... > > With a fresh update from today I can still reproduce this problem as > above. Could you send a ChangeLog for your patch (assuming you still think it's correct)? From unknown Sat Aug 16 16:12:16 2025 X-Loop: don@donarmstrong.com Subject: bug#1103: 23.0.60; which-func misses functions Reply-To: "Lennart Borgman (gmail)" , 1103@debbugs.gnu.org Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Oct 2008 20:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1103 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1103-submit@emacsbugs.donarmstrong.com id=B1103.122358491019699 (code B ref 1103); Thu, 09 Oct 2008 20:50:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.5 required=4.0 tests=AWL,BAYES_00,GMAIL, HAS_BUG_NUMBER,MIXEDBDN,MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1103) by emacsbugs.donarmstrong.com; 9 Oct 2008 20:41:50 +0000 Received: from ch-smtp01.sth.basefarm.net (ch-smtp01.sth.basefarm.net [80.76.149.212]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m99Kfk0H019693 for <1103@emacsbugs.donarmstrong.com>; Thu, 9 Oct 2008 13:41:48 -0700 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:63035 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Ko2Jz-0002YI-4x; Thu, 09 Oct 2008 22:41:31 +0200 Message-ID: <48EE6C47.6080703@gmail.com> Date: Thu, 09 Oct 2008 22:40:39 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Chong Yidong CC: 1103@debbugs.gnu.org, Daniel Colascione References: <87fxn7oy9j.fsf@cyd.mit.edu> <48ED40A6.1000706@gmail.com> <48ED543E.30403@gmail.com> <48EE4B01.3070909@gmail.com> <87d4i9k085.fsf@cyd.mit.edu> In-Reply-To: <87d4i9k085.fsf@cyd.mit.edu> X-Enigmail-Version: 0.95.7 Content-Type: multipart/mixed; boundary="------------030606010002010906000702" X-Antivirus: avast! (VPS 081009-0, 2008-10-09), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1Ko2Jz-0002YI-4x. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1Ko2Jz-0002YI-4x de6b569e42118d9144e5f4b589ff2f26 This is a multi-part message in MIME format. --------------030606010002010906000702 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Chong Yidong wrote: >>> emacs -Q >>> M-x find-function RET which-function-mode >>> M-x which-function-mode >>> >>> This gives me wrong function names in the mode line. But there is >>> something strange there, I will check with a new checkout later ... >> With a fresh update from today I can still reproduce this problem as >> above. > > Could you send a ChangeLog for your patch (assuming you still think it's > correct)? I have attached a changlog. Daniel, I think you might have been changing which-function before me. Do you have any comments on my change? --------------030606010002010906000702 Content-Type: text/plain; name="changelog-which-func" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="changelog-which-func" 2008-10-09 Lennart Borgman * which-func.el (which-function): Skip just current sublist when a possible match is found in an imenu index. --------------030606010002010906000702-- From unknown Sat Aug 16 16:12:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Lennart Borgman (gmail)" Subject: bug#1103: closed (Re: bug#1103: 23.0.60; which-func misses functions) Message-ID: References: <48EA8A9D.8020103@gmail.com> X-Gnu-PR-Message: they-closed 1103 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 1103@debbugs.gnu.org Date: Fri, 15 Jul 2011 21:09:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1310764142-5201-1" This is a multi-part message in MIME format... ------------=_1310764142-5201-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #1103: 23.0.60; which-func misses functions which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 1103@debbugs.gnu.org. --=20 1103: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1103 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1310764142-5201-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1103-done) by debbugs.gnu.org; 15 Jul 2011 21:08:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhpcK-0001Ks-4h for submit@debbugs.gnu.org; Fri, 15 Jul 2011 17:08:12 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhpcI-0001Kh-7W for 1103-done@debbugs.gnu.org; Fri, 15 Jul 2011 17:08:10 -0400 Received: from localhost ([127.0.0.1]:35961) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhpcC-0000GM-DV; Fri, 15 Jul 2011 17:08:04 -0400 From: Glenn Morris To: 1103-done@debbugs.gnu.org Subject: Re: bug#1103: 23.0.60; which-func misses functions References: <87fxn7oy9j.fsf@cyd.mit.edu> <48ED40A6.1000706@gmail.com> <48ED543E.30403@gmail.com> <48EE4B01.3070909@gmail.com> <87d4i9k085.fsf@cyd.mit.edu> X-Spook: ASPIC warfare S Key JFK number key Honduras Aladdin Syria X-Ran: *yO;J1!si}dYv"a[`L*>+SZ%he"&Ky&v,v,idBdcJ{gD*@st[5#}<(gN5]L0Adg5G,H2Kd X-Hue: white X-Attribution: GM Date: Fri, 15 Jul 2011 17:08:03 -0400 In-Reply-To: <87d4i9k085.fsf@cyd.mit.edu> (Chong Yidong's message of "Thu, 09 Oct 2008 16:00:26 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 1103-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) I think this should be closed until a description of how to reproduce the problem is provided. ------------=_1310764142-5201-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From lennart.borgman@gmail.com Mon Oct 6 15:01:46 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-7.5 required=4.0 tests=AWL,BAYES_00, MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Oct 2008 22:01:46 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m96M1hN7030228 for ; Mon, 6 Oct 2008 15:01:44 -0700 Received: from mx10.gnu.org ([199.232.76.166]:60781) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kmy6r-00071P-Up for emacs-pretest-bug@gnu.org; Mon, 06 Oct 2008 17:59:22 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kmy98-0006aI-9k for emacs-pretest-bug@gnu.org; Mon, 06 Oct 2008 18:01:42 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:35040) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kmy97-0006Zw-Mu for emacs-pretest-bug@gnu.org; Mon, 06 Oct 2008 18:01:42 -0400 Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:64335 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1Kmy8p-00088u-75 for emacs-pretest-bug@gnu.org; Tue, 07 Oct 2008 00:01:35 +0200 Message-ID: <48EA8A9D.8020103@gmail.com> Date: Tue, 07 Oct 2008 00:01:01 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Subject: 23.0.60; which-func misses functions X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 081006-0, 2008-10-06), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1Kmy8p-00088u-75. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Kmy8p-00088u-75 162de320571a58537cd838ebe955af7f X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6? (barebone, rare!) Instead of displaying the last function in an elisp file it may display the name of a variable that is above the function. I do not know if the patch below is the right way to fix it. Index: which-func.el =================================================================== RCS file: /sources/emacs/emacs/lisp/progmodes/which-func.el,v retrieving revision 1.25 diff -u -r1.25 which-func.el --- which-func.el 30 Sep 2008 03:42:47 -0000 1.25 +++ which-func.el 6 Oct 2008 21:56:46 -0000 @@ -313,7 +313,8 @@ (reverse (cons (car pair) namestack))))) ;; Entries in order, so can skip all those after point. (setq alist nil - imstack nil))))) + ;;imstack nil + ))))) (setq alist (car imstack) namestack (cdr namestack) In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-10-03 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' ------------=_1310764142-5201-1--