From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: repeatable vs. non-repeatable commands Date: Mon, 26 Jun 2017 15:49:26 +0200 Message-ID: <87vaniuae1.fsf@drachen> References: <8760floqo9.fsf@drachen> <86podtya9v.fsf@zoho.com> <87mv8wk6lu.fsf@drachen> <8660fkrrl4.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498485009 19958 195.159.176.226 (26 Jun 2017 13:50:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Jun 2017 13:50:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 26 15:50:03 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPUOw-0004qK-G3 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jun 2017 15:50:02 +0200 Original-Received: from localhost ([::1]:46807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPUP1-00079J-RC for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jun 2017 09:50:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPUOU-00078o-KS for help-gnu-emacs@gnu.org; Mon, 26 Jun 2017 09:49:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPUOR-0006ld-EO for help-gnu-emacs@gnu.org; Mon, 26 Jun 2017 09:49:34 -0400 Original-Received: from mout.web.de ([217.72.192.78]:59087) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPUOR-0006iT-3n for help-gnu-emacs@gnu.org; Mon, 26 Jun 2017 09:49:31 -0400 Original-Received: from drachen.dragon ([92.74.161.87]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MTh6a-1dGnCC0Wn2-00QVby; Mon, 26 Jun 2017 15:49:28 +0200 In-Reply-To: <8660fkrrl4.fsf@zoho.com> (Emanuel Berg's message of "Sun, 25 Jun 2017 17:53:59 +0200") X-Provags-ID: V03:K0:8V5lOVuLtkzKhGABCLh2H1IdLjxf+mrj13AYLWQlQR/ZE4BJNxJ NkuiAgj4CiUVTHUyt3k3B9J2dgfimemNvOPchIx6Fjuvb2BC2Vlm4yRwLz9TZ8qWShJSlGu XGD32nliEYguD/Fek8UP2bWU0Jt6jO1A3cdMAJqrEwxWnh4WP49y3p7Cn2+dV3tD5Hfsz9P hJZnoqAfv3Kk4VecvSNSg== X-UI-Out-Filterresults: notjunk:1;V01:K0:VjBcjHNV+Ww=:GF/iWvcoq322FPw3+EQSFK PfDfECdncoUrGKtBRDoyECeE5X1Zw1uGZcvBdrWt2kn1gRLCGT5fUJELTmDyIzboEms/OECJw prQ+SWWcJ/p0PevoR8ZIzTsEgPSiRrjFe13N4+XPXaPkfAY4hde0K5NKpOfk6wfgcH1Q+O4OS gEkTLtGwqkQRzxsDrp6oMQvruMsWcZX5bB8xA0YDnt3VT3wtiukwoPSSpT+YIPS5n/JNmtIIO 8IL+jjh/jnNKNaBest9fivCcEYlwtUvW7GwMNrnxrTQU7L+qgEiJFW8x3lSAkiubZlvmcvpNY 8LkcHSaNIbhr55zzzOQQRrgASsqT7U0B3PKQnxv52UfFY8gjEu+oQrq+r4wz2W43UAxN22RtV wU9Y0F2v7P+7zdYkZLOLdYGvUp0Nyk3XNIpDxmF4DHmH3bhUZFeVtchjr/AqH8nfcTTmDMObA 4JKBoOf8w8jKWCFCxdLFmCn4osRIcjckLdI+cvAKQEAfozeU7a9yIdnk9+TS5ZYXwlbqXklIG 3BRD0bA8O3rhKrE/7ra61RoxcZqgcj8PRgdty40dTT95joUyU22AOvtTfv1BNxuDeaCiTR0B7 mfeoHP2kYW38EiHz/AfATpFt/TmS49AvFD0zB5BvpKVKsOWzAyIKgbQqTeqR+1qOBTqWoNfIf TQRePsNCUR+Pv4h2W6p1NMVXkWMZVfQpNFFZ8Us09pYTOLoANFY+08Lw8FFpnTp1ScpVZEoDn UFh3Y/aau7pTgC7TK2NAxfHkv0DUN80cVagB/g1fOuzctDq99Wt4xb3gGZggqE4Yyp7kXkF5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.78 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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 Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113583 Archived-At: Emanuel Berg writes: > Should `C-o d' echo just one "d"? Yes. > How does Emacs know when the keystroke is terminated? Some timeout? No. I implement this with transient maps (see `set-transient-map'). In the simplest case, you can use them to make commands repeatable - see "repeat.el", or the example in https://lists.gnu.org/archive/html/help-gnu-emacs/2017-04/msg00159.html In the general case, what the user conceives as keystroke is terminated when you enter a key (sequence) that can't be found in the transient map - but this is even programmable (via the first optional argument of `set-transient-map'). Michael.