[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Specifying arguments to interactive functions
From: |
Thien-Thi Nguyen |
Subject: |
Re: Specifying arguments to interactive functions |
Date: |
Thu, 15 May 2014 10:04:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
() dont.spam.earl@gmail.com
() Wed, 14 May 2014 22:20:51 -0700 (PDT)
Any suggestions on how to simplify this?
'(48 49 50 51 52 53 54 55 56 57)
These are code points for ASCII "0" through "9", and are already as
simple as possible, in one sense, but not in the "wait six months and
re-grok quickly the code" sense. Better to be symbolic (not necessarily
w/ Lisp symbols, but rather w/ human-friendly expressions).
For example, you can:
- compress: (number-sequence 48 57)
- use characters: (number-sequence ?0 ?9)
- go up a level: (interactive "P") + SMOP
--
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
pgpQu3AB3yM2E.pgp
Description: PGP signature