-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support of Emacs suffix #132
Comments
This would address the issue, I think, but you would still have to set the new variable, and I don't currently have the time to make sure this wouldn't cause any breakage and that there isn't a better way that would not require that users set that variable. @@ -111,6 +111,9 @@ (defun with-editor-locate-emacsclient ()
current Emacs instance failed. For more information
please see https://github.com/magit/magit/wiki/Emacsclient."))))
+(defvar with-editor-invocation-suffixes
+ (list "-snapshot" ".emacs-snapshot"))
+
(defun with-editor-locate-emacsclient-1 (path depth)
(let* ((version-lst (cl-subseq (split-string emacs-version "\\.") 0 depth))
(version-reg (concat "^" (string-join version-lst "\\."))))
@@ -128,7 +131,7 @@ (defun with-editor-locate-emacsclient-1 (path depth)
(setq v (string-join (reverse v) "."))
(list v (concat "-" v) (concat ".emacs" v)))
(reverse version-lst))
- (list "" "-snapshot" ".emacs-snapshot")))
+ (cons "" with-editor-invocation-suffixes)))
(lambda (exec)
(ignore-errors
(string-match-p version-reg |
Thanks! I've just compiled the Emacs 30 pre-release and besides a suffix (the only thing I've used) it's possible to add a prefix and even a general modifier. Extracted from the configure help:
So trying to second guess all this and in particular the There's a variable |
New work is arriving at an unsustainable rate right now, so I won't be able to deal with this for the foreseeable future. |
Not a problem at all, I actually forgot about this and noticed it again while doing a clean-up pass on my I submitted an upstream bug on the content of Thanks |
FYI, now covered by upstream Emacs bug #74157. But not as simple as it may seem, so too late for Emacs 30 and to be improved in version 31. |
Hi,
When Emacs is compiled with a suffix (configure option "--program-suffix=-fsf" in my case), with-editor cannot find the matching emacsclient. I work-around the issue with the following code in my init:
FYI, I'm using the suffix to be able to co-install my distribution version of Debian and a manually compiled upstream Debian, for which I use the "-fsf" suffix. In this configuration, with-editor picks the distribution emacsclient instead of the matching one with same suffix.
Here's the debug output FYI:
And by the way, thanks for both Magit and with-editor ;)
The text was updated successfully, but these errors were encountered: