public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peter Oliver <git@mavit.org.uk>
To: git-commits@fedoraproject.org
Subject: [rpms/desktop-file-utils] rawhide: Enable lexical binding in `desktop-entry-mode-init.el`
Date: Wed, 17 Jun 2026 20:03:01 GMT [thread overview]
Message-ID: <178172658193.1.883864410573527014.rpms-desktop-file-utils-360b346e700f@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-17 20:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178172658193.1.883864410573527014.rpms-desktop-file-utils-360b346e700f@fedoraproject.org \
--to=git@mavit.org.uk \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox