aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Court`es2007-06-29 11:43:30 +0000
committerLudovic Court`es2007-06-29 11:43:30 +0000
commit0f6d19ec622daef4b8f046c79c42885eac2f4df6 (patch)
treee0f4eb8992e966be46253f7ef70795c91dd3ad4a
parent0987800d0caf8371a2b25e285e233bd5e7e66aec (diff)
parente926e7b014d2586f5d53f75a43df5b150823d574 (diff)
downloadskribilo-0f6d19ec622daef4b8f046c79c42885eac2f4df6.tar.gz
skribilo-0f6d19ec622daef4b8f046c79c42885eac2f4df6.tar.lz
skribilo-0f6d19ec622daef4b8f046c79c42885eac2f4df6.zip
`diff' package: Small bug fix.
* src/guile/skribilo/package/diff.scm (make-diff-document): Don't use `ast-loc' when AST2 is not `ast?'. git-archimport-id: skribilo@sv.gnu.org--2006/skribilo--devo--1.2--patch-122
-rw-r--r--ChangeLog18
-rw-r--r--src/guile/skribilo/package/diff.scm3
2 files changed, 20 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f75a07..32d045a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,24 @@
# arch-tag: automatic-ChangeLog--skribilo@sv.gnu.org--2006/skribilo--devo--1.2
#
+2007-06-29 11:43:30 GMT Ludovic Court`es <ludovic.courtes@laas.fr> patch-122
+
+ Summary:
+ `diff' package: Small bug fix.
+ Revision:
+ skribilo--devo--1.2--patch-122
+
+ * src/guile/skribilo/package/diff.scm (make-diff-document): Don't use
+ `ast-loc' when AST2 is not `ast?'.
+
+ modified files:
+ ChangeLog src/guile/skribilo/package/diff.scm
+
+ new patches:
+ lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-77
+ lcourtes@laas.fr--2006-libre/skribilo--devo--1.2--patch-78
+
+
2007-06-24 19:53:56 GMT Ludovic Courtes <ludovic.courtes@laas.fr> patch-121
Summary:
diff --git a/src/guile/skribilo/package/diff.scm b/src/guile/skribilo/package/diff.scm
index fe509b7..2d634ec 100644
--- a/src/guile/skribilo/package/diff.scm
+++ b/src/guile/skribilo/package/diff.scm
@@ -367,7 +367,8 @@
(unchanged :loc (ast-loc ast2) ast1))
(else
- (insertion :loc (ast-loc ast2) ast2)))))
+ (let ((loc (and (ast? ast2) (ast-loc ast2))))
+ (insertion :loc loc ast2))))))