summaryrefslogtreecommitdiff
path: root/.dir-locals.el
AgeCommit message (Collapse)Author
2026-01-27Revert "maint: Clean-up .dir-locals.el a bit."Maxim Cournoyer
This reverts commit 54b535648886da6e5edbce042682b4e0c0999820. The supporting `lisp-fill-paragraphs-as-doc-string' variable in Emacs hasn't been released yet. To check, run this in an Emacs git checkout: git branch --contains 192355e54af91ad6e7d1343071a749e1ced29400 Change-Id: I3fc23ceb7bc22876d7d3a51a1e55c6965c45699f
2025-10-12tests: don't use 'file://...' URIs for testing git downloads.Reepca Russelstein
While 'url-fetch*' in (guix download) special-cases these URIs, 'git-fetch' does not. Consequently, the recent changes to (guix scripts perform-download) that disallow these URIs cause tests that use builtin:git-download to fail. * guix/tests/git.scm (serve-git-repository, call-with-served-git-repository): new procedures. (with-served-git-repository, with-served-temporary-git-repository): new syntax. * .dir-locals.el (scheme-mode): add indentation information for 'with-served-git-repository'. * tests/builders.scm ("git-fetch, file URI"): use git:// URI with 'with-served-temporary-git-repository'. * tests/derivations.scm ("'git-download' build-in builder, invalid hash", "'git-download' built-in builder, invalid commit", "'git-download' built-in builder, not found"): same. ("'git-download' built-in builder"): same, and use a nonce in the repo contents so that success isn't cached. Change-Id: Id3e1233bb74d5987faf89c4341e1d37f09c77c80 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-09-30services: rottlog: Remove.Nguyễn Gia Phong
* gnu/services/admin.scm (rottlog-service{,-type}, rottlog-configuration{,?,-rottlog,-rc-file,-rotations,-jobs} log-rotation{,?,-frequency,-files,-options,-post-rotate}, %default-rotations, %rotated-files, %default-log-rotation-options): Remove variables. * doc/guix.texi (Rottlog): Remove subheading. * .dir-locals.el: De-register rottlog-configuration. References: a9f21036e43f ("services: rottlog: Deprecate.") Change-Id: I9d62deb4dba31a07c3ef82cde0fca3a05ece064d Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
2025-09-24import: utils: Add API to peek procedure bodies.Nicolas Graves
* guix/import/utils.scm (peekable-lambda, peek-body): Add procedures. * .dir-locals.el: Add peekable-lambda indentation. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2025-09-18maint: Clean-up .dir-locals.el a bit.Maxim Cournoyer
* .dir-locals.el (scheme-mode) <lisp-fill-paragraphs-as-doc-string>: Set new variable to nil. Delete old fill-paragraph-function eval block. Fixes: <https://bugs.gnu.org/79459> Change-Id: I3cff48fe12f1662062d1a9342377d8f41a1ec550
2025-09-18Reapply "Update Maxim's email address."Maxim Cournoyer
This reverts commit a7db92d9b389cbe565395523882c34c6eff2c21a, this time with the more careful command, to avoid a world rebuild: grep -rl --exclude-dir=build --exclude-dir=patches --exclude=ld-wrapper.in \ --exclude=sitecustomize.py --exclude=guix-emacs.el maxim.cournoyer@gmail.com | xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g' Change-Id: I0871f5cf9ace79e34e78e24154d0da6ea95a3a91
2025-09-18Revert "Update Maxim's email address."Maxim Cournoyer
This reverts commit d0d87a744d724b7e7d5ac013c586039652087bb3. Oops! This caused a world rebuild. Change-Id: I25fff644b2b61d0ee93d69b457b04c72b5b74d15
2025-09-18Update Maxim's email address.Maxim Cournoyer
The change was automated via: git grep -l maxim.cournoyer@gmail.com | xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g' * .mailmap: New entry. Change-Id: Iaa88b1e51c94159c49138fb43910badb990eb169
2025-06-28.dir-locals.el: Add all record constructors.Hilton Chain
* .dir-locals.el (scheme-mode): Add all record constructors. Move indentation configurations to the end of file. Change-Id: I9b91777961511be1916a055642337743ab151b5c
2025-05-26.dir-locals.el: Add geiser-insert-actual-lambda.Tomas Volf
Guix project seems to prefer using lambda over λ. Express that preference for Geiser users by setting the geiser-insert-actual-lambda variable to nil. In the 0.31 version it will affect how geiser-insert-lambda works, making it insert lambda string (instead of the current λ. * .dir-locals.el (nil): Add geiser-insert-actual-lambda set to nil. Change-Id: Iccbd4a8df194d60b96b33879c342cfeb224bcfbb Signed-off-by: Christopher Baines <mail@cbaines.net>
2025-04-06dir-locals: Add copyrights.Denis 'GNUtoo' Carikli
The list was first generated in this way: - I started with "git log --pretty='format:%h %ad %an <%ae>' origin/master \ --date="format:%Y" -- .dir-locals.el". - I took the name at the bottom and do a grep with it like that: "git log \ --pretty='format:%h %ad %an <%ae>' origin/master --date="format:%Y" -- \ .dir-locals.el | grep 'Ludovic Courtès'" - I then filled in the copyright for that name - I then repeat the first command with grep -v instead, like that: "git log --pretty='format:%h %ad %an <%ae>' origin/master \ --date="format:%Y" -- .dir-locals.el | grep -v 'Ludovic Courtès'" I also used "git log --pretty='format:%h %ad %an <%ae>' origin/master \ --date="format:%Y" --merges -- .dir-locals.el" to verify which commits I should not take into account, when they didn't modify .dir-locals.el (I checked that with git show <hash>). For updating the names and/or email addresses being used I used git log --author with either part of the name or the email (though it is easy to miss things with this approach). * .dir-locals.el: Add copyrights. Change-Id: I010f1e5e3afc8b646da39dc6341f7870f0c9bf45 Reviewed-by: Tomas Volf <~@wolfsden.cz> Signed-off-by: Christopher Baines <mail@cbaines.net>
2025-03-05gexp: ‘with-parameters’ properly handles ‘%graft?’.David Elsing
Fixes <https://issues.guix.gnu.org/75879>. * .dir-locals.el (scheme-mode): Remove mparameterize indentation rules. Add state-parameterize and store-parameterize indentation rules. * etc/manifests/system-tests.scm (test-for-current-guix): Replace mparameterize with store-parameterize. * etc/manifests/time-travel.scm (guix-instance-compiler): Likewise. * gnu/tests.scm (compile-system-test): Likewise. * guix/gexp.scm (compile-parameterized): Use state-call-with-parameters. * guix/monads.scm (mparameterize): Remove macro. (state-call-with-parameters): New procedure. (state-parameterize): New macro. * guix/store.scm (store-parameterize): New macro. * tests/gexp.scm ("with-parameters for %graft?"): New test. * tests/monads.scm ("mparameterize"): Remove test. ("state-parameterize"): New test. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Change-Id: I0c74066ca3f37072815b073fb3039925488a9645 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-02-22.dir-locals.el: Have Magit recognize Change-Id git trailers.Maxim Cournoyer
* .dir-locals.el: Register the 'Change-Id' git trailer to the GIT-COMMIT-TRAILERS Magit variable. Change-Id: I45deafae39163c63d559e0d50e39ee0691533955
2024-11-29.dir-locals.el: Configure indentation for home-environment.Tomas Volf
* .dir-locals.el (scheme-mode): Indent home-environment same as operating-system. Change-Id: Ie2cfa58f02d081c1e331c7d30beb77f0868f5cdd Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-09-21.dir-locals.el: Add tempel snippets.Nicolas Graves
Change-Id: Ic16f571f26fffee12e478e00c54be55e6eb90831 Signed-off-by: jgart <jgart@dismail.de>
2024-05-13store: Add with-store/non-blocking.Christopher Baines
For some applications, it's important to establish a non-blocking connection rather than just making the socket non-blocking after the connection is established. This is because there is I/O on the socket that will block during the handshake. I've noticed this blocking during the handshake causing issues in the build coordinator for example. This commit adds a new with-store variant to avoid changing the behaviour of with-store/open-connection to ensure that this change can't break anything that depends on the blocking nature of the socket. * guix/store.scm (open-unix-domain-socket, open-inet-socket): Take #:non-blocking? and use SOCK_NONBLOCK when calling socket if appropriate. (connect-to-daemon, open-connection, call-with-store): Take #:non-blocking? and pass it on. (with-store/non-blocking): New syntax rule. * .dir-locals.el (scheme-mode): Add entry for with-store/non-blocking. Change-Id: I8225762b78448bc1f7b698c8de5d736e13f577bf
2024-05-13.dir-locals: Configure indentation for swap-space.Tomas Volf
* .dir-locals.el (scheme-mode): Indent swap-space same as file-system. Change-Id: Id9f2cbd3c81343b479ab1e4df29c65f8b5bd739f Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-04-03store: database: Remove with-statement and associated code.Christopher Baines
I think using dynamic-wind to finalize all statements is the wrong approach. Firstly it would be good to allow reseting statements rather than finalizing them. Then for the problem of handling errors, the approach I've settled on in the build coordinator is to close the database connection, since that'll trigger guile-sqlite3 to finalize all the cached statements. This reverts commit 5d6e2255286e591def122ec2f4a3cbda497fea21. * .dir-locals.el (scheme-mode): Remove with-statement. * guix/store/database.scm (call-with-statement): Remove procedure. (with-statement): Remove syntax rule. (call-with-transaction, last-insert-row-id, path-id, update-or-insert, add-references): Don't use with-statement. Change-Id: I2fd976b3f12ec8105cc56350933a953cf53647e8
2024-04-03store: database: Remove call-with-savepoint and associated code.Christopher Baines
While care does need to be taken with making updates or inserts to the ValidPaths table, I think that trying to ensure this within update-or-insert is the wrong approach. Instead, when working with the store database, only one connection should be used to make changes to the database and those changes should happen in transactions that ideally begin immediately. This reverts commit 37545de4a3bf59611c184b31506fe9a16abe4c8b. * .dir-locals.el (scheme-mode): Remove entries for call-with-savepoint and call-with-retrying-savepoint. * guix/store/database.scm (call-with-savepoint, call-with-retrying-savepoint): Remove procedures. (update-or-insert): Remove use of call-with-savepoint. Change-Id: I2f986e8623d8235a90c40d5f219c1292c1ab157b
2023-10-20.dir-locals.el: Adjust indentation rule for ‘test-assertm’.Ludovic Courtès
This reverts commit 92755c6352fd967bc74d8e5354aad057d779b717, which, at the time, was correct for the 3-argument ‘test-assertm’ macro in ‘tests/pack.scm’ but incorrect for the 2-argument variant found in other test files. * .dir-locals.el: Decrease argument count for ‘test-assertm’.
2023-09-17.dir-locals.el: Update bug-reference configuration and document it.Maxim Cournoyer
(nil) <bug-reference-url-format>: Update URL. Add comment. * doc/contributing.texi (The Perfect Setup): New "Viewing bugs within Emacs" subsection. Co-authored-by: Brian Cully <bjc@spork.org>
2023-09-06.dir-locals: Streamline Geiser configuration.Maxim Cournoyer
Geiser now has support locating the project root and adding it to the load path without external help; leverage it. * .dir-locals.el [nil]: Remove obsolete Geiser configuration. Set the geiser-repl-per-project-p variable to t. * doc/contributing.texi (The Perfect Setup): No longer mention explicitly setting the geiser-guile-load-path; instead mention the effect of the .dir-locals.el file. Reported-by: Wolf <wolf@wolfsden.cz>
2023-06-04records: Add MATCH-RECORD-LAMBDA.(unmatched-parenthesis ew syntax
* guix/records.scm (match-record-lambda): New syntax. * tests/records.scm ("match-record-lambda"): New test. Signed-off-by: Josselin Poiret <dev@jpoiret.xyz>
2023-06-04dir-locals: Fix MATCH-RECORD indentation.(unmatched-parenthesis d
* .dir-locals.el: Treat the fourth form onwards as the body, rather than the third onwards. Signed-off-by: Josselin Poiret <dev@jpoiret.xyz>
2023-03-17Revert gexp->derivation and computed-file indentation rules.Maxim Cournoyer
This reverts b1c25e2ce364741d1c257d3bb3ab773032807a80 and partially reverts 82daab42811a2e3c7684ebdf12af75ff0fa67b99, which means the computed-file and gexp->derivation procedures are now indented as normal procedures. Rationale: see the discussion at https://lists.gnu.org/archive/html/guix-devel/2023-03/msg00008.html. In a nutshell: the convention is to use special rules for special forms (macros), not for procedures. * .dir-locals.el (scheme-mode): Remove the special indentation rules for the computed-file and gexp->derivation procedures.
2023-03-05.dir-locals.el: Allow Guix root-dir overrides when working via Tramp.Brian Cully
* .dir-localsl.el: Add only the local part of the root directory to the guile search path. This lets you use Tramp to hack on a remote Guix checkout. Signed-off-by: Leo Famulari <leo@famulari.name>
2023-02-19.dir-locals: Add let-keywords indentation rules.Maxim Cournoyer
* .dir-locals.el (scheme-mode): Add let-keywords indentation rules.
2023-02-02.dir-locals.el: Adjust indentation rule for test-assertm.Maxim Cournoyer
* .dir-locals.el: Adjust the scheme-indent-function property for test-assertm, so that the two first arguments (the test name and the store variable) are indented as procedure arguments.
2023-02-02.dir-locals.el: Add indentation rule for computed-file.Maxim Cournoyer
* .dir-locals.el: Configure scheme-indent-function property for computed-file, so that its first argument (the file name) is indented as a procedure argument.
2022-09-07.dir-locals.el: Update yas snippets directory.Andrew Tropin
* .dir-locals.el (eval): Update yas snippets directory.
2022-09-05.dir-locals.el: Add .go to completion-ignored-extensions.Andrew Tropin
* .dir-locals.el (eval): Add .go to completion-ignored-extensions.
2022-09-05.dir-locals.el: Add guix yasnippets.Andrew Tropin
* .dir-locals.el (eval): Add guix yasnippets.
2022-07-10monads: Add 'mparameterize'.Ludovic Courtès
* etc/system-tests.scm (mparameterize): Move to... * guix/monads.scm (mparameterize): ... here. * tests/monads.scm ("mparameterize"): New test. * .dir-locals.el (c-mode): Add it.
2022-07-10.dir-locals.el: Restore Emacs 27 lisp-fill-paragraph behavior.Maxim Cournoyer
* .dir-locals.el (scheme-mode): Set fill-paragraph-function to a lisp-fill-paragraph version that matches that of Emacs 27.
2022-06-28.dir-locals.el: Properly indent 'wrap-script'.Maxim Cournoyer
* .dir-locals.el (scheme-mode): Indent 'wrap-script' the same way as 'wrap-program'.
2022-06-07.dir-locals: Adjust to bug-reference-mode in Emacs 28.Ludovic Courtès
* .dir-locals.el: Adjust 'bug-reference-bug-regexp' and 'bug-reference-url-format' to Emacs 28.
2022-03-06import: github: Reuse HTTP connection for the /tags URL fallback.Ludovic Courtès
* guix/import/github.scm (fetch-releases-or-tags): Call 'open-connection-for-uri' and reuse the same connection for the two 'http-fetch' calls. * .dir-locals.el (scheme-mode): Add 'call-with-port'.
2022-03-06tests: Add (guix http-client) tests.Ludovic Courtès
* tests/http-client.scm: New file. * Makefile.am (SCM_TESTS): Add it. * .dir-locals.el (scheme-mode): Add 'with-http-server'.
2022-01-29.dir-locals.el: Don't mess up indentation of prepend and append.Liliana Marie Prikler
The current version appears to assume special values in the first and second package, but it's either all lists (default append) or all package input expressions (inside modify-inputs), which themselves are either packages or lists consisting of a package and a string. * .dir-locals.el: Drop (eval . (put 'prepend 'scheme-indent-function 2)) and (eval . (put 'append 'scheme-indent-function 2)).
2021-08-12Merge branch 'master' into core-updates-frozenMarius Bakke
Conflicts: gnu/packages/algebra.scm gnu/packages/games.scm gnu/packages/golang.scm gnu/packages/kerberos.scm gnu/packages/mail.scm gnu/packages/python.scm gnu/packages/ruby.scm gnu/packages/scheme.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm
2021-08-02.dir-locals.el: Specify indentation rule for with-shepherd-action.Maxim Cournoyer
* .dir-locals.el (scheme-mode) <with-shepherd-action>: New indentation rule.
2021-07-18Merge branch 'master' into core-updatesLudovic Courtès
2021-07-11packages: Add 'modify-inputs'.Ludovic Courtès
* guix/packages.scm (inputs-sans-labels, replace-input): New procedures. (prepend, replace, modify-inputs): New macros. * doc/guix.texi (Defining Package Variants): Document 'modify-inputs'. * dir-locals.el: Add 'modify-inputs' and its keywords.
2021-06-29pack: Add support for the deb format.Maxim Cournoyer
* .dir-locals.el (scheme-mode)[gexp->derivation]: Define indentation rule. * guix/scripts/pack.scm (debian-archive): New procedure. (%formats): Register the new deb format. (show-formats): Add it to the usage string. * tests/pack.scm (%ar-bootstrap): New variable. (deb archive with symlinks): New test. * doc/guix.texi (Invoking guix pack): Document it. * NEWS: Add news entry.
2021-03-30build-system: Rewrite using gexps.Ludovic Courtès
* guix/packages.scm (expand-input): Remove 'store', 'system', and 'cross-system' parameters; add #:native?. Rewrite to return name/gexp-input tuples. (bag->derivation): Adjust accordingly. Lower (bag-build bag). (bag->cross-derivation): Ditto. Instead of #:native-drvs and #:target-drvs, pass #:build-inputs, #:host-inputs, and #:target-inputs. (%derivation-cache): Remove. * gnu/packages/bootstrap.scm (raw-build): Turn into a monadic procedure. * gnu/packages/commencement.scm (glibc-final)[arguments]: Use 'gexp-input' for the #:allowed-references argument. * guix/build-system/cmake.scm (cmake-build): Remove 'store' parameter. Switch to the use of gexps and 'gexp->derivation'. (lower): Remove #:source from 'private-keywords'. * guix/build-system/glib-or-gtk.scm (glib-or-gtk-build, lower): Likewise. * guix/build-system/font.scm (font-build): Likewise. * guix/build-system/gnu.scm (gnu-build): Likewise, and remove 'canonicalize-reference'. (gnu-cross-build): Likewise, and expect #:build-inputs, #:host-inputs, and #:target-inputs instead of #:native-drvs and #:target-drvs. (lower): Likewise. * guix/build-system/perl.scm (perl-build, lower): Likewise. * guix/build-system/python.scm (python-build, lower): Likewise. * guix/build-system/ruby.scm (ruby-build, lower): Likewise. * guix/build-system/waf.scm (waf-build, lower): Likewise. * guix/build-system/trivial.scm (guile-for-build): Remove. (trivial-build): Remove 'store' parameter, change to gexps. (trivial-cross-build): Ditto, and change to #:build-inputs & co. * guix/build-system/cargo.scm (cargo-build): Change to 'gexp->derivation'. * guix/build-system/copy.scm (copy-build): Likewise. * guix/build-system/dune.scm (dune-build): Likewise. * guix/build-system/guile.scm (guile-build, guile-cross-build): Likewise. * guix/build-system/meson.scm (meson-build): Likewise. * guix/build-system/ocaml.scm (ocaml-build): Likewise. * guix/build-system/scons.scm (scons-build): Likewise. * guix/build-system/texlive.scm (texlive-build): Likewise. * guix/build-system/android-ndk.scm (android-ndk-build): Likewise. * guix/build-system/ant.scm (ant-build): Likewise. * guix/build-system/asdf.scm (asdf-build/source, asdf-build): Likewise. * guix/build-system/chicken.scm (chicken-build): Likewise. * guix/build-system/clojure.scm (clojure-build): Likewise. (source->output-path, maybe-guile->guile): Remove. * guix/build-system/dub.scm (dub-build): Likewise. * guix/build-system/emacs.scm (emacs-build): Likewise. * guix/build-system/go.scm (go-build): Likewise. * guix/build-system/haskell.scm (haskell-build): Likewise. * guix/build-system/julia.scm (julia-build): Likewise. * guix/build-system/linux-module.scm (linux-module-build) (linux-module-build-cross): Likewise. * guix/build-system/maven.scm (maven-build): Likewise. * guix/build-system/minify.scm (minify-build): Likewise. * guix/build-system/node.scm (node-build): Likewise. * guix/build-system/qt.scm (qt-build, qt-cross-build): Likewise. * guix/build-system/r.scm (r-build): Likewise. * guix/build-system/rakudo.scm (rakudo-build): Likewise. * guix/build-system/renpy.scm (renpy-build): Likewise. * tests/builders.scm ("gnu-build"): Call 'store-lower' on 'gnu-build'. Pass #:source parameter. * tests/packages.scm ("search paths"): Use 'abort-to-prompt' instead of a normal return from the 'build' method. ("package->bag, sensitivity to %current-target-system"): Change 'build' to match the new build system signature. squash! build-system: Rewrite using gexps. squash! build-system: Rewrite using gexps.
2020-12-15system: 'init' does not recompute the hash of each store item.Ludovic Courtès
Fixes <https://bugs.gnu.org/44760>. Previously, the 'register-path' call would re-traverse ITEM to compute its nar hash, even though that hash is already known in the initial store. This patch also avoids repeated opening/closing of the database. * guix/store/database.scm (call-with-database): Export. * guix/scripts/system.scm (copy-item): Add 'db' parameter. Call 'sqlite-register' instead of 'register-path'. (copy-closure): Remove redundant call to 'references*'. Call 'call-with-database' and pass the database to 'copy-item'.
2020-11-17Merge remote-tracking branch 'origin/version-1.2.0' into masterMaxim Cournoyer
Conflicts: gnu/packages/bioinformatics.scm The python-pysam package fixed in master was kept instead of the update done in the version-1.2.0 branch.
2020-11-16.dir-locals.el: Add upstream report link.Miguel Ángel Arruga Vivas
Follow up from 1d6e7732b163c9e945c9e5b32c726fe3b5f09c3a. * .dir-locals.el: Modify comment to point at the report to bug-gnu-emacs.
2020-11-16.dir-locals.el: Use setq-local on guix-directory.Christopher Lemmer Webber
* .dir-locals.el: Use setq-local on guix-directory. While a problem with using setq hasn't been identified, this seems like good hygiene.
2020-11-16.dir-locals.el: Prevent errors if .dir-locals.el isn't found.Christopher Lemmer Webber
While this repo should presumably always have a .dir-locals.el by the nature of this file itself, it seems that this behavior "leaks". See added comment for more details on the fix to this strange bug, which is likely an upstream emacs or vc-mode issue. Thanks to Miguel Ángel Arruga Vivas and Maxim Cournoyer for helping investigate this problem. * .dir-locals.el: Don't error out if .dir-locals.el isn't found.