Not working on MacOS #13
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tec/screenshot.el#13
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I know that screenshot depends on x-export-frames, which I'm not sure if works in MacOS, but since there is a MacOS icon on the readme, I expect so. When running on MacOS I get the following:
screenshot--process: Symbol’s function definition is void: x-export-frames
Your Emacs 27+ needs to be built with Cairo, can you check whether this is the case?
Emacs built on macOS doesn't use Cairo/harfbuzz by default, it uses coretext and macOS apis instead:
see: https://github.com/d12frosted/homebrew-emacs-plus/pull/371, then https://github.com/d12frosted/homebrew-emacs-plus/pull/373. You can still build it with cairo/harfbuzz with the patches done in the PR, its just that none of the 3 major ports (emacs-plus, emacs-mac, and the "official" ns port) have an easy way to compile with harfbuzz/cairo
Is it possible to support macOS without harfbuzz/cairo as well?
Basically, I just need
(x-export-frames frame 'png)
to work with a posframe. If that can work on Mac, screenshot can work on Mac.I think that can be specified in the readme or at least somewhere in this repo, since as @shaunsingh mentioned Emacs on macOS doesn't use Cairo by default.
I also have an issue when calling any
screenshot
command on macOS Monterey, but a bit different:I get a void function error as well. Additionally, I must run
posframe-delete-all
to remove the posframe that displays upon execution ofscreenshot
.@DaniruKun @bryce-carson a bunch of changes have been made recently, if you could re-test and see if anything has changed that would be good.
Couldn't use on macOS 13.1, didn't do any config, just loaded screenshot.el then M-x screenshot
GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin22.2.0, NS appkit-2299.30
Version 13.1 (Build 22C65)) of 2023-01-01
brew install d12frosted/emacs-plus/emacs-plus@30 --with-dbus --with-debug --with-mailutils --with-no-frame-refocus --with-xwidgets