public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 1/2] elisp-common.eclass: Add lexical-binding cookies to generated Lisp files
@ 2024-05-05 13:17 Ulrich Müller
  2024-05-05 13:17 ` [gentoo-dev] [PATCH 2/2] Revert "elisp-common.eclass: Set no-native-compile in generated files" Ulrich Müller
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Müller @ 2024-05-05 13:17 UTC (permalink / raw
  To: gentoo-dev; +Cc: Ulrich Müller

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-dev] [PATCH 2/2] Revert "elisp-common.eclass: Set no-native-compile in generated files"
  2024-05-05 13:17 [gentoo-dev] [PATCH 1/2] elisp-common.eclass: Add lexical-binding cookies to generated Lisp files Ulrich Müller
@ 2024-05-05 13:17 ` Ulrich Müller
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2024-05-05 13:17 UTC (permalink / raw
  To: gentoo-dev; +Cc: Ulrich Müller

"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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-05 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-05 13:17 [gentoo-dev] [PATCH 1/2] elisp-common.eclass: Add lexical-binding cookies to generated Lisp files Ulrich Müller
2024-05-05 13:17 ` [gentoo-dev] [PATCH 2/2] Revert "elisp-common.eclass: Set no-native-compile in generated files" Ulrich Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox