From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Anderson Newsgroups: gmane.emacs.help Subject: Re: Abbrev , as ,_ Date: Wed, 29 Oct 2003 23:27:48 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1067488068.6898.8.camel@Hades> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1067488225 19348 80.91.224.253 (30 Oct 2003 04:30:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2003 04:30:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 30 05:30:22 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AF4Ry-0002eM-00 for ; Thu, 30 Oct 2003 05:30:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AF4Ri-0002vD-S9 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Oct 2003 23:30:06 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AF4Q3-0002Om-MH for help-gnu-emacs@gnu.org; Wed, 29 Oct 2003 23:28:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AF4PW-0002C5-8X for help-gnu-emacs@gnu.org; Wed, 29 Oct 2003 23:28:22 -0500 Original-Received: from [24.59.76.83] (helo=Hades) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AF4PV-0002BS-Oz for help-gnu-emacs@gnu.org; Wed, 29 Oct 2003 23:27:49 -0500 Original-Received: by Hades (Postfix, from userid 501) id 632DA337; Wed, 29 Oct 2003 23:27:48 -0500 (EST) Original-To: Jesper Harder In-Reply-To: X-Mailer: Ximian Evolution 1.4.4-8mdk X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13636 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13636 Out of curiosity, wouldn't that mean that typing in: foo = "1,2,3,4,5"; Would create: foo = "1, 2, 3, 4, 5"; And cause problems? Granted many times commas and spaces go hand in hand, but in scenarios like a CSV list it would be horribly wrong. -Dan On Wed, 2003-10-29 at 20:27, Jesper Harder wrote: > Jiri Pejchal writes: > > > When I code in Java or C++ I always type space after ",". > > For example foo(a, f) > > ^ > > | > > > > Can Emacs put the space there automatically? > > I tried to make an abbrev for it, but it didn't work for me. > > You could do something like this: > > (define-key c-mode-map "," (lambda () > (interactive) > (insert ", "))) > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs