[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacsy: Context Sensitive Commands Design Question
From: |
Thien-Thi Nguyen |
Subject: |
Re: Emacsy: Context Sensitive Commands Design Question |
Date: |
Fri, 30 Aug 2013 09:32:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
() Shane Celis <address@hidden>
() 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]
--
Thien-Thi Nguyen
GPG key: 4C807502
(if you're human and you know it)
read my lisp: (responsep (questions 'technical)
(not (via 'mailing-list)))
=> nil
pgpJbMa7CvOD4.pgp
Description: PGP signature