• [gentoo-dev] [PATCH 1/2] elisp-common.eclass: Add lexical-binding cooki

    From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Sun May 5 15:20:01 2024
    This suppresses the warning spam in recent Emacs from Git.

    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    eclass/elisp-common.eclass | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
    index 3d99838a0221..dfc8168d6869 100644
    --- a/eclass/elisp-common.eclass
    +++ b/eclass/elisp-common.eclass
    @@ -322,7 +322,7 @@ elisp-make-autoload-file() {
    ebegin "Generating autoload file for GNU Emacs"

    cat >"${f}" <<-EOF
    - ;;; ${f##*/} --- autoloads for ${PN}
    + ;;; ${f##*/} --- autoloads for ${PN} -*-lexical-binding:t-*-

    ;;; Commentary:
    ;; Automatically generated by elisp-common.eclass
    @@ -706,7 +706,7 @@ elisp-site-regen() {
    done

    cat <<-EOF >"${T}"/site-gentoo.el || ret=$?
    - ;;; site-gentoo.el --- site initialisation for Gentoo-installed packages
    + ;;; site-gentoo.el --- Gentoo site initialisation -*-lexical-binding:t-*-

    ;;; Commentary:
    ;; Automatically generated by elisp-common.eclass
    --
    2.45.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?q?Ulrich=20M=C3=BCller?=@21:1/5 to All on Sun May 5 15:20:01 2024
    "no-byte-compile: t" implies "no-native-compile: t", therefore this was redundant.

    This reverts commit 2ab9bda58e464656cdf1e31b7e8b293cf1ec0caf.

    Signed-off-by: Ulrich Müller <ulm@gentoo.org>
    ---
    eclass/elisp-common.eclass | 2 --
    1 file changed, 2 deletions(-)

    diff --git a/eclass/elisp-common.eclass b/eclass/elisp-common.eclass
    index dfc8168d6869..ad9d3c7e60c6 100644
    --- a/eclass/elisp-common.eclass
    +++ b/eclass/elisp-common.eclass
    @@ -333,7 +333,6 @@ elisp-make-autoload-file() {
    ;; Local ${null}Variables:
    ;; version-control: never
    ;; no-byte-compile: t
    - ;; no-native-compile: t
    ;; no-update-autoloads: t
    ;; End:

    @@ -723,7 +722,6 @@ elisp-site-regen() {

    ;; Local ${null}Variables:
    ;; no-byte-compile: t
    - ;; no-native-compile: t
    ;; buffer-read-only: t
    ;; End:

    --
    2.45.0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)