[slime-cvs] CVS slime

CVS User heller heller at common-lisp.net
Thu Aug 18 09:41:15 UTC 2011


Update of /project/slime/cvsroot/slime
In directory tiger.common-lisp.net:/tmp/cvs-serv23625

Modified Files:
	ChangeLog slime.el 
Log Message:
Fix line numbers for compiler notes if is narrowing was in effect.

* slime.el (slime-canonicalized-location): Widen before calling
line-number-at-pos.

--- /project/slime/cvsroot/slime/ChangeLog	2011/08/17 15:40:47	1.2210
+++ /project/slime/cvsroot/slime/ChangeLog	2011/08/18 09:41:15	1.2211
@@ -1,3 +1,10 @@
+2011-08-18  Helmut Eller  <heller at common-lisp.net>
+
+	Fix line numbers for compiler notes if is narrowing was in effect.
+
+	* slime.el (slime-canonicalized-location): Widen before calling
+	line-number-at-pos.
+
 2011-08-17  Stas Boukarev  <stassats at gmail.com>
 
 	* swank-allegro.lisp (with-redirected-y-or-n-p): Fix modern-mode
--- /project/slime/cvsroot/slime/slime.el	2011/08/08 12:31:00	1.1373
+++ /project/slime/cvsroot/slime/slime.el	2011/08/18 09:41:15	1.1374
@@ -2913,7 +2913,9 @@
     (save-excursion
       (slime-goto-source-location location)
       (list (or (buffer-file-name) (buffer-name))
-            (line-number-at-pos)
+            (save-restriction
+              (widen)
+              (line-number-at-pos))
             (1+ (current-column))))))
 
 (defun slime-canonicalized-location-to-string (loc)





More information about the slime-cvs mailing list