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: Thu, 09 Jan 2014 13:43:43 -0500 (EST) Message-ID: <20140109.134343.1089601771584496249.cokesboy@gmail.com> References: <87bnzl374d.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389293044 6440 80.91.229.3 (9 Jan 2014 18:44:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2014 18:44:04 +0000 (UTC) Cc: Ted Zlatanov , Stefan Monnier , Tassilo Horn To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 09 19:44:08 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 1W1KaG-0000ua-K2 for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 19:44:00 +0100 Original-Received: from localhost ([::1]:53599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1KaG-0007no-9t for ged-emacs-devel@m.gmane.org; Thu, 09 Jan 2014 13:44:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1Ka8-0007mm-Va for emacs-devel@gnu.org; Thu, 09 Jan 2014 13:43:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1Ka3-0005Zg-GN for emacs-devel@gnu.org; Thu, 09 Jan 2014 13:43:52 -0500 Original-Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]:51778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1Ka3-0005Za-BK; Thu, 09 Jan 2014 13:43:47 -0500 Original-Received: by mail-ig0-f173.google.com with SMTP id ut6so16873460igb.0 for ; Thu, 09 Jan 2014 10:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=RPhXm1mANigbRg+Jydl4gVvQszFL27sdvy6ctgKwUNc=; b=gMiPoRKtFyyNjxgk0ED/BU2pFowN650piAe81SYayKAoLqyzlvo80cGz6cFIz8Na1c SZJ0l+XvZN3joB9VQ0w0PQTHoSLN8o+lh9AvMy8u7apq1HGUXPjR8kH9TLKLUC2Faujl O98C0b7ZNIkdzCCNjYRJ39kKM4zWUEmTYjMgfsMkLIg9TMJWM9MC98rC7vHhs53hHAS/ /EbCQ50QX8J2BXmHD6VlZigJlnngwY99qRKvSkxYoeF7OS0ibW+CxISyDbHOOGPR1mMu 6MD0CTr6X4YbnTXKN19lT6g5vzIhUVRQPNCMZVcglGQNd81yNSC9U0M/tO+DtII3vuq0 FetQ== X-Received: by 10.50.225.39 with SMTP id rh7mr5116597igc.10.1389293026699; Thu, 09 Jan 2014 10:43:46 -0800 (PST) Original-Received: from localhost (CPE7cb21bcc146d-CM7cb21bcc146a.cpe.net.cable.rogers.com. [99.231.90.84]) by mx.google.com with ESMTPSA id o4sm9094857igh.3.2014.01.09.10.43.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jan 2014 10:43:46 -0800 (PST) In-Reply-To: X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::22d 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:167961 Archived-At: Sorry, I forgot to conform a problem when we define keybind by anonymous function to [a-z] key of self-insert-command. rubikitch who contribute mykie.el about this problem pull-requested : https://github.com/yuutayamada/mykie-el/pull/5 If we define contextual-command by anonymous function, cannot use Mew.el. I'm not sure the detail. But actually I couldn't use old version mykie's keybind related self-insert-command at Mew.el. (I heard Mew.el make sure keybind's name from @rubikitch on twitter) Old version mykie.el registration form is like this: ※ this form can use current version too (global-set-key "a" (lambda () (interactive) (mykie :default 'self-insert-command :C-u '(message "C-u")))) Current version(future branch): (mykie:define-key-with-self-key "a" ;; we don't need self-insert-command :C-u (message "C-u")) Or (mykie:global-set-key "a" ;; you can specify t instead of :default too :default self-insert-command :C-u (message "C-u")) Or (mykie:define-key global-map "a" :default self-insert-command :C-u (message "C-u")) Or Below function is more convenient than others. This function can register multiple keybinds. (mykie:set-keys 'with-self-key "a" :C-u (message "C-u of a") "b" :C-u (message "C-u of b")) You can specify specific keymap instead of 'with-self-key. If you specified nil then register keybinds to global-map. (mykie:set-keys emacs-lisp-mode-map "C-0" :default (message "default of C-0") :C-u (message "C-u of C-0") "C-1" :default (message "default of C-1") :C-u (message "C-u of C-1") ;; you can add more keybinds )