fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings

I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress
the warnings introduced in Emacs 31 requiring all elisp files to have a
`lexical-binding` comment.

This retains the default behavior of dynamic binding when no
`lexical-binding` comment is present. With it set to `t` across the
board, various things break, and fixing those is a task for another day.
This commit is contained in:
2025-06-29 12:23:03 +01:00
parent ed5432641a
commit fe6a4e7ce5
267 changed files with 267 additions and 266 deletions

View File

@@ -1,4 +1,4 @@
;;; siren-applescript.el --- jimeh's Emacs Siren: applescript-mode configuration.
;;; siren-applescript.el --- jimeh's Emacs Siren: applescript-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-caddyfile.el --- jimeh's Emacs Siren: caddyfile-mode configuration.
;;; siren-caddyfile.el --- jimeh's Emacs Siren: caddyfile-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-coffee.el --- jimeh's Emacs Siren: coffee-mode configuration.
;;; siren-coffee.el --- jimeh's Emacs Siren: coffee-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-conf.el --- jimeh's Emacs Siren: conf-mode configuration.
;;; siren-conf.el --- jimeh's Emacs Siren: conf-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-css.el --- jimeh's Emacs Siren: css-mode configuration.
;;; siren-css.el --- jimeh's Emacs Siren: css-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-csv.el --- jimeh's Emacs Siren: csv configuration.
;;; siren-csv.el --- jimeh's Emacs Siren: csv configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-cucumber.el --- jimeh's Emacs Siren: feature-mode configuration.
;;; siren-cucumber.el --- jimeh's Emacs Siren: feature-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-dart.el --- jimeh's Emacs Siren: dart-mode configuration.
;;; siren-dart.el --- jimeh's Emacs Siren: dart-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-dockerfile.el --- jimeh's Emacs Siren: dockerfile-mode configuration.
;;; siren-dockerfile.el --- jimeh's Emacs Siren: dockerfile-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-emacs-lisp.el --- jimeh's Emacs Siren: emacs-lisp-mode configuration.
;;; siren-emacs-lisp.el --- jimeh's Emacs Siren: emacs-lisp-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-flutter.el --- jimeh's Emacs Siren: flutter-mode configuration.
;;; siren-flutter.el --- jimeh's Emacs Siren: flutter-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-git-modes.el --- jimeh's Emacs Siren: git-modes-mode configuration.
;;; siren-git-modes.el --- jimeh's Emacs Siren: git-modes-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-golang.el --- jimeh's Emacs Siren: go-mode configuration.
;;; siren-golang.el --- jimeh's Emacs Siren: go-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-groovy.el --- jimeh's Emacs Siren: groovy-mode configuration.
;;; siren-groovy.el --- jimeh's Emacs Siren: groovy-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-haml.el --- jimeh's Emacs Siren: haml-mode configuration.
;;; siren-haml.el --- jimeh's Emacs Siren: haml-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-haskell.el --- jimeh's Emacs Siren: haskell-mode configuration.
;;; siren-haskell.el --- jimeh's Emacs Siren: haskell-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-jinja2.el --- jimeh's Emacs Siren: jinja2-mode configuration.
;;; siren-jinja2.el --- jimeh's Emacs Siren: jinja2-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-js.el --- jimeh's Emacs Siren: js-mode configuration.
;;; siren-js.el --- jimeh's Emacs Siren: js-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-json.el --- jimeh's Emacs Siren: json-mode configuration.
;;; siren-json.el --- jimeh's Emacs Siren: json-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-jsonnet.el --- jimeh's Emacs Siren: jsonnet-mode configuration.
;;; siren-jsonnet.el --- jimeh's Emacs Siren: jsonnet-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-jsx.el --- jimeh's Emacs Siren: .jsx file configuration
;;; siren-jsx.el --- jimeh's Emacs Siren: .jsx file configuration -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-lisp.el --- jimeh's Emacs Siren: lisp-mode configuration.
;;; siren-lisp.el --- jimeh's Emacs Siren: lisp-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-lua.el --- jimeh's Emacs Siren: lua-mode configuration.
;;; siren-lua.el --- jimeh's Emacs Siren: lua-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-makefile.el --- jimeh's Emacs Siren: makefile-mode configuration.
;;; siren-makefile.el --- jimeh's Emacs Siren: makefile-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-markdown.el --- jimeh's Emacs Siren: markdown-mode configuration.
;;; siren-markdown.el --- jimeh's Emacs Siren: markdown-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-mermaid.el --- jimeh's Emacs Siren: mermaid-mode configuration.
;;; siren-mermaid.el --- jimeh's Emacs Siren: mermaid-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-mmm.el --- jimeh's Emacs Siren: mmm-mode configuration.
;;; siren-mmm.el --- jimeh's Emacs Siren: mmm-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-nginx.el --- jimeh's Emacs Siren: nginx-mode configuration.
;;; siren-nginx.el --- jimeh's Emacs Siren: nginx-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-nix.el --- jimeh's Emacs Siren: nix-mode configuration.
;;; siren-nix.el --- jimeh's Emacs Siren: nix-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-php.el --- jimeh's Emacs Siren: php-mode configuration.
;;; siren-php.el --- jimeh's Emacs Siren: php-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-plantuml.el --- jimeh's Emacs Siren: plantuml-mode configuration.
;;; siren-plantuml.el --- jimeh's Emacs Siren: plantuml-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-polymode.el --- jimeh's Emacs Siren: polymode configuration.
;;; siren-polymode.el --- jimeh's Emacs Siren: polymode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-protobuf.el --- jimeh's Emacs Siren: protobuf-mode configuration.
;;; siren-protobuf.el --- jimeh's Emacs Siren: protobuf-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-ruby.el --- jimeh's Emacs Siren: ruby-mode configuration.
;;; siren-ruby.el --- jimeh's Emacs Siren: ruby-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-rust.el --- jimeh's Emacs Siren: rust-mode configuration.
;;; siren-rust.el --- jimeh's Emacs Siren: rust-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-sass.el --- jimeh's Emacs Siren: sass-mode configuration.
;;; siren-sass.el --- jimeh's Emacs Siren: sass-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-scss.el --- jimeh's Emacs Siren: scss-mode configuration.
;;; siren-scss.el --- jimeh's Emacs Siren: scss-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-sh.el --- jimeh's Emacs Siren: sh-mode configuration.
;;; siren-sh.el --- jimeh's Emacs Siren: sh-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-slim.el --- jimeh's Emacs Siren: slim-mode configuration.
;;; siren-slim.el --- jimeh's Emacs Siren: slim-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-sql.el --- jimeh's Emacs Siren: sql-mode configuration.
;;; siren-sql.el --- jimeh's Emacs Siren: sql-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-ssh-config.el --- jimeh's Emacs Siren: ssh-config-mode configuration.
;;; siren-ssh-config.el --- jimeh's Emacs Siren: ssh-config-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-terraform.el --- jimeh's Emacs Siren: terraform-mode configuration.
;;; siren-terraform.el --- jimeh's Emacs Siren: terraform-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-thrift.el --- jimeh's Emacs Siren: thrift-mode configuration.
;;; siren-thrift.el --- jimeh's Emacs Siren: thrift-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-toml.el --- jimeh's Emacs Siren: toml-mode configuration.
;;; siren-toml.el --- jimeh's Emacs Siren: toml-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-typescript.el --- jimeh's Emacs Siren: typescript-mode configuration.
;;; siren-typescript.el --- jimeh's Emacs Siren: typescript-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-vue.el --- jimeh's Emacs Siren: vue-mode configuration.
;;; siren-vue.el --- jimeh's Emacs Siren: vue-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-web-mode.el --- jimeh's Emacs Siren: web-mode configuration.
;;; siren-web-mode.el --- jimeh's Emacs Siren: web-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-x509.el --- jimeh's Emacs Siren: x509-mode configuration.
;;; siren-x509.el --- jimeh's Emacs Siren: x509-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-xml.el --- jimeh's Emacs Siren: XML editing configuration.
;;; siren-xml.el --- jimeh's Emacs Siren: XML editing configuration. -*- lexical-binding: nil; -*-
;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-yaml.el --- jimeh's Emacs Siren: yaml-mode configuration.
;;; siren-yaml.el --- jimeh's Emacs Siren: yaml-mode configuration. -*- lexical-binding: nil; -*-
;;; Commentary: