emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/with-editor aaaeb98 022/140: prefer debianized binary name


From: Jonas Bernoulli
Subject: [nongnu] elpa/with-editor aaaeb98 022/140: prefer debianized binary name, if available
Date: Fri, 6 Aug 2021 12:51:12 -0400 (EDT)

branch: elpa/with-editor
commit aaaeb98c022d0cd91a582f25d299ab4d0607596a
Author: Philipp Stephani <phst@google.com>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    prefer debianized binary name, if available
    
    On debianized Emacsen, emacsclient is installed as
    /usr/bin/emacsclient.FLAVOR.  Prefer that file name if possible, as it’s
    likely to be the most accurate.
---
 with-editor.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/with-editor.el b/with-editor.el
index 467fb63..546c119 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -125,7 +125,9 @@ please see 
https://github.com/magit/magit/wiki/Emacsclient.";))
          "emacsclient" path
          (cl-mapcan
           (lambda (v) (cl-mapcar (lambda (e) (concat v e)) exec-suffixes))
-          (nconc (cl-mapcon (lambda (v)
+          (nconc (and (boundp 'debian-emacs-flavor)
+                      (list (format ".%s" debian-emacs-flavor)))
+                 (cl-mapcon (lambda (v)
                               (setq v (mapconcat #'identity (reverse v) "."))
                               (list v (concat "-" v) (concat ".emacs" v)))
                             (reverse version-lst))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]