[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modified keypad keys

From: Stefan Monnier
Subject: Re: Modified keypad keys
Date: Fri, 28 Sep 2012 16:16:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

> +(defun powerset (list)
> +  (if (null list)
> +      '(nil)
> +    (let ((ps (powerset (cdr list))))
> +      (append ps (mapcar (lambda (e) (cons (car list) e)) ps)))))

I'm not sure I want `powerset' without some "<prefix>-".

> +(let ((modifiers (powerset '(control meta super hyper)))

You forgot shift.

So that's a total of 27 * 32 entries.  Makes this function-key-map alist
pretty, if you ask me.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]