The build script modification appears to be the best solution, but would require a lot of time to modify it properly in order to create a custom build that isolates the NSSpellChecker feature.Įdit 4: I have a working version with NSSpellChecker that is the executable of a custom build of Aquamacs24 (omitting almost everything Aquamacs except for the spellchecker), and the emacs-trunk most recent build of Emacs24 (nightly build). It is too early for me to post any type of an answer. I do have a hybrid working, but I'm sure I'll have to do more tweaking as I find more Aquamacs customizations (created by the executable) that need to be dealt with. In short, a hybrid is doable, but a pain in the neck. Alternatively, creating a hybrid is also possible, but comes with its own problems because the Aquamacs executable is hard-coded with specialties such as one-frame-one-buffer-mode when opening a file from Finder.app switch-to-buffer-in-tab when opening a file from Finder.app ns-application-activated that needs to be set to ignore including the version id inside the init.el file to properly quiet the error message easy-menu options that are geared towards Aquamacs for saving options and a few other issues that are readily apparent. Aquamacs.app/Contents/MacOS/Aquamacs) contains the hard-coded magic for NSSpellChecker in conjunction with the Aquamacs modified versions of ns-win.el flyspell.el and ispell.el.Įdit 3: At this point, one option would be to modify the build script for Aquamacs and related files used in the build process in order to build a custom application. The executable of Aquamacs within the application package (i.e. It's looking more and more like NSSpellChecker is hard-coded into the application executable during the build process, in conjunction with the files mentioned above.Įdit 2: Yep, that was the missing piece of the puzzle. I don't think aquamacs-menu.el or osxkeys.el are necessary, because those load after site-start.el. Here is the link to an explanation for building Aquamacs, and looking into the build script is next on my to-do list:Įdit 1: The build scripts have a little more to say about NSSpellChecker, so additional files that need to be looked at include: nsterm.m and nsfns.m. I've grown fond of the pop-up menu with buttons to select the spell-checking options. The spell check function of Aspell reminds me of what life was like back in the late-80's. There is nothing I have found on the internet that remotely describes how to do this. If anyone knows how to configure NSSpellChecker during the build process, that would be great. I've learned how to build Emacs from source using the tarball, and also by using bzr. The functionality is enabled by Aquamacs before its site-start.el is initiated. I'm missing one or more pieces to the puzzle - I've opened all the Aquamacs *.gz files and searched for a few keywords within all of those files, but I haven't found any other files that look like they have something to do with this functionality. I've located the seemingly relevant files - ns-win.el flyspell.el and ispell.el - however, simply replacing those files from Aquamacs to Emacs does not enable the pop-up menu for running the spell-checker that is native to OSX. I would like to incorporate that use / functionality into a bare-bones build of Emacs from source. I'm having trouble reverse-engineering Aquamacs to extract the usage / functionality of NSSpellChecker.
0 Comments
Leave a Reply. |