From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: despen@verizon.net Newsgroups: gmane.emacs.help Subject: Re: Is there a package which uses markers to guess how to remap line numbers? Date: Thu, 19 Nov 2009 10:25:44 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258647856 29017 80.91.229.12 (19 Nov 2009 16:24:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 16:24:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 19 17:24:10 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NB9ng-0005aJ-PJ for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 17:24:05 +0100 Original-Received: from localhost ([127.0.0.1]:43088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB9ng-0002SA-5T for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 11:24:04 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin.stu.neva.ru!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-X-Trace: news.eternal-september.org U2FsdGVkX18evhq3MLk9ie0ZgRK+pX/kFfOFDSJqKuaVYPtl5jZWNE4q+pcbUzZO+WRaqzjrPPoFgeec9eJOLssgptZ4hwSBDb5tHsOPrT4q460SFmbk97JMhB0GpGnmCFlWUqZco90= Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Thu, 19 Nov 2009 15:25:44 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+JaReX7+Av8uYYHL7jTfAWR+Ubj4J7NTOXyi+yItTJSg== Cancel-Lock: sha1:yhJhDg7xyYGiMg7nO3+H6nDBu58= sha1:K4c78lAp2T1MZZlgoWkpB6v1hCQ= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:174857 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69931 Archived-At: rocky writes: > I am writing a package (an interface to debuggers) that sets markers > on various lines (e.g. the lines at which the debugger stops at). Over > time, the buffer (source code) can change and the markers move around > with that. This is good. > > Is there however a package which will suggest after buffer > modification how a particular line number might have changed given the > existing marker information and associated line number information for > that buffer? > > Here is a concrete example. Let's say I have a buffer with a marker at > lines 1, 5, 10 and 20. Let's say the marker for 10 moves to line 11 > after modification but not the one for 1, 5 or 20. > > If I ask about lines in the range 2-4, I may warn that overall the > buffer has changed but possibly not the one in that range. Of course > if I ask about lines 1, 5, or 20, I can warn that although the buffer > has changed, (parts of) those lines haven't. If I ask about a line in > the range 6-19 I can suggest there may be a move ahead a line with > more certainty of line 10. > > Has anyone thought about this problem. Does such a package exist or > has anything like this been done as part of an existing package? Part of the compile package does something like that. As you do "next-error" it accounts for any fixes you may have made for previous errors.