create a file emacspeak-pcomplete.el -- put the code you write in
it, maintain it for a few weeks, and then send it along for
possible inclusion. That's the only way I know to both write
clean code that gets cleaner, and to ensure that work does not
get lost.
>>>>> "Michal" == Michal <rabbit50@xxxxxxxxxxx> writes:
Michal> "T. V. Raman" <raman@xxxxxxxxxxx> writes:
>> that mode is not speech-enabled because i dont use
>> it. Feel free to advice it appropriately
Michal>
Michal> I played a while with it. The following thing did the
Michal> job with minibuffer partial completion.
Michal>
Michal> ;; minibuffer partial completion advising. It is
Michal> based on ;; `minibuffer-complete-word' and
Michal> `minibuffer-complete', which are ;; advised in
Michal> emacspeak-advice.el. The only thing I did is: ;; <
Michal> '(minibuffer-complete-word minibuffer-complete) ;; >
Michal> '(PC-complete-word PC-complete)
Michal>
Michal> (loop for f in '(PC-complete-word PC-complete) do
Michal> (eval `(defadvice ,f (around emacspeak pre act) "Say
Michal> what you completed." (cond ((interactive-p) (let
Michal> ((prior (point )) (emacspeak-speak-messages nil))
Michal> (emacspeak-kill-buffer-carefully "*Completions*")
Michal> ad-do-it (if (> (point) prior) (tts-with-punctuations
Michal> 'all (dtk-speak (buffer-substring (point) prior)))
Michal> (emacspeak-speak-completions-if-available)))) (t
Michal> ad-do-it)) ad-return-value)))
Michal>
Michal>
Michal> best regards, Michal
Michal>
Michal> -----------------------------------------------------------------------------
Michal> To unsubscribe from the emacspeak list or change your
Michal> address on the emacspeak list send mail to
Michal> "emacspeak-request@xxxxxxxxxxx" with a subject of
Michal> "unsubscribe" or "help"
--
Best Regards,
--raman
Email: raman@xxxxxxxxxxx
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: tv.raman.tv@xxxxxxxxxxx
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: irc://irc.freenode.net/#emacs
-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help"
If you have questions about this archive or had problems using it, please send mail to:
priestdo@xxxxxxxxxxx No Soliciting!Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998