Fedora Account System
Red Hat Associate
Red Hat Customer
Without the lexical tag, a warning gets generated. Reproducible: Always Steps to Reproduce: 1. Install emacs 2. Install mercurial 3. Start emacs Actual Results: Emacs *Warnings* buffer complains about the absence of the lexical binding tag on this file: /usr/share/emacs/site-lisp/site-start.d/mercurial-site-start.el Expected Results: emacs start up normally. Additional Information: elisp-enable-lexical-binding will fix the file if emacs has permissions.
Thanks. Are you an Emacs lisp expert? The Mercurial emacs files seem to have other problems too ...
I'm not an expert, I just wanted to suppress the Warning message. What other problems are you aware of? Is there a maintainer for mercurial.el? I do see the author name in mecurial.el. Maybe it would be better to switch to vc-hgcmd there's an official package in gnu and melpa archives.
Because mercurial.el contains no bindings the patch is simple: insert the following line at the start of /usr/share/emacs/site-lisp/site-start.d/mercurial-site-start.el: ;; -*- lexical-binding: t; -*- This fixes the reported bug. It may not fix other problems with the mercurial package, but one bugfix at a time.
It might be sensible to just drop installing it altogether. Debian has done so in 2010: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557211 In fact, this file has not been touched since 2012 and is basically guaranteed to be outdated: https://foss.heptapod.net/mercurial/mercurial-devel/-/commits/branch/default/contrib/mercurial.el?ref_type=heads
FEDORA-2026-0d5f051419 (mercurial-7.2.4-2.fc46) has been submitted as an update to Fedora 46. https://bodhi.fedoraproject.org/updates/FEDORA-2026-0d5f051419
FEDORA-2026-0d5f051419 (mercurial-7.2.4-2.fc46) has been pushed to the Fedora 46 stable repository. If problem still persists, please make note of it in this bug report.