From c3d1019b8f2d5af0637ae2f055099e51b9706675 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 7 Oct 2016 23:25:28 +0200 Subject: Use 'define-syntax-parameter' for '&invocation-location'. Guile >= 2.1.4 expects an explicit syntax parameter declaration. * src/guile/skribilo/lib.scm (&invocation-location) [guile-2]: Define as a syntax parameter. --- src/guile/skribilo/lib.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/guile/skribilo/lib.scm b/src/guile/skribilo/lib.scm index ab39261..bbd4b54 100644 --- a/src/guile/skribilo/lib.scm +++ b/src/guile/skribilo/lib.scm @@ -1,6 +1,6 @@ ;;; lib.scm -- Utilities. -*- coding: iso-8859-1 -*- ;;; -;;; Copyright 2005, 2007, 2009, 2012, 2013 Ludovic Courtès +;;; Copyright 2005, 2007, 2009, 2012, 2013, 2016 Ludovic Courtès ;;; Copyright 2003, 2004 Erick Gallesio - I3S-CNRS/ESSI ;;; ;;; @@ -31,7 +31,9 @@ type-name new define-markup define-simple-markup - define-simple-container define-processor-markup) + define-simple-container define-processor-markup + + &invocation-location) ;; Re-exported because used in `define-markup'. :re-export (invocation-location) @@ -113,6 +115,9 @@ ;; that the macro captures its invocation source location using ;; `current-source-location'. + (define-syntax-parameter &invocation-location + (identifier-syntax #f)) + (define-syntax define-markup (lambda (s) (syntax-case s () -- cgit v1.2.3