diff options
author | Ludovic Courtès | 2020-08-02 10:06:05 +0200 |
---|---|---|
committer | Ludovic Courtès | 2020-08-02 10:08:13 +0200 |
commit | 18eee9ec031ccdbb4f7ea1b7fb540b372787fa12 (patch) | |
tree | cf9ee2d306f4a60cd494fb62101c22af6a1752a7 /doc | |
parent | 60f1a4cfc168ef903e1eb0a4a81a302261431a31 (diff) | |
download | skribilo-18eee9ec031ccdbb4f7ea1b7fb540b372787fa12.tar.gz skribilo-18eee9ec031ccdbb4f7ea1b7fb540b372787fa12.tar.lz skribilo-18eee9ec031ccdbb4f7ea1b7fb540b372787fa12.zip |
Use '_' as the 'match' wildcard.
This addresses '-Wunused-variable' warnings.
* doc/modules/skribilo/documentation/api.scm (define-markup?)
(make-engine?, make-engine-custom)
(define-markup-formals, define-markup-options)
(define-markup-rest, exp->skribe): Use '_' instead of 'else' as the
'match' wildcard.
* src/guile/skribilo/package/slide/latex.scm (%slide-advi-setup!):
Likewise.
* src/guile/skribilo/source/lisp.scm (lisp-extractor)
(scheme-extractor, stklos-extractor, skribe-extractor)
(bigloo-extractor): Likewise.
* src/guile/skribilo/sui.scm (load-sui): Likewise.
(sui-title, sui-key, sui-find-ref, sui-filter): Likewise.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/modules/skribilo/documentation/api.scm | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/doc/modules/skribilo/documentation/api.scm b/doc/modules/skribilo/documentation/api.scm index a88f837..21044a7 100644 --- a/doc/modules/skribilo/documentation/api.scm +++ b/doc/modules/skribilo/documentation/api.scm @@ -1,8 +1,7 @@ ;;; api.scm -- The style for documenting Scheme APIs. -;;; -*- coding: iso-8859-1 -*- ;;; ;;; Copyright 2005, 2006, 2007, 2008, 2009, 2012, -;;; 2015, 2018 Ludovic Courtès <ludo@gnu.org> +;;; 2015, 2018, 2020 Ludovic Courtès <ludo@gnu.org> ;;; Copyright 2003, 2004 Manuel Serrano ;;; ;;; @@ -392,7 +391,7 @@ def @SkribiloExample named @Title {} right x { o) (('define-simple-container (? (lambda (x) (eq? x id)))) o) - (else + (_ #f))) ;*---------------------------------------------------------------------*/ @@ -414,8 +413,7 @@ def @SkribiloExample named @Title {} right x { (make-engine? id (cdr exp)))) (else (make-engine? id exp))))) - (else - #f))) + (_ #f))) ;*---------------------------------------------------------------------*/ ;* make-engine-custom ... */ @@ -427,8 +425,7 @@ def @SkribiloExample named @Title {} right x { custom) (((custom) _ ___) (primitive-eval custom)) - (else - '())))) + (_ '())))) ;*---------------------------------------------------------------------*/ ;* define-markup-formals ... */ @@ -454,7 +451,7 @@ def @SkribiloExample named @Title {} right x { '()) (('define-simple-container _) '()) - (else + (_ (skribe-error 'define-markup-formals "Invalid 'define-markup' form" def)))) @@ -477,7 +474,7 @@ def @SkribiloExample named @Title {} right x { '((ident #f) (class #f))) (('define-simple-container _) '((ident #f) (class #f))) - (else + (_ (skribe-error 'define-markup-options "Invalid 'define-markup' form" def)))) @@ -508,7 +505,7 @@ def @SkribiloExample named @Title {} right x { 'node) (('define-simple-container _) 'node) - (else + (_ (skribe-error 'define-markup-rest "Invalid 'define-markup' form" def)))) @@ -570,7 +567,7 @@ def @SkribiloExample named @Title {} right x { (match exp (('quote (? symbol? sym)) (string-append "'" (symbol->string sym))) - (else + (_ (with-output-to-string (lambda () (write exp)))))))) ;*---------------------------------------------------------------------*/ |