Skip to content

Commit

Permalink
Use mapcan instead of cl-mapcan
Browse files Browse the repository at this point in the history
This was added in Emacs 26.1.
  • Loading branch information
tarsius committed Nov 23, 2024
1 parent 07b6a1a commit 57f20bd
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions lisp/with-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,16 @@ please see https://github.com/magit/magit/wiki/Emacsclient."))))
((bound-and-true-p emacsclient-program-name))
("emacsclient"))
path
(cl-mapcan
(lambda (v) (cl-mapcar (lambda (e) (concat v e)) exec-suffixes))
(nconc (and (boundp 'debian-emacs-flavor)
(list (format ".%s" debian-emacs-flavor)))
(cl-mapcon (lambda (v)
(setq v (string-join (reverse v) "."))
(list v (concat "-" v) (concat ".emacs" v)))
(reverse version-lst))
(cons "" with-editor-emacsclient-program-suffixes)))
(mapcan (lambda (v) (cl-mapcar (lambda (e) (concat v e)) exec-suffixes))
(nconc (and (boundp 'debian-emacs-flavor)
(list (format ".%s" debian-emacs-flavor)))
(cl-mapcon (lambda (v)
(setq v (string-join (reverse v) "."))
(list v
(concat "-" v)
(concat ".emacs" v)))
(reverse version-lst))
(cons "" with-editor-emacsclient-program-suffixes)))
(lambda (exec)
(ignore-errors
(string-match-p version-reg
Expand Down

0 comments on commit 57f20bd

Please # to comment.