From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.devel Subject: Re: ns-win.el trivia Date: Thu, 17 Jul 2008 18:45:33 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216320358 28495 80.91.229.12 (17 Jul 2008 18:45:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2008 18:45:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 17 20:46:47 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KJYV4-0007f0-3d for ged-emacs-devel@m.gmane.org; Thu, 17 Jul 2008 20:46:46 +0200 Original-Received: from localhost ([127.0.0.1]:35183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJYUB-0004Aa-Eu for ged-emacs-devel@m.gmane.org; Thu, 17 Jul 2008 14:45:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJYU6-00049N-Gk for emacs-devel@gnu.org; Thu, 17 Jul 2008 14:45:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJYU4-00048c-Ti for emacs-devel@gnu.org; Thu, 17 Jul 2008 14:45:46 -0400 Original-Received: from [199.232.76.173] (port=50485 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJYU4-00048W-M1 for emacs-devel@gnu.org; Thu, 17 Jul 2008 14:45:44 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:39819 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KJYU4-000337-8h for emacs-devel@gnu.org; Thu, 17 Jul 2008 14:45:44 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KJYU0-0005cm-0m for emacs-devel@gnu.org; Thu, 17 Jul 2008 18:45:40 +0000 Original-Received: from NLV-Webproxy01.direcpc.com ([67.142.130.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2008 18:45:40 +0000 Original-Received: from Adrian.B.Robert by NLV-Webproxy01.direcpc.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Jul 2008 18:45:40 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 67.142.130.11 (Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/523 (KHTML, like Gecko, Safari/523.10) OmniWeb/v621.0.99313) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100896 Archived-At: Glenn Morris 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.)