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

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



Hi

Rather than trying to fix everything so that it runs from the .el files, why don't you write a script to byte-compile everything and have it called by the installer? Then there is no loss in performance and we know that everything should work. It seems likely that this won't be the only issue if we run from .el files so in the long term byte-compiling during installation might be simpler.

Alastair






On 17/10/2013 14:23, Jarek Czekalski wrote:

W dniu 2013-10-17 14:47, Dmitri Paduchikh pisze:
I think this is because ems-interactive-p is defined as defsubst. If you
run Emacspeak from the compiled files its definition gets substituted
inline and call-interactively-p is called in place. Otherwise
ems-interactive-p is called as an usual function and this call isn't
interactive, hence called-interactively-p is false.

Replacing (ems-interactive-p) directly with (call-interactively-p
'interactive) in emacspeak-forward-char fixes the issue. This confirms
your statement. Thank you for pointing that out. I am an elisp beginner.
This defsubst property is not mentioned in docs.

What do I do now? Any suggestions?

Jarek

-----------------------------------------------------------------------------

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


-----------------------------------------------------------------------------
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