Live data from Hacker News

Viewing profile — funptr

funptr

HN member
Joined
Wed, Jan 26, 2011, 6:53 PM UTC
HN karma
16
Public activity
8 items

About funptr

No profile information was provided.

Recent public activity

  1. 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".

  2. comment
    Comment #2197714

    That seems to work also, what's the problem?

  3. comment
    Comment #2197629

    It's not part of emacs, I just wrote it as an example.

  4. comment
  5. 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. …

  6. 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.…

  7. comment
    Comment #2144814

    You're right, it's not even valid C99. My mistake.

  8. 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…