[slime-devel] Re: Fix for compiler note placement in DOS newline format files

Helmut Eller heller at common-lisp.net
Wed Sep 17 06:49:19 UTC 2008


* Jeff Workman [2008-09-15 20:46+0200] writes:

> The problem is that Emacs doesn't include \r characters in buffers when
> loading DOS \r\n format files,
> but \r characters are counted by the compiler and SLIME in finding note
> positions.
> So for each line before a compiler note in a DOS format file, note position
> is moved forward one char.

I did it a little differently because M-. and other commands are also
affected by the issue.  I realized to late that C-c C-c wasn't affected,
but I had already changed all backends to return the relative positions
as pairs of START+OFFSET (only the OFFSET part is computed by the Lisp
side, but we know that we always use LF eol convention for C-c C-c).  I
hope that I didn't introduce unnecessary bugs.

Helmut.




More information about the slime-devel mailing list