From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vasilij Schneidermann Newsgroups: gmane.emacs.bugs Subject: bug#21360: 24.5; [PATCH] Implement soft-drop Date: Thu, 27 Aug 2015 09:52:50 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=f46d043be1dc01e0f7051e464167 X-Trace: ger.gmane.org 1440662000 17086 80.91.229.3 (27 Aug 2015 07:53:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Aug 2015 07:53:20 +0000 (UTC) To: 21360@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 27 09:53:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUrzh-0004pD-Kw for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Aug 2015 09:53:09 +0200 Original-Received: from localhost ([::1]:59576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUrzh-0004Dy-53 for geb-bug-gnu-emacs@m.gmane.org; Thu, 27 Aug 2015 03:53:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUrzc-0004DU-GK for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 03:53:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUrza-0004fh-Mp for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 03:53:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUrza-0004fd-JH for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 03:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZUrza-000319-Fu for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 03:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vasilij Schneidermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Aug 2015 07:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21360 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144066198011588 (code B ref -1); Thu, 27 Aug 2015 07:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2015 07:53:00 +0000 Original-Received: from localhost ([127.0.0.1]:39602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUrzX-00030q-9L for submit@debbugs.gnu.org; Thu, 27 Aug 2015 03:52:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59624) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUrzV-00030i-1i for submit@debbugs.gnu.org; Thu, 27 Aug 2015 03:52:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUrzT-0004dn-7f for submit@debbugs.gnu.org; Thu, 27 Aug 2015 03:52:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUrzT-0004dj-4S for submit@debbugs.gnu.org; Thu, 27 Aug 2015 03:52:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUrzR-0004Bh-BT for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 03:52:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUrzP-0004ct-OZ for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 03:52:53 -0400 Original-Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:37266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUrzP-0004cj-Cz for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 03:52:51 -0400 Original-Received: by widdq5 with SMTP id dq5so36264425wid.0 for ; Thu, 27 Aug 2015 00:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=W6OGGXkVGs27gteIvLZPaKHqG4/8eBEhRZDJEQEjWnc=; b=LNhdjvYXZPQkQE9n6LyuA7mkUwfDY9RJ8Wg0WP8rgWqVILbt3IEf7UtKsJ8jk90/X/ cp1VnZ/wByvNTjSwTrZkUM5MUgw0SL0lNci/0f7jbShsv1WEjp36mXQzmeIZBj2iTBba yk1Sy1wpp2w1aSaw2tMJbBY+l7TkHlO938O1bQoh3Awk7wwfYgKy6mG5nrq2nKDwmPhH 0p12j23gxM6puqror+1Ne7xbZ99Xywr76rCTKn5E65SMKlD8sBENUIS2f1EmvZlWpkBC sfeWEe2S+flNv/VmELAXrBaHiXJ8QstcVxSMx7rbKh1/CE2+GuS/AO2JSAXPufXMUKwL nlGw== X-Received: by 10.180.24.3 with SMTP id q3mr9194906wif.24.1440661970729; Thu, 27 Aug 2015 00:52:50 -0700 (PDT) Original-Received: by 10.28.182.136 with HTTP; Thu, 27 Aug 2015 00:52:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105860 Archived-At: --f46d043be1dc01e0f7051e464167 Content-Type: multipart/alternative; boundary=f46d043be1dc01e0f3051e464165 --f46d043be1dc01e0f3051e464165 Content-Type: text/plain; charset=UTF-8 Nearly ever variant of Tetris I've played has a soft-drop feature commonly bound to for moving a piece down faster than mandated by the current game speed. M-x tetris however has CCW rotation bound to this key which is rather unusual. The attached patch implements the described feature and binds it to to conform to official Tetris guidelines. In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2) of 2015-04-20 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.11702000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 70970 7191) (symbols 48 17559 0) (miscs 40 35 138) (strings 32 9047 4314) (string-bytes 1 248482) (vectors 16 8909) (vector-slots 8 383172 18273) (floats 8 63 83) (intervals 56 177 0) (buffers 960 11) (heap 1024 24912 937)) --f46d043be1dc01e0f3051e464165 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Nearly ever variant of Tetris I've played has a so= ft-drop feature
commonly bound to <down> for moving a piece down f= aster than mandated by
the current game speed.=C2=A0 M-x tetris however = has CCW rotation bound to
this key which is rather unusual.

The a= ttached patch implements the described feature and binds it to
<down&= gt; to conform to official Tetris guidelines.



In GNU Emacs 2= 4.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2)
=C2=A0of 2015-04-2= 0 on bitzer.hoetzel.info
Wind= owing system distributor `The X.Org Foundation', version 11.0.11702000<= br>System Description: Arch Linux

Configured using:
=C2=A0`config= ure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib
=C2=A0--= localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft
=C2=A0'CFLAG= S=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-strong
= =C2=A0--param=3Dssp-buffer-size=3D4' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2=C2=A0LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro'

Im= portant settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-co= ding-system: utf-8-unix

Major mode: Lisp Interaction

Minor mo= des in effect:
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-mode: t<= br>=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar= -mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode= : t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 au= to-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-com= pression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mod= e: t

Recent messages:
For information about GNU Emacs and the GNU= system, type C-h C-a.

Load-path shadows:
None found.

Feat= ures:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc8= 22 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231=
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
= mm-util help-fns mail-prsvr mail-utils time-date tooltip electric
uniqui= fy ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar
dnd f= ontset image regexp-opt fringe tabulated-list newcomment lisp-mode
prog-= mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse ji= t-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lan= g misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew = greek romanian slovak czech european ethiopic indian
cyrillic chinese ca= se-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer nadvice lo= addefs button faces cus-face macroexp files
text-properties overlay sha1= md5 base64 format env code-pages mule
custom widget hashtable-print-rea= dable backquote make-network-process
dbusbind gfilenotify dynamic-settin= g system-font-setting
font-render-setting move-toolbar gtk x-toolkit x m= ulti-tty emacs)

Memory information:
((conses 16 70970 7191)
= =C2=A0(symbols 48 17559 0)
=C2=A0(miscs 40 35 138)
=C2=A0(strings 32 = 9047 4314)
=C2=A0(string-bytes 1 248482)
=C2=A0(vectors 16 8909)
= =C2=A0(vector-slots 8 383172 18273)
=C2=A0(floats 8 63 83)
=C2=A0(int= ervals 56 177 0)
=C2=A0(buffers 960 11)
=C2=A0(heap 1024 24912 937))<= br>
--f46d043be1dc01e0f3051e464165-- --f46d043be1dc01e0f7051e464167 Content-Type: text/x-diff; charset=US-ASCII; name="tetris.patch" Content-Disposition: attachment; filename="tetris.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_idtwxso50 ZGlmZiAtLWdpdCBhL2xpc3AvcGxheS90ZXRyaXMuZWwgYi9saXNwL3BsYXkvdGV0cmlzLmVsCmlu ZGV4IDU4NmQxZDUuLjBmM2I3NTggMTAwNjQ0Ci0tLSBhL2xpc3AvcGxheS90ZXRyaXMuZWwKKysr IGIvbGlzcC9wbGF5L3RldHJpcy5lbApAQCAtMjY1LDcgKzI2NSw3IEBAIGVhY2ggb25lIG9mIGl0 cyBmb3VyIGJsb2Nrcy4iKQogICAgIChkZWZpbmUta2V5IG1hcCBbbGVmdF0JJ3RldHJpcy1tb3Zl LWxlZnQpCiAgICAgKGRlZmluZS1rZXkgbWFwIFtyaWdodF0JJ3RldHJpcy1tb3ZlLXJpZ2h0KQog ICAgIChkZWZpbmUta2V5IG1hcCBbdXBdCSd0ZXRyaXMtcm90YXRlLXByZXYpCi0gICAgKGRlZmlu ZS1rZXkgbWFwIFtkb3duXQkndGV0cmlzLXJvdGF0ZS1uZXh0KQorICAgIChkZWZpbmUta2V5IG1h cCBbZG93bl0JJ3RldHJpcy1tb3ZlLWRvd24pCiAgICAgbWFwKSkKIAogKGRlZnZhciB0ZXRyaXMt bnVsbC1tYXAKQEAgLTUyNCw2ICs1MjQsMTYgQEAgRHJvcHMgdGhlIHNoYXBlIG9uZSBzcXVhcmUs IHRlc3RpbmcgZm9yIGNvbGxpc2lvbi4iCiAJKHNldHEgdGV0cmlzLXBvcy14ICgxLSB0ZXRyaXMt cG9zLXgpKSkKICAgICAodGV0cmlzLWRyYXctc2hhcGUpKSkKIAorKGRlZnVuIHRldHJpcy1tb3Zl LWRvd24gKCkKKyAgIk1vdmUgdGhlIHNoYXBlIG9uZSBzcXVhcmUgdG8gdGhlIGJvdHRvbS4iCisg IChpbnRlcmFjdGl2ZSkKKyAgKHVubGVzcyB0ZXRyaXMtcGF1c2VkCisgICAgKHRldHJpcy1lcmFz ZS1zaGFwZSkKKyAgICAoc2V0cSB0ZXRyaXMtcG9zLXkgKDErIHRldHJpcy1wb3MteSkpCisgICAg KGlmICh0ZXRyaXMtdGVzdC1zaGFwZSkKKwkoc2V0cSB0ZXRyaXMtcG9zLXkgKDEtIHRldHJpcy1w b3MteSkpKQorICAgICh0ZXRyaXMtZHJhdy1zaGFwZSkpKQorCiAoZGVmdW4gdGV0cmlzLXJvdGF0 ZS1wcmV2ICgpCiAgICJSb3RhdGUgdGhlIHNoYXBlIGNsb2Nrd2lzZS4iCiAgIChpbnRlcmFjdGl2 ZSkK --f46d043be1dc01e0f7051e464167--