From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: Emacsy: Context Sensitive Commands Design Question Date: Fri, 30 Aug 2013 09:32:24 +0200 Message-ID: <87vc2nr5vb.fsf@zigzag.favinet> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1377847796 28489 80.91.229.3 (30 Aug 2013 07:29:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Aug 2013 07:29:56 +0000 (UTC) Cc: Guile Mailing List To: Shane Celis Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Aug 30 09:29:58 2013 Return-path: Envelope-to: guile-user@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 1VFJ9Z-0001He-Uc for guile-user@m.gmane.org; Fri, 30 Aug 2013 09:29:58 +0200 Original-Received: from localhost ([::1]:47776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFJ9Z-0006cz-HE for guile-user@m.gmane.org; Fri, 30 Aug 2013 03:29:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFJ9F-0006Wq-UP for guile-user@gnu.org; Fri, 30 Aug 2013 03:29:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFJ98-0007DX-D6 for guile-user@gnu.org; Fri, 30 Aug 2013 03:29:37 -0400 Original-Received: from smtp207.alice.it ([82.57.200.103]:37246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFJ98-0007D2-2n for guile-user@gnu.org; Fri, 30 Aug 2013 03:29:30 -0400 Original-Received: from zigzag.favinet (95.244.75.118) by smtp207.alice.it (8.6.060.28) id 51F28102078E9231; Fri, 30 Aug 2013 09:29:28 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.80) (envelope-from ) id 1VFJC6-0004zB-6n; Fri, 30 Aug 2013 09:32:34 +0200 In-Reply-To: (Shane Celis's message of "Thu, 29 Aug 2013 16:57:00 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.103 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10732 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable () Shane Celis () Thu, 29 Aug 2013 16:57:00 -0400 6. Tag commands as special procedures [...] Implement "command?" CON: Adding something to the procedure makes wrapping commands in other lambdas awkward. Might necessitate a define-command, lambda-command, method-command, which I'd prefer to avoid. Why would you prefer to avoid this? What would you do? I'd explore option 6, starting w/: (define command? (make-object-property)) I think object properties are better suited than procedure properties after observing this in the (Emacs) *scratch* buffer: (commandp [42]) t It would be cool for Emacsy to have good "keyboard macros" support. Many a non-programmer fall into consciousness via such, in Emacs. [cc trimmed] =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 (if you're human and you know it) read my lisp: (responsep (questions 'technical) (not (via 'mailing-list))) =3D> nil --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlIgSosACgkQZwMiJEyAdQI4hQCfZmtS51sPWsTgegiIKOGsMSco dZ4AnA7MrUAW43hyAhKA7Lr7Wy93B5EW =GBQZ -----END PGP SIGNATURE----- --=-=-=--