[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu-maintenance: update-package-source: Only update the desi
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] gnu-maintenance: update-package-source: Only update the desired package. |
Date: |
Tue, 05 Apr 2016 22:20:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Andy Wingo <address@hidden> skribis:
> In that case I think the ideal is something like "edit-expression",
> which takes a source location that starts an expression, uses "read" to
> advance to the end of the expression, then edits the intervening string
> using whatever but verifies that the result can still be read as one
> expression. Having recorded the absolute byte positions of the start
> and end of the expression, you can then create the output by doing an
> efficient bytevector read of the prologue, then display the string for
> the edited expression, then the bytevector tail.
Indeed, that sounds like the right abstraction!
Thanks,
Ludo’.
Re: [PATCH] gnu-maintenance: update-package-source: Only update the desired package., Ludovic Courtès, 2016/04/05