public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/desktop-file-utils] rawhide: Enable lexical binding in `desktop-entry-mode-init.el`
@ 2026-06-17 20:03 Peter Oliver
  0 siblings, 0 replies; only message in thread
From: Peter Oliver @ 2026-06-17 20:03 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/desktop-file-utils
            Branch : rawhide
            Commit : 360b346e700f7b5fa54389100ed6cc182b7e1966
            Author : Peter Oliver <git@mavit.org.uk>
            Date   : 2026-06-09T11:26:07+01:00
            Stats  : +10/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/desktop-file-utils/c/360b346e700f7b5fa54389100ed6cc182b7e1966?branch=rawhide

            Log:
            Enable lexical binding in `desktop-entry-mode-init.el`

This fixes the following unsightly warning in Emacs 31:

```
⛔ Warning (files): Missing ‘lexical-binding’ cookie in "/usr/share/emacs/site-lisp/site-start.d/desktop-entry-mode-init.el".
You can add one with ‘M-x elisp-enable-lexical-binding RET’.
See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’
for more information.
```

While we’re here, keep `checkdoc` happy too.

---
diff --git a/desktop-entry-mode-init.el b/desktop-entry-mode-init.el
index 3ce2f79..b89260c 100644
--- a/desktop-entry-mode-init.el
+++ b/desktop-entry-mode-init.el
@@ -1,2 +1,12 @@
+;;; desktop-entry-mode-init.el --- Autoload desktop-entry-mode  -*- lexical-binding: t; -*-
+
+;;; Commentary:
+;;
+;; Autoload desktop-entry-mode
+
+;;; Code:
+
 (autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t)
 (add-to-list 'auto-mode-alist '("\\.desktop\\(\\.in\\)?$" . desktop-entry-mode))
+
+;;; desktop-entry-mode-init.el ends here

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-17 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-17 20:03 [rpms/desktop-file-utils] rawhide: Enable lexical binding in `desktop-entry-mode-init.el` Peter Oliver

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