From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jiri Pejchal Newsgroups: gmane.emacs.help Subject: Re: Insert ; after closing parenthesis when on it Date: Wed, 14 Feb 2007 22:36:07 +0100 Message-ID: <878xf0jubc.fsf@gmail.com> References: <1171479816.170529.163000@a75g2000cwd.googlegroups.com> <1171485386.809853.269080@q2g2000cwa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171488999 6949 80.91.229.12 (14 Feb 2007 21:36:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Feb 2007 21:36:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 14 22:36:32 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HHRnj-00088m-4x for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Feb 2007 22:36:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHRni-0005fZ-Os for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Feb 2007 16:36:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HHRnX-0005fU-AX for help-gnu-emacs@gnu.org; Wed, 14 Feb 2007 16:36:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HHRnU-0005ea-Ud for help-gnu-emacs@gnu.org; Wed, 14 Feb 2007 16:36:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHRnU-0005eX-PL for help-gnu-emacs@gnu.org; Wed, 14 Feb 2007 16:36:16 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HHRnU-0007ij-Bz for help-gnu-emacs@gnu.org; Wed, 14 Feb 2007 16:36:16 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HHRnP-0002Eq-W3 for help-gnu-emacs@gnu.org; Wed, 14 Feb 2007 22:36:12 +0100 Original-Received: from ip-89-102-35-234.karneval.cz ([89.102.35.234]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Feb 2007 22:36:11 +0100 Original-Received: from jiri.pejchal by ip-89-102-35-234.karneval.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Feb 2007 22:36:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip-89-102-35-234.karneval.cz User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:7bbW1Uxhfpzl57DvknSgraNUUig= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:41219 Archived-At: "weber" writes: > I couldn't test that here, but maybe just doing something like this > works ? > > (defun jump-closepar () > "Close parenthesis Jiri's way" > (interactive) > (if (looking-at ")") > (forward-char)) > (c-electric-semi&comma)) It wants an argument: (defun c-electric-semi&comma (arg) "Insert a comma or semicolon. And (c-electric-semi&comma ";") inserts ^E for me. -- Jiri Pejchal