[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ns-win.el trivia
From: |
Adrian Robert |
Subject: |
Re: ns-win.el trivia |
Date: |
Thu, 17 Jul 2008 18:45:33 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Glenn Morris <rgm <at> gnu.org> writes:
> Some trivial ns-win.el comments:
>
> What's the point of ns-carbon-compat being a separate file, when it's
> only 5 aliases that ns-win.el always loads?
I was just trying to make it easier to maintain, quickly see what
it consisted of, etc.. I also thought it might get more
involved, as more people wanted more Carbon port functionality in
Emacs.app. Maybe wait for some user feedback and see if it grows first?
> ns-print-buffer
"Interactive front-end to `print-buffer': asks for user confirmation first."
It's used as a binding to cmd (super)-p, to prevent accidental
printings, to be more consistent with other apps on the platform,
etc.. Normal print commands (print-buffer, etc.) still act
without confirmation as in other versions of emacs.
> ns-toggle-toolbar
"Switches the tool bar on and off in frame FRAME.
If FRAME is nil, the change applies to the selected frame."
Mainly because I couldn't figure out a way to do this reliably
from C code at the time. It would be better to use C code though
-- if someone knows how please implement the change.
[EmacsView -toggleToolbar:]
> ns-next-frame, ns-prev-frame
"Switch to next visible frame."
These are just there for keybindings: cmd (super)-left,right.
These don't conflict with any bindings in core emacs, and are
compatible with some other platform apps (e.g. Terminal) that
manage multiple windows. They are 1-line implementations, but I
couldn't figure out how to get them into the keybindings without
defining a function. (Less ugly than a lambda.)