all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: A few simple questions
Date: Mon, 12 May 2003 14:50:22 +0200	[thread overview]
Message-ID: <uvfwgfhwx.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: phfznmba2z.fsf@wangyin.com

Wang Yin <wang-y01@mails.tsinghua.edu.cn> writes:

> good!
> What about change the repeat mechanism of C-c f like C-x z z z z z ... ?

(defvar wy-go-to-char-key ?f)

(defun wy-go-to-char (n char)
  "Move forward to Nth occurence of CHAR.
Typing `wy-go-to-char-key' again will move forwad to the next Nth
occurence of CHAR."
  (interactive "p\ncGo to char: ")
  (search-forward (string char) nil nil n)
  (while (char-equal (read-char)
		     wy-go-to-char-key)
    (search-forward (string char) nil nil n))
  (setq unread-command-events (list last-input-event)))

(define-key global-map `[?\C-c ,wy-go-to-char-key] 'wy-go-to-char)

Type `C-c f a' to move to the next "a". Type `f f f f ...' to move to
the following "a"s.

    Oliver
-- 
23 Floréal an 211 de la Révolution
Liberté, Egalité, Fraternité!

  reply	other threads:[~2003-05-12 12:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-10  5:18 A few simple questions Wang Yin
2003-05-10  6:50 ` Jonas Steverud
2003-05-10  7:00 ` Friedrich Dominicus
2003-05-10 14:03   ` Wang Yin
2003-05-10 14:15     ` Friedrich Dominicus
2003-05-10 14:19     ` Marco Parrone
2003-05-10 14:23       ` Marco Parrone
2003-05-10 14:35       ` Marco Parrone
2003-05-10 14:58       ` Wang Yin
2003-05-10 15:28         ` Marco Parrone
2003-05-11  0:28           ` Wang Yin
2003-05-12 12:50             ` Oliver Scholz [this message]
2003-05-12 12:56               ` Oliver Scholz
2003-05-10 17:39     ` Eli Zaretskii
     [not found]     ` <mailman.5930.1052588693.21513.help-gnu-emacs@gnu.org>
2003-05-11  0:34       ` Wang Yin
2003-05-10  8:59 ` Eli Zaretskii
2003-05-10 14:33 ` Kai Großjohann
2003-05-10 17:07 ` Kai Großjohann
2003-05-11  0:33   ` Wang Yin
2003-05-12 19:03     ` Kin Cho

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=uvfwgfhwx.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.de \
    /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.