From: "rgb" <rbielaws@i1.net>
Subject: Re: left brackets insert both
Date: 25 Mar 2005 12:05:27 -0800 [thread overview]
Message-ID: <1111781127.783436.91790@z14g2000cwz.googlegroups.com> (raw)
In-Reply-To: <1111780392.575165.138760@l41g2000cwc.googlegroups.com>
> I'm reminded that I've long thought I should make this change:
>
> (if (and (equal (preceding-char) last-command-char)
> (= cnt 1))
>
> I just never got around to it.
> Vary rarely does it make any difference.
And now I remember why I didn't make it earlier. It's
really a bit more compilcated than that. But not much.
(defmacro my-insert-if-double (new-txt)
"If last key same as this key, replace both with new-txt."
`(lambda (cnt raw)
(interactive "p\nP")
(if (and (equal (preceding-char) last-command-char)
(not raw))
(progn
(backward-delete-char 1)
(insert ,new-txt))
(self-insert-command cnt))))
next prev parent reply other threads:[~2005-03-25 20:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-25 15:37 left brackets insert both Shug Boabby
2005-03-25 15:54 ` David Hansen
2005-03-25 16:45 ` Shug Boabby
2005-03-25 17:49 ` rgb
2005-03-25 18:23 ` Shug Boabby
2005-03-25 19:53 ` rgb
2005-03-25 20:05 ` rgb [this message]
2005-03-25 20:19 ` Shug Boabby
2005-03-25 23:00 ` rgb
2005-03-26 12:48 ` David Hansen
2005-03-25 15:54 ` rgb
2005-03-25 16:39 ` Peter Lee
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=1111781127.783436.91790@z14g2000cwz.googlegroups.com \
--to=rbielaws@i1.net \
/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.