From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 27 Aug 2011 20:31:49 +0200 Message-ID: From: david jeannot To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] plan9port: cocoa programmer needed Topicbox-Message-UUID: 163ee040-ead7-11e9-9d60-3106f5b1d025 Does anyone acquainted with Acme's code have a little time to add support for cmd+z (undo), and to post the resulting binary (compatible OS X Lion)? According to my quick tests on Linux, the following seems to work: /usr/local/plan9/src/cmd/acme/text.c:754 case Kcmd+'c': /* %C: copy */ typecommit(t); cut(t, t, nil, TRUE, FALSE, nil, 0); return; + case Kcmd+'z': /* %Z: undo */ + typecommit(t); + undo(t, nil, nil, TRUE, 0, nil, 0); + return; (Lion is the only OS X version I have, and apparently, all that I compile on it based on libthread doesn't work.) Devdraw is ready to send cmd+z (undo) when a right swipe follows a left swipe (and vice versa), if the fingers remained on the tactile device in between.