mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-30 16:12:58 -05:00
670fc6ee50
The old surrounding-sexp procedure would read all S-expressions from the beginning of the file up to the given line number and then return the last encountered S-expression. This is quite wasteful. Instead we can record all lines that begin with an S-expression and jump straight to the offset closest to the desired line number to read the S-expression there. * etc/committer.scm.in (lines+offsets-with-opening-parens): New procedure. (surrounding-sexp): Use it. |
||
---|---|---|
.. | ||
completion | ||
git | ||
init.d | ||
openrc | ||
snippets | ||
substitutes | ||
teams/qt | ||
committer.scm.in | ||
copyright.el | ||
disarchive-manifest.scm | ||
gnu-store.mount.in | ||
guix-daemon.cil.in | ||
guix-daemon.conf.in | ||
guix-daemon.service.in | ||
guix-gc.service.in | ||
guix-gc.timer | ||
guix-install.sh | ||
guix-publish.conf.in | ||
guix-publish.service.in | ||
historical-authorizations | ||
hurd-manifest.scm | ||
kernels-manifest.scm | ||
news.scm | ||
release-manifest.scm | ||
source-manifest.scm | ||
system-tests.scm | ||
teams.scm.in | ||
time-travel-manifest.scm |