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: Wed, 12 Dec 2018 09:31:41 +0100 Message-ID: <5C10C76D.2090702@gmx.at> References: <87tvjlmcoe.fsf@gmail.com> <5C0F76BC.6080001@gmx.at> <87mupcm8vd.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 1544603415 5223 195.159.176.226 (12 Dec 2018 08:30:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2018 08:30:15 +0000 (UTC) Cc: 33695@debbugs.gnu.org To: Alex Branham Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 09:30:11 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 1gWzuE-0001FY-Sm for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2018 09:30:11 +0100 Original-Received: from localhost ([::1]:43122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWzwL-0007OZ-8d for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2018 03:32:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWzw8-0007NB-3l for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2018 03:32:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWzw2-0006pb-KX for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2018 03:32:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40221) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gWzw2-0006pV-Ge for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2018 03:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gWzw2-0004Qs-6u for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2018 03:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Dec 2018 08:32:02 +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.154460351817026 (code B ref 33695); Wed, 12 Dec 2018 08:32:02 +0000 Original-Received: (at 33695) by debbugs.gnu.org; 12 Dec 2018 08:31:58 +0000 Original-Received: from localhost ([127.0.0.1]:44479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWzvy-0004QY-Js for submit@debbugs.gnu.org; Wed, 12 Dec 2018 03:31:58 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:60747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gWzvu-0004QB-9z for 33695@debbugs.gnu.org; Wed, 12 Dec 2018 03:31:54 -0500 Original-Received: from [192.168.1.101] ([213.162.73.37]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MGjfl-1gbisf07TF-00DU90; Wed, 12 Dec 2018 09:31:48 +0100 In-Reply-To: <87mupcm8vd.fsf@gmail.com> X-Provags-ID: V03:K1:AAurtjeZ6RhzknZSXuLCJig8HtO9p4wK5nhvY5NKQ0Cee5ef2Ud Bzsx1QVWouKqA1Kzc+sNZHAClQApKSt9SbV3TmaeiaH/mpDxZGCl/h5XQUujgDy+OcCrAJ2 ziTGpvZ9KDCohXZgqUXafDi7QAbvsbuP16v23GQgFbK+OFH1PE0ThccNlQ7sAWE5bzy/waF dBRiK4h+2g9pnWo1+c9zA== X-UI-Out-Filterresults: notjunk:1;V03:K0:JnURTSELDp8=:1DCOs4UtBvw5HZO5F8JmZI wuRlzv+hmHkqjJgmblHrfI4iY6U82mxpcOYKpXljNko41kgKfolaqPY3gtjm3JhGKmjtJ/FwO KdN93J+Ozorad37SU3LY+qH4G/lrARX/LBOB2ff7l8mSYNPGghAU8V2y1qWNbC0hKljL80ikN Dqqi1LyP+6HBysUCJjt4NU2flUHsvcOapoY3cBFLZSBvTfkZp0c+ySbgUts0VvV8KUB8N7B2n hNdstMwmxQp0cM60aqsONWosp7ttz6+t8JsOILB9xWN1vWH/bZ/S4/HY1MD/qKT3a4cCR477T cX2+X9iJvYxDkLO81f646QiyX1ZZR6irJ1nmmmUUeK6z5jMNuop+ajYyLwZ2ICjPpdwva+GoB UvdZYS4HsBmLsdKWAXwdsUC3p/69Gs+HYfv8mmqm2GYaV7EVeoRXkAyDNuHCKkqfblh9ChL5H RIfCJ2CNOigfvm64YE4fQbER0ugumMDAo14evy6Svpt53qC2+AGzdiWd9ijpBXXKJ7E4lf0Dj X1uTYSdQnxzlDC+iWHBI5yrOy1zQbF/V3+Fzj1jo4r+4nO14vjFh6gacesVSwbCcf9DWUqHZA KgPImozjPhi3wxsYZQBxGQ941FPo4zm4/RWyFq7+3livieq5FrwYle1AXH51WAqpYczktHbFS SEnHewDvh5aO4Gn7uzCE3E3ZavqRg3EOX4cTBQ1c0fQFtVlALpyH+GKlhthAKIL6bwzltozsu N7pzmWHN7DSgYrDuCzZeHQVLsLla48UtrB5SPKG+ieaxsXd+32RMOe0Ok5lrF5YFJxJJK5Jf 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:153376 Archived-At: > Thanks for the reply. This seems to work well, though I haven't tried it > in an enormous buffer. Maybe we should make it optional so people on slower machines have the choice. I have no opinion because I don't use 'which-func-mode' hence people who do should chime in. For me the idea of calculating all function position in a buffer and afterwards have 'which-func-mode' scan them to find out which function point is in, strikes me as enormous over-kill. In particular with 'syntax-ppss' around which usually should, without any additional cost, provide the position where the current functions starts via the 9th element of its return value. But don't let these rantings distract you. martin