all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jiri Pejchal <jiri.pejchal@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Insert ; after closing parenthesis when on it
Date: Wed, 14 Feb 2007 22:36:07 +0100	[thread overview]
Message-ID: <878xf0jubc.fsf@gmail.com> (raw)
In-Reply-To: 1171485386.809853.269080@q2g2000cwa.googlegroups.com

"weber" <hugows@gmail.com> 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

  reply	other threads:[~2007-02-14 21:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4516.1171478780.2155.help-gnu-emacs@gnu.org>
2007-02-14 19:03 ` Insert ; after closing parenthesis when on it weber
2007-02-14 20:09   ` Jiri Pejchal
2007-02-14 20:41     ` Matthew Flaschen
2007-02-15  2:36     ` Herbert Euler
2007-02-15  2:40       ` Herbert Euler
     [not found]   ` <mailman.4523.1171483812.2155.help-gnu-emacs@gnu.org>
2007-02-14 20:36     ` weber
2007-02-14 21:36       ` Jiri Pejchal [this message]
     [not found]       ` <mailman.4529.1171488981.2155.help-gnu-emacs@gnu.org>
2007-02-16  7:34         ` Markus Triska
2007-02-16 18:32           ` Jiri Pejchal
2007-02-14 19:08 ` weber
2007-02-14 18:44 Jiri Pejchal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878xf0jubc.fsf@gmail.com \
    --to=jiri.pejchal@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.