From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: What a modern collaboration toolkit looks like Date: Tue, 01 Jan 2008 20:17:36 -0800 Message-ID: <200801020417.m024HaJw006930@oogie-boogie.ics.uci.edu> References: <20071230122217.3CA84830B9A@snark.thyrsus.com> <20071231130712.GB8641@thyrsus.com> <20071231214108.GD26639@thyrsus.com> <200801010027.m010R74P025484@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199247525 24882 80.91.229.12 (2 Jan 2008 04:18:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2008 04:18:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 02 05:19:05 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 1J9v4J-0006AR-6U for ged-emacs-devel@m.gmane.org; Wed, 02 Jan 2008 05:19:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9v3w-0001Ei-P3 for ged-emacs-devel@m.gmane.org; Tue, 01 Jan 2008 23:18:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J9v3r-0001AO-UE for emacs-devel@gnu.org; Tue, 01 Jan 2008 23:18:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J9v3q-00017l-Ky for emacs-devel@gnu.org; Tue, 01 Jan 2008 23:18:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9v3q-00017V-HI for emacs-devel@gnu.org; Tue, 01 Jan 2008 23:18:34 -0500 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J9v3m-0005K2-D9; Tue, 01 Jan 2008 23:18:30 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id m024HaJw006930; Tue, 1 Jan 2008 20:17:36 -0800 (PST) In-Reply-To: (Eli Zaretskii's message of "Tue, 01 Jan 2008 22:44:47 +0200") Original-Lines: 72 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:85850 Archived-At: Eli Zaretskii writes: > > From: Dan Nicolaescu > > Cc: emacs-devel@gnu.org > > Date: Mon, 31 Dec 2007 16:27:07 -0800 > > > > > All I needed to do is introduce > > > them to some optional features, such as Speedbar, ebrowse, and gdb-ui, > > > and craft a simple .emacs to bind the various Fn keys to > > > compile/run/debug commands they were used to have. After that, I > > > never again heard anyone of them laughing at "stagnant backwater" that > > > is Emacs. > > > > Care to post an example of such .emacs? > > Maybe it can be used as a skeleton for a package for such users, or > > maybe we can change some defaults to match such users' expectations. > > There's nothing too fancy about it; most of it goes like this: Thanks. > (defun ez-clcheckout () > "Checkout from ClearCase the file visited by current buffer." > (interactive) > (shell-command (format "cleartool co %s" buffer-file-name)) > (revert-buffer nil t)) > (global-set-key (kbd "") 'ez-clcheckout) > (defun ez-clcheckin () > "Checkin to ClearCase the file visited by current buffer." > (interactive) > (shell-command > (format "cleartool ci %s" buffer-file-name)) > (revert-buffer nil t)) > (global-set-key (kbd "") 'ez-clcheckin) Maybe this should use vc-clearcase (if such a thing exists). Are the f9 and C-f9 the usual keys for this type of functionality in one some platforms? Would be useful for us to add some default extra bindings to the functions keys for the VC functions? > (defun ez-maketarg () > "Build the project in current buffer's directory." > (interactive) > (save-buffer) > (if (eq system-type 'windows-nt) > (compile compile-command) > (compile "gmake -k DEBUG"))) > > (global-set-key (kbd "") 'ez-maketarg) > (add-hook 'c-mode-common-hook > (lambda () > (unless (or (file-exists-p "makefile") > (file-exists-p "Makefile")) > (let* ((dsp-dir (file-name-directory buffer-file-name)) > (dsp-file (downcase (file-name-nondirectory > (directory-file-name dsp-dir))))) > (set (make-local-variable 'compile-command) > (concat "devenv.com " > (convert-standard-filename dsp-dir) > dsp-file > ".vcproj debug /rebuild")))))) I always wished we had a nice one key binding to a "smart" version of M-x compile... > (global-set-key (kbd "") 'next-error) We already use f4, so this can't be bound by default :-(