branch: elpa/with-editor
commit aaaeb98c022d0cd91a582f25d299ab4d0607596a
Author: Philipp Stephani <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
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))