Re: HowTo: Avoid packages like TPU

2007-08-08 Thread T. V. Raman
I think I finally got this right (I hope) someone please confirm -- (I check (functionp (indirect-function sym)) before I do anything like calling interactive-form -- incidentally calling interactive-form was also automatically loading files. While debugging this, I also noticed that there is a p

Re: HowTo: Avoid packages like TPU

2007-08-08 Thread T. V. Raman
But here is the problem though: How do I find out after having called (functionp sym) and getting back T if the function is already loaded? I was using symbol-function as a guard to make sure I only called (interactive-form on true functions > "Kevin" == Kevin Rodgers <[EMAIL PROTECTED]> writ

Re: HowTo: Avoid packages like TPU

2007-08-08 Thread T. V. Raman
Thanks for the tip! > "Kevin" == Kevin Rodgers <[EMAIL PROTECTED]> writes: Kevin> Stefan Monnier wrote: >>> 1) In using reflection, it ends up loading tpu-extras.el >>> (even though I have no intention of using tpu) >> >> This is a problem in Emacspeak: it should not its

Re: HowTo: Avoid packages like TPU

2007-08-07 Thread Kevin Rodgers
Stefan Monnier wrote: 1) In using reflection, it ends up loading tpu-extras.el (even though I have no intention of using tpu) This is a problem in Emacspeak: it should not itself load packages. Indeed. Raman, compare the results of (functionp 'tpu-edt) (functionp (symbol-

Re: HowTo: Avoid packages like TPU

2007-08-07 Thread T. V. Raman
There is perhaps something I dont quite understand about the Emacs CVS repos. I'm using: :pserver:[EMAIL PROTECTED]:/sources/emacs and building this results in a version that calls itself 22.1.50.x -- is that a "branch" or a "trunk"? Also, is there something newer called Emacs 23 in the CVS rep

Re: HowTo: Avoid packages like TPU

2007-08-07 Thread Stefan Monnier
> Just did a CVS update, and I still see the old version of > tpu-extras in the sources i.e. it defines newline. I fixed it in the 22 branch, so it may take a few more days for it to get merged into the trunk. Stefan ___ emacs-pretest-bug ma

Re: HowTo: Avoid packages like TPU

2007-08-07 Thread T. V. Raman
Just did a CVS update, and I still see the old version of tpu-extras in the sources i.e. it defines newline. Thanks for the fix. > "Stefan" == Stefan Monnier <[EMAIL PROTECTED]> writes: >> 2) Worse, tpu-extras is evil -- it redefines things like >> newline Stefan> Should be "fix

Re: HowTo: Avoid packages like TPU

2007-08-07 Thread T. V. Raman
Thanks for the fix. > "Stefan" == Stefan Monnier <[EMAIL PROTECTED]> writes: >> 2) Worse, tpu-extras is evil -- it redefines things like >> newline Stefan> Should be "fixed" now (it uses advice and only Stefan> activates it when needed). Stefan> Stefan> Stefan>

Re: HowTo: Avoid packages like TPU

2007-08-06 Thread Stefan Monnier
> Perhaps we should put the tpu-extras.el autoloads into tpu-edt.el > instead of into loaddefs.el. I think that only tpu users > would want to call those entry points. > Stefan, you know how to do that. Would you please do that? It's done here, I'm just waiting for syncs and a few other things

Re: HowTo: Avoid packages like TPU

2007-08-06 Thread Stefan Monnier
> 2) Worse, tpu-extras is evil -- it redefines things like newline Should be "fixed" now (it uses advice and only activates it when needed). Stefan ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/list

Re: HowTo: Avoid packages like TPU

2007-08-06 Thread Stefan Monnier
> With loaddefs.el in Emacs 22, rarely used packages like tpu end up > showing up in the default obarray operated upon by mapatoms. Is there > a way to avoid this? Not without increasing the amount of work people need to do to enable TPU emulation, so I think this is not an option. > 0) mapatom

Re: HowTo: Avoid packages like TPU

2007-08-06 Thread Richard Stallman
2) Worse, tpu-extras is evil -- it redefines things like newline That is ugly, the same way advice is ugly, but the change to the behavior of `newline' is harmless enough. 3) And even worse, tpu-current-line (used by the redefined newline) raises errors at times when called fro

Re: HowTo: Avoid packages like TPU

2007-08-06 Thread Richard Stallman
With loaddefs.el in Emacs 22, rarely used packages like tpu end up showing up in the default obarray operated upon by mapatoms. Is there a way to avoid this? The only easy way is to delete the autoloads. But why do that? There are not very many of them. 0) mapatoms finds command

HowTo: Avoid packages like TPU

2007-08-05 Thread raman
With loaddefs.el in Emacs 22, rarely used packages like tpu end up showing up in the default obarray operated upon by mapatoms. Is there a way to avoid this? I use reflection via mapatoms to find interactive commands that need to be speech-enabled in Emacspeak, and one unfortunate consequence is