From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#33695: 27.0.50; which-function reports wrong imenu information Date: Tue, 11 Dec 2018 09:35:08 +0100 Message-ID: <5C0F76BC.6080001@gmx.at> References: <87tvjlmcoe.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1544517263 7499 195.159.176.226 (11 Dec 2018 08:34:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2018 08:34:23 +0000 (UTC) To: Alex Branham , 33695@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 11 09:34:19 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWdUf-0001p2-QF for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Dec 2018 09:34:17 +0100 Original-Received: from localhost ([::1]:36552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWdWm-0005rW-HI for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Dec 2018 03:36:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWdWT-0005m1-3y for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2018 03:36:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWdWP-0008MU-4Q for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2018 03:36:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gWdWO-0008M7-Uu for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2018 03:36:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gWdWO-0001KR-Q5 for bug-gnu-emacs@gnu.org; Tue, 11 Dec 2018 03:36:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Dec 2018 08:36:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33695 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33695-submit@debbugs.gnu.org id=B33695.15445173215041 (code B ref 33695); Tue, 11 Dec 2018 08:36:04 +0000 Original-Received: (at 33695) by debbugs.gnu.org; 11 Dec 2018 08:35:21 +0000 Original-Received: from localhost ([127.0.0.1]:42770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWdVg-0001JE-Og for submit@debbugs.gnu.org; Tue, 11 Dec 2018 03:35:20 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:34793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWdVf-0001Iu-16 for 33695@debbugs.gnu.org; Tue, 11 Dec 2018 03:35:19 -0500 Original-Received: from [192.168.1.101] ([212.95.5.96]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LoaCE-1h7btS2umg-00gc1h; Tue, 11 Dec 2018 09:35:12 +0100 In-Reply-To: <87tvjlmcoe.fsf@gmail.com> X-Provags-ID: V03:K1:dU77pqbMejO1qf78q6ps0T/GdhmCga2XCDWYF/ig1Ep4UBu0QgA W0JQ5hNfuFZTVonYTAcz8I0H/U6CwQXGn4y9qH1tAQB2qgWEPIFAwTJhZBAqMeeRRoOEgnx m9RU2ztov6N6KvWvKdyUGukcAehpnpQoVKrvP4f2vvxqspBR9DMJ+jcrDEaDmDnJxWW1YBe Na9oZ9HA0z0Y4pfdrG9OA== X-UI-Out-Filterresults: notjunk:1;V03:K0:4GG6sqUVCqU=:CgZnZKRf9Wnd9V+k9IChqm EHeDYgCZO1BFF1JU6mfeAgydhXGIIT5BOitkkJ7ag5VgKIUZiZzwHIbY4zTZ9n10IFAjHZ65J zEXPHmCOVHcG5qS0yWRiCV5qezPkPQ8aR1uLgRrZfjGVJjfGkkvniNCVjCBTtEzXzr0vOTv3V 2nVqd+xBHgU4w1XJaWcghKVYvlbxD12YgACZLRUwzDN2nporJ3x9XokijkdodaoPsWNcDEIQD s9maopAD+Ae1OXWVBVSKaRSey28SlEgeC8rqkfXPlt9iXzO2BObVm06kbz0NyLQO0L3e3OW+v 0Mh10QRoPMOT0J/UB8xlTp3NKVTXFSJY1w3FFGW+n5wGmqeVY5e2NGAOKgFW5LBgpROAtlMfs k6nWs/5ztTGlPMDm3CuH+WwPF6WUwgvOqno77uuHODgqEuwf/xSbEUQu83Pks2qtdpNf6i7FI g2WgyzW8TjkXkPEr8cyQ2MdqAzaad2f5z3vO57EF0NjKdaWmOBrbFkrIGwT7/i5BR39ZWMxSr jDmXln+T0qSfC+C8Hqs/HuHKCLXdyNoqAdtq0+sZvI3N8AMmjwQQHd6A4cKBRJp7A9deQfOLC KpDLRIbcTWIj4TklJfkTS8Kalc7KrpWgMI2ORrm8NuPZlb3yEPM8EJGyCPx9nSj4OxRhB/dKS xRfuRvbixDPtyQl8bedXsZARZJadIo7h69nnxJdpKdt70TM5u+DWTOSkuhRxjuZrvyKER46Vn tl6MvisNEKD5mHmHje26mb/SJhVQUxma3fS7WlMdr4ZWxt1+kG7ozQcgkKeS+9S3WhS15idp X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153352 Archived-At: > - Have `which-function' update `imenu--index-alist' before checking it > (also easy to implement, but updating the index could be slow in large > buffers) Maybe we should try to do what 'imenu-update-menubar' does here: Compare the values of 'imenu-menubar-modified-tick' and 'buffer-chars-modified-tick' and update 'imenu--index-alist' if they differ. martin