[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: window--dump-frame
From: |
Thien-Thi Nguyen |
Subject: |
Re: window--dump-frame |
Date: |
Fri, 23 May 2014 19:12:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
() Stefan Monnier <address@hidden>
() Fri, 23 May 2014 09:30:01 -0400
we should make sure such internal commands only work when
called interactively
How can that be done? Something w/ ‘called-interactively-p’?
(defun fail-unless-called-interactively ()
(interactive)
(unless (called-interactively-p 'interactive)
(error "Not for non-interactive use!"))
(message "OK"))
That's gross (and doesn't fit the ‘called-interactively-p’
docstring admonition)! What am i missing?
--
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
pgpUVOYtUmEzQ.pgp
Description: PGP signature
- window--dump-frame, Glenn Morris, 2014/05/22
- Re: window--dump-frame, martin rudalics, 2014/05/22
- Re: window--dump-frame, Glenn Morris, 2014/05/22
- Re: window--dump-frame, Thien-Thi Nguyen, 2014/05/22
- Re: window--dump-frame, Stefan Monnier, 2014/05/22
- Re: window--dump-frame, Thien-Thi Nguyen, 2014/05/23
- Re: window--dump-frame, Stefan Monnier, 2014/05/23
- Re: window--dump-frame,
Thien-Thi Nguyen <=
- Re: window--dump-frame, Stefan Monnier, 2014/05/23
- Re: window--dump-frame, Thien-Thi Nguyen, 2014/05/25
- Re: window--dump-frame, martin rudalics, 2014/05/25