From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuta Yamada Newsgroups: gmane.emacs.devel Subject: Re: mykie.el Date: Mon, 06 Jan 2014 00:31:23 -0500 Message-ID: <87lhytfzh0.fsf@gmail.com> References: <87bnzshlo5.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1389019986 27998 80.91.229.3 (6 Jan 2014 14:53:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jan 2014 14:53:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 06 15:53:11 2014 Return-path: Envelope-to: ged-emacs-devel@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 1W0BYF-0002QI-1B for ged-emacs-devel@m.gmane.org; Mon, 06 Jan 2014 15:53:11 +0100 Original-Received: from localhost ([::1]:35642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0BYE-0006b2-IC for ged-emacs-devel@m.gmane.org; Mon, 06 Jan 2014 09:53:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W02n0-0000hY-0B for emacs-devel@gnu.org; Mon, 06 Jan 2014 00:31:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W02mr-0002BD-Je for emacs-devel@gnu.org; Mon, 06 Jan 2014 00:31:49 -0500 Original-Received: from mail-ig0-x236.google.com ([2607:f8b0:4001:c05::236]:62149) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W02mr-00029Y-EB for emacs-devel@gnu.org; Mon, 06 Jan 2014 00:31:41 -0500 Original-Received: by mail-ig0-f182.google.com with SMTP id c10so6351638igq.3 for ; Sun, 05 Jan 2014 21:31:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=pjrlHgcr5F4qvw9oFc+ylmjGyMJ9GfzrEVGf8yQ2KTA=; b=lN+jli+Iqeeii1zPgV2bZetB5NcZbJGPLAMhD1olXZDbiLUGc8eNkMcsoaa/oA2fz0 1yEDFzKacrF2CW8H7IpKkW4lH56IS9coQ9FTJ5tkA13I0l8mDRPJspq7qpmfqaAuTSiw gazXMrlgubYN1BKjqb9rVaDisiXbAhtH3MVG460kZuTVaLBsph/gYcvZpLC/PY6XRFkD XJSAnTE1GcS+t8vZaQ9Dyn06tpwUPaPR2D58WWyjK+E0Sy+esvkoXbukiLsZ4sRXA/Rw p1EIUhkKv1jLXUdJu/F/kCIvM0RTsix+8BiUPUt7kBozFjiZuUGHTnTM6YHjbIkPtGzt 9gYQ== X-Received: by 10.50.227.139 with SMTP id sa11mr16793733igc.46.1388986300675; Sun, 05 Jan 2014 21:31:40 -0800 (PST) Original-Received: from ck (CPE7cb21bcc146d-CM7cb21bcc146a.cpe.net.cable.rogers.com. [99.231.90.84]) by mx.google.com with ESMTPSA id w4sm13917444igb.5.2014.01.05.21.31.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 05 Jan 2014 21:31:40 -0800 (PST) In-Reply-To: <87bnzshlo5.fsf@flea.lifelogs.com> (Ted Zlatanov's message of "Fri, 03 Jan 2014 15:09:46 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::236 X-Mailman-Approved-At: Mon, 06 Jan 2014 09:53:07 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:167463 Archived-At: Hello, mykie.el was updated recently to v0.1.1. Let's me introduce little bit to advance discussion. New version mykie can change order by each keybinds like this: (setq mykie:use-lazy-order t) ; <- this is requirement (mykie:set-keys nil ; <- nil means registering global-map "C-0" :default '(message "hi") :C-u*2 '(message "howdy") :C-u '(message "hello") :C-u*3 '(message "hey") ; <- you can't see "C-1" :default '(message "hi") :C-u*3 '(message "howdy") :C-u '(message "hello") :C-u*2 '(message "hey")) ; <- you can't see As you can see above example is reverse part of :C-u*2 and :C-u*3. This example is prior above :keyword and function pair without :default when you set t to `mykie:use-lazy-order'. So if you do this example, you can't execute C-0's :C-u*3 function and C-1's :C-u*2 function. Since mykie will execute :C-u's function.(:C-u*2 and :C-u*3 satisfy :C-u's condition too) This function can control order without conditional. I don't know how many people like this future, but I think it's easy to understand the function's structure. Yuta P.S. new version is added :err, :C-u&err, :region&err that activate function when current state have flymake or flycheck error too.