[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Specifying arguments to interactive functions
From: |
dont . spam . earl |
Subject: |
Re: Specifying arguments to interactive functions |
Date: |
Thu, 15 May 2014 10:43:56 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Thursday, May 15, 2014 1:04:01 AM UTC-7, Thien-Thi Nguyen wrote:
> () 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
Thanks. Any tips on passing an argument to 'switch-to-interactive-buffer while
having it still call 'interactive to get the digit from the user?