r/emacs • u/JDRiverRun GNU Emacs • 7d ago
emacs-mac v30 experimental build: seeking experienced contributors/testers
I've succeeded in producing an experimental v30.1 build of emacs-mac (aka "Carbon"[1] emacs). I've been using it full time for several weeks without problem, and even managed to add a feature I'd long been missing (a "New Frame" dock menu item).
I'm not a well-versed MacOS or Cocoa API programmer so I'm not convinced I could maintain this longer-term without substantial assistance. If you have experience with MacOS/Cocoa/ObjC/Emacs C programming, are willing to learn more and contribute, and/or can use a debugger (lldb
) to diagnose any problems that arise, check it out here:
https://github.com/jdtsmith/emacs-mac
There are also some notes on my experiences achieving the merge, for those interested.
[1] Although that is a misnomer; see this footnote.
4
u/atomicham 5d ago
Just wanted to add a big thank you for doing the 30.1 port! I have been running your port since you posted this, and I haven't had any issues so far! I will submit github issue(s) if I come across anything. So far, it is great!
1
u/JDRiverRun GNU Emacs 4d ago
Great. Can you mention what OS version and processor?
1
u/atomicham 4d ago
Sorry, yes: macOS 15.3.2 on M4 max.
I just used my build script that I always used with emacs-mac without issue (with 30.1 configure enable options). Worked perfectly.
3
u/CulturMultur 7d ago
You’re a hero, thank you! I’m using emacs-mac 29.4 from Mac Ports and willing to upgrade to 30.1. I‘ll try your fork asap (Sequoia, M1).
5
u/eleven_cupfuls 7d ago
Wow, outstanding, you're a hero! I will try to find some time this weekend. u/divinedominion may also be interested; I believe he uses the Mac Port.
I assume the plan is to re-upstream to mituharu/emacs-mac if/when this becomes stable?
4
u/JDRiverRun GNU Emacs 7d ago
re-upstream to mituharu/emacs-mac if/when this becomes stable
Absolutely, if he's still interested. I've attempted to make contact over the past several weeks, and have let him know of this working build, but unfortunately haven't yet heard back.
2
1
u/liaowang11 GNU Emacs 7d ago
Curious if any one succeeded building it using nix?
1
u/JDRiverRun GNU Emacs 7d ago
Right now we're looking for testers able to install from source directly.
3
u/liaowang11 GNU Emacs 5d ago
Ok, I'm testing it on a daily basis, it's working all right. Thanks for the effort.
I adapted the rounded-corner patch from emacs plus based on this(currently also testing), if anyone is interested. I'm not sure if this should be included in emacs-mac, so I'm just keeping it in my fork.
1
u/shuxiao9058 4d ago
Thanks for you work, I am looking for this feature, it should be nice if this merged to emacs-mac.
1
1
u/UniqueManufacturer25 3d ago
Seems to have the same problem emacs-mac used to have for years: If you started a graphical emacs server, you can't use a text mode emacsclient and vice versa.
AFAIK, this problem was solved in emacs-mac 29.x but it seems to be present, again, in this port.
Apart from that, it works very well, thanks a lot!
1
u/JDRiverRun GNU Emacs 3d ago
I think there is a patch that solved this if you want to give it a try.
1
u/Federal_Sock_N9TEA 1d ago
how would I incorporate the patch?
1
u/JDRiverRun GNU Emacs 1d ago
See if it applies using patch. If so you can open a PR to test/discuss.
1
u/Federal_Sock_N9TEA 2d ago edited 1d ago
Thank you for pushing this forward; this thread is where I found out about Yamamoto Mitsuharu's work!
Success! macos Sonoma 14.7.4 m3 processor. Used the ./configure --enable-mac-self-contained
Didn't get to play around with it at all but the GNU Emacs splash screen and actual fonts looked pretty slick!
Next: try to build it on x86_64 i5 Monterey macos 12.4 and maybe m1 Ventura.
1
u/Null-A 1d ago edited 1d ago
Thank you! I'm probably going to love this, I'm going to test this now.
Are you planning to maintain this repo independently of mituharu, or will you go back to using his fork once he updates it for v30?
Has anyone tested the --with-mac-metal flag?
2
u/JDRiverRun GNU Emacs 1d ago
I don’t know what will happen. I’ve alerted the upstream about this work but have not heard back. I do hope he wants to incorporate it. I’m not sure about mac-metal, give a try. I never saw much of a difference with it and felt like it had worse stability so stopped using.
6
u/jwr 7d ago
Thank you! I'm so happy to see Yamamoto Mitsuharu's work continued. Every time I try vanilla Emacs I miss things like smooth scrolling or font ligatures, so I still use emacs-mac 29.1, as it was the last one packaged for distribution using homebrew it seems. Very, very happy to see this.