all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is there a package which uses markers to guess how to remap line  numbers?
@ 2009-11-19 13:02 rocky
  2009-11-19 15:25 ` despen
  2009-11-19 15:39 ` Scott Frazer
  0 siblings, 2 replies; 5+ messages in thread
From: rocky @ 2009-11-19 13:02 UTC (permalink / raw)
  To: help-gnu-emacs

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-20  2:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 13:02 Is there a package which uses markers to guess how to remap line numbers? rocky
2009-11-19 15:25 ` despen
2009-11-20  2:10   ` rocky
2009-11-19 15:39 ` Scott Frazer
2009-11-20  2:23   ` rocky

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.