Viewing profile — funptr
funptr
HN member- Joined
- Wed, Jan 26, 2011, 6:53 PM UTC
- HN karma
- 16
- Public activity
- 8 items
- HN profile
- View on Hacker News ↗
About funptr
No profile information was provided.
Recent public activity
-
comment
Comment #2197825
Not offhand, but I looked it up and I think what you want is `key-description'. It prints key sequences, so e.g. (key-description "\370") evals to "M-x".
-
comment
Comment #2197714
That seems to work also, what's the problem?
-
comment
Comment #2197629
It's not part of emacs, I just wrote it as an example.
- comment
-
comment
Comment #2196208
This one prompts you to type a literal key sequence (exactly like with `describe-key', C-h k) and inserts it at the point in a representation that the *-set-key functions can use. …
-
comment
Comment #2144979
> Is there a C macro that can do this? No, of course. C macros only see strings; you need to parse a syntax tree to do your reverse example (like lisp macros). No argument from me.…
-
comment
Comment #2144814
You're right, it's not even valid C99. My mistake.
-
comment
Comment #2144540
C99 + GCC extensions + POSIX: #define for_duration(seconds, body) \ { \ pthread_t tid_task, tid_watcher; \ \ void* task(void* arg) { \ body ; \ pthread_cancel(tid_watcher); \ retur…