Joel Stanley
Sun, 17 Feb 2008 13:41:27 -0800
On Feb 17, 2008 8:31 AM, Seiji Zenitani <[EMAIL PROTECTED]> wrote:
> Unless your patch is too big (<1MB), please post the patch to this > mailing list as an attached file. I'd love to see the code! I've attached a new mac-functions.patch file to this e-mail. Note that it includes the former contents of mac-functions.patch, for things like mac-show-menu-bar, and the spotlight search, etc. Things to note: - mac-toggle-max-window is the interactive entry point for the behavior. - the variable mac-autohide-menubar-on-maximize controls what's done with the menubar when maximized. The last one requires a little bit of explanation. It occurred to me that some users may not want to have to use mac-show/hide-menu-bar to control this. Apple provides SetSystemUIMode() which allows the menubar to be "auto-hidden" meaning that it when the mouse pointer is put to the far top of the screen, the hidden menubar makes itself visible while the mouse pointer is there. The behavior of mac-autohide-menubar-on-maximize is as follows: When mac-autohide-menubar-on-maximize is non-nil (it is 't by default) and there is at least one maximized frame, the menubar is hidden. Maximized frames take up the entire display, including the region where the menubar typically is. When mac-autohide-menubar-on-maximize is nil, the menubar is always shown, even for maximized frames. Maximized frames take up the entire display *except* for the menubar region (the maximized frames still don't have controls or titlebars, etc). I've found it useful to do something like (global-set-key [(meta return)] 'mac-toggle-max-window) in my .emacs. YMMV. Anyhow, I hope that people can get this to work. I'm running Leopard but have attempted to provide compilation paths to make Tiger users happy; please let me know if there are any problems that I can attempt to address. I've been using this new behavior for the last couple of days and have not run into any problems, but I'm new to the emacs code base and Mac development in general, so all constructive criticism is welcomed. In any case, I hope someone out there besides me gets some use out of this. Enjoy! Joel -- "Make sense who may. I switch off." -- Beckett --~--~---------~--~----~------------~-------~--~----~ Carbon Emacs User Group http://groups.google.com/group/carbon-emacs?hl=en -~----------~----~----~----~------~----~------~--~---
mac-functions.patch
Description: Binary data