From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rocky Newsgroups: gmane.emacs.help Subject: Is there a package which uses markers to guess how to remap line numbers? Date: Thu, 19 Nov 2009 05:02:41 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1258638463 26179 80.91.229.12 (19 Nov 2009 13:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 13:47:43 +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 14:47:35 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 1NB7MD-0007HT-FT for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 14:47:33 +0100 Original-Received: from localhost ([127.0.0.1]:55389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB7MC-0008FW-Qt for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Nov 2009 08:47:32 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!w19g2000yqk.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 71.183.236.17 Original-X-Trace: posting.google.com 1258635762 8053 127.0.0.1 (19 Nov 2009 13:02:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 19 Nov 2009 13:02:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w19g2000yqk.googlegroups.com; posting-host=71.183.236.17; posting-account=jKjGDQoAAABKN2iauJtD3DV5oMZpXuQo User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.15) Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15 GTB5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:174844 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:69918 Archived-At: 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? Thanks.