From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sune" Newsgroups: gmane.emacs.help Subject: A true challenge for Emac and Elisp hackers - at Least I think so Date: 12 Oct 2005 04:48:25 -0700 Organization: http://groups.google.com Message-ID: <1129117705.959356.9950@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1129119277 32275 80.91.229.2 (12 Oct 2005 12:14:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2005 12:14:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 12 14:14:36 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EPfTg-0002Af-Vg for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2005 14:13:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPfTg-0007WP-A0 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2005 08:13:00 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g49g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 81 Original-NNTP-Posting-Host: 212.247.111.2 Original-X-Trace: posting.google.com 1129117711 23959 127.0.0.1 (12 Oct 2005 11:48:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 12 Oct 2005 11:48:31 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050909 Fedora/1.0.6-1.2.fc4 Firefox/1.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g49g2000cwa.googlegroups.com; posting-host=212.247.111.2; posting-account=JUuO3g0AAABZ-LSqspSVSH7OrgKv3N0c Original-Xref: shelby.stanford.edu comp.emacs:90310 gnu.emacs.help:134583 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30163 Archived-At: Hi all! After having had dozens of null pointer exceptions thrown at me, I decided to give up on the much hyped Eclipse CDT 3.0 and switch to Emacs. Emacs seems to be configurable down to its atoms and I don't have to wait for the screen to update while I type (which is eh... nice). Basically, Emacs makes me more productive. After starting to write some C-programs I quickly realized what I wanted Emacs to do for me and added Elisp code into .emacs until I was closed to being satisfied. This is how far I've come: Editor - GNU coding guidelines enforced - keyboard shortcuts to almost anything including features listed below - nice functions like untabify-and-reindent, kill buffer of choice, keyboard macros etc etc CVS - Integrated in menu system to a satisfactory level + keyboard shortcuts Make - Completely intergrated in menu system + keyboard shortcuts + integrated with error look up in files etc etc But now the shit hits the fan! I want the following, but I have no clue as to how I should even start: The whole idea is this: I want to add debug trace with as little effort as possible into my source. 1) What is listed below is valid for all .c files. Not .h files! 2) I want RET, the enter key, to trig the following behaviour: * If I hit RET with any shift-key being pressed simultaneously, RET must behave as any normal RET would (basically a normal linefeed with possible auto-indentation). This may seem backward but I want almost every line in my sorce to be traceable. * If I hit RET only, and the following applies: - It is preceeded by a ';' (semicolon) AND the word 'return' is not part of the current line or: - It is preceeded by a '{' (curly bracket) RET adds DBG after the ';' or the '{' with a space in between like so: ; DBG { DBG respectively. After that (the same key stroke) , RET behaves like a normal RET would (basically a normal linefeed with possible auto-indentation). I have to admit that this is so far out there (at least for me) that I would need more or less a ready-to-go implementation just to paste into .emacs. Do you know a place where something similar has been done which I can steal and adapt, or are you interested in implementing it? (A place on my tomb stone is reserved for anyone that succeeds in doing this) Otherwise I will go back to crap Eclipse, wait for it to stabilize and implement a plugin - that stuff I know. I just don't want to give up on Emacs!! Truckloads of thanks /Sune