mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 20:30:28 +02:00
Fix error messages involving definition forms
* module/ice-9/psyntax.scm (syntax-type): Return an additional value that contains the entire form in _all_ cases, including for definition forms. Previously, the entire form was not returned for definition forms. (expand-expr): Add an additional argument that contains the entire form in _all_ cases, including for definition forms. Use it to include the entire form in error messages, notably for definitions in expression context. Include the source location information, which was previously missing from these errors when the rhs expression was an atom. Improve the "definition in expression context" error message to be more comprehensible for Scheme beginners. (expand-top-sequence, expand, expand-body): Adjust as needed to handle the additional return value from 'syntax-type' and the additional argument to 'expand-expr'. * module/ice-9/psyntax-pp.scm: Regenerate. * NEWS: Update.
This commit is contained in:
parent
d4b5c773e4
commit
40e92f09fc
3 changed files with 11472 additions and 11325 deletions
1
NEWS
1
NEWS
|
@ -173,6 +173,7 @@ Search the manual for these identifiers and modules, for more.
|
|||
** Fix <dynwind> serialization.
|
||||
** Fix erroneous check in `set-procedure-properties!'.
|
||||
** Fix generalized-vector-{ref,set!} for slices.
|
||||
** Fix error messages involving definition forms.
|
||||
** HTTP: Extend handling of "Cache-Control" header.
|
||||
** HTTP: Fix qstring writing of cache-extension values
|
||||
** HTTP: Fix validators for various list-style headers.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue