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

Re: ems-interactive-p, a bug in call-interactively-p?



In general do not use defmacro unless you know what you're doing.

General rule of thumb: 

Use defmacro to define new language constructs AKA  special-forms
--- using it in other instances usually leads to unforeseen
errors in the future.


>>>>> "Jarek" == Jarek Czekalski <jarekczek@poczta.onet.pl> writes:
    Jarek> Thank you again, Dmitri. My first glance at defmacro a
    Jarek> few days ago didn't reveal the right way to use it,
    Jarek> *with the apostrophe*. Now I confirm it works. Good to
    Jarek> have an elisp wizard listening :)
    Jarek> 
    Jarek> Jarek
    Jarek> 
    Jarek> W dniu 2013-10-18 22:58, Dmitri Paduchikh pisze:
    >> (...) Well, if you want you can replace defsubst with
    >> defmacro like this:
    >> 
    >> (defmacro ems-interactive-p () '(called-interactively-p
    >> 'interactive))
    >> 
    Jarek> 
    Jarek> -----------------------------------------------------------------------------
    Jarek> To unsubscribe from the emacspeak list or change your
    Jarek> address on the emacspeak list send mail to
    Jarek> "emacspeak-request@cs.vassar.edu" with a subject of
    Jarek> "unsubscribe" or "help".

-- 
Best Regards,
--raman

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help".



If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2010 | 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog | Search the archive