Skip to content

Commit

Permalink
mu4e: show single-thread status in mu4e main
Browse files Browse the repository at this point in the history
Make it clear we're using the single-thread version
  • Loading branch information
djcb committed Sep 16, 2024
1 parent 2769925 commit e38c0cf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions mu4e/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@


# generate some build data for use in mu4e
version_extra=''
if get_option('xapian-single-threaded')
version_extra='-st'
endif

mu4e_meta = configure_file(
input: 'mu4e-config.el.in',
output: 'mu4e-config.el',
install: true,
install_dir: mu4e_lispdir,
configuration: {
'VERSION' : meson.project_version(),
'MU_DOC_DIR' : join_paths(datadir, 'doc', 'mu'),
'VERSION' : meson.project_version(),
'MU_VERSION_EXTRA' : version_extra,
'MU_DOC_DIR' : join_paths(datadir, 'doc', 'mu'),
})

mu4e_pkg_desc = configure_file(
Expand Down
3 changes: 3 additions & 0 deletions mu4e/mu4e-config.el.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
(defconst mu4e-mu-version "@VERSION@"
"Required mu binary version; mu4e's version must agree with this.")

(defconst mu-version-extra "@MU_VERSION_EXTRA@"
"Suffix to version (in display).")

(defconst mu4e-doc-dir "@MU_DOC_DIR@"
"Mu4e's data-dir.")

Expand Down
5 changes: 3 additions & 2 deletions mu4e/mu4e-main.el
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;;; mu4e-main.el --- The Main interface for mu4e -*- lexical-binding: t -*-

;; Copyright (C) 2011-2023 Dirk-Jan C. Binnema
;; Copyright (C) 2011-2024 Dirk-Jan C. Binnema

;; Author: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
;; Maintainer: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
Expand Down Expand Up @@ -299,7 +299,8 @@ Otherwise, do nothing."
"* "
(propertize "mu4e" 'face 'mu4e-header-key-face)
(propertize " - mu for emacs version " 'face 'mu4e-title-face)
(propertize mu4e-mu-version 'face 'mu4e-header-key-face)
(propertize (concat mu4e-mu-version mu-version-extra)
'face 'mu4e-header-key-face)
"\n\n"
(propertize " Basics\n\n" 'face 'mu4e-title-face)
(mu4e--main-action
Expand Down

0 comments on commit e38c0cf

Please sign in to comment.