[Top][All Lists]

[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 ()
   (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

Attachment: pgpUVOYtUmEzQ.pgp
Description: PGP signature

reply via email to

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