From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs Subject: bug#15848: 24.3.50; cperl-mode + which-function: Improve reporting (corner case) Date: Thu, 14 Nov 2013 11:09:02 +0530 Message-ID: <87iovv7dah.fsf@gmail.com> References: <87d2m8pwts.fsf@gmail.com> <87d2m8bhk1.fsf@nbtrap.com> <87iow0quc6.fsf@gmail.com> <87bo1squ1q.fsf@gmail.com> <87ob5sw8zm.fsf@nbtrap.com> <87txfkp6si.fsf@gmail.com> <87d2m8w6bx.fsf@nbtrap.com> <87vbzz9zga.fsf@gmail.com> <877gcf43g5.fsf@nbtrap.com> <87eh6n2o0a.fsf@gmail.com> <87li0v2nkw.fsf@nbtrap.com> <877gcf2n0b.fsf@gmail.com> <871u2nrne5.fsf@nbtrap.com> <878uwukxaw.fsf@gmail.com> <877gcdemmh.fsf@nbtrap.com> <87r4alqzm2.fsf@gmail.com> <87txfhif11.fsf@nbtrap.com> <87siv0hoi8.fsf@gmail.com> <87li0smsv5.fsf@nbtrap.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1384407555 15701 80.91.229.3 (14 Nov 2013 05:39:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Nov 2013 05:39:15 +0000 (UTC) Cc: 15848@debbugs.gnu.org To: Nathan Trapuzzano Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 14 06:39:19 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VgpeB-00009C-70 for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2013 06:39:19 +0100 Original-Received: from localhost ([::1]:53679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgpeA-0000Jv-Pm for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Nov 2013 00:39:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgpe1-0000E3-9W for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 00:39:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgpdv-0002Cs-2n for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 00:39:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37194) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgpdu-0002Co-V6 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 00:39:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vgpdu-0006lD-NX for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2013 00:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2013 05:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15848 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15848-submit@debbugs.gnu.org id=B15848.138440753725974 (code B ref 15848); Thu, 14 Nov 2013 05:39:02 +0000 Original-Received: (at 15848) by debbugs.gnu.org; 14 Nov 2013 05:38:57 +0000 Original-Received: from localhost ([127.0.0.1]:51213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgpdo-0006ks-Mo for submit@debbugs.gnu.org; Thu, 14 Nov 2013 00:38:57 -0500 Original-Received: from mail-pa0-f41.google.com ([209.85.220.41]:42318) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgpdl-0006kd-RM for 15848@debbugs.gnu.org; Thu, 14 Nov 2013 00:38:54 -0500 Original-Received: by mail-pa0-f41.google.com with SMTP id rd3so1574512pab.14 for <15848@debbugs.gnu.org>; Wed, 13 Nov 2013 21:38:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=hkonhph3rTmI4aBwZIsTdWgKusJKHXvMhOTVFQx979s=; b=JMj7QcR6Ny4KjOQboiaEB5TTWkLen2xxp8Me3SiJTMWMSD3s1gkYIWiyOFTlQ03Hp/ Fx9qmLNj9wMQTL/sdd06dd1ebd0yrBlN1sARKjciSkYx5x0wpAHExE/7e2emsF514kue Nr8CKCxcySFjesqr6s+F4CZ5cRBaGGC7sPcvXKjOiUUnZbdIiqPXsAEpl/oXpj6Jw1Ea zHzlf22wFNHqn021YW7mkgZdKl8SX96qP8ZNhJfvvO/1LgTAocrYJUKZKg3hLvfuU2Su Plijn5eA75UFoA0YR8qMq66MncoRERc9n2/zvgzErxmqIEZzRwTMvzYhK6mEnlhtoA1F XCag== X-Received: by 10.66.219.233 with SMTP id pr9mr45687037pac.45.1384407527585; Wed, 13 Nov 2013 21:38:47 -0800 (PST) Original-Received: from debian-6.05 ([115.242.230.140]) by mx.google.com with ESMTPSA id nj9sm48649908pbc.13.2013.11.13.21.38.44 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 13 Nov 2013 21:38:46 -0800 (PST) In-Reply-To: <87li0smsv5.fsf@nbtrap.com> (Nathan Trapuzzano's message of "Wed, 13 Nov 2013 06:41:18 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80415 Archived-At: Nathan Trapuzzano writes: > Jambunathan K writes: > >> Hmm.... Losing something to gain some thing else doesn't seem good to >> me. > > I don't follow. What's being lost? Indexing of =headNs >> I cursorily looked at cperl-mode. My gut feeling is that which-function >> decides the box it is in by looking at the markers that is returned. So >> we may have to examine what value goes in to the marker. > > Yes, which-function just looks at the markers in the imenu index. > Changing those markers' positions is exactly what the patch does. When POD headers are there, the Perl file is cut/segmented a certain way. When POD headers are not indexed, the Perl file is cut/segmented differently. Shouldn't we be cutting at the same spot with or without perl headers?