[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]
[Q]completion policy
- To: Koichi INOUE <kinoue@xxxxxxxxxxx>
- Subject: [Q]completion policy
- From: "T. V. Raman" <ramantv@xxxxxxxxxxx>
- Date: Fri, 1 Sep 2000 15:00:23 -0700 (PDT)
- In-Reply-To: <xepem34indm.fsf@xxxxxxxxxxx>
- Old-Return-Path: <raman@xxxxxxxxxxx>
- Resent-Date: Fri, 1 Sep 2000 18:02:22 -0400 (EDT)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <"Ph7F4D.A.idC.-cCs5"@hub>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
Thanks for pointing out the problem with speaking
completions when the completion gets shorter.
The present flaw is a bug --but not a design problem --just
an oversight.
You can fix this problem by making the advice on completion
commands smarter.
See the code in emacspeak-advice.el
where all those functions are advised.
As a specific example, look at the advice on command
minibuffer-complete
AT present you will see that the code there reflects the
behavior you are finding problematic.
You should be able to fix this by first copying over the
minibuffer contents to a temporary variable
--allow the completion to run (this is call ad-do-it in the
advice)
--and then check the size of the minibuffer contents.
If the contents are longer you should allow the present code
to do its work --if the contents are shorter you should
walk both strings to trim out the common prefix --and
finally speak the new contents
from the point at which it is different from the old.
Given that you've already been writing code I suspect you
have sufficient expertise to achieve the above --if you
still have trouble getting it written let me know.
>>>>> "Koichi" == Koichi INOUE <kinoue@xxxxxxxxxxx> writes:
Koichi> Hi, We, Bilingual Emacspeak Project, are now
Koichi> working on a Japanese&English capable
Koichi> enhancement of Emacspeak. It includes speech
Koichi> server and some extension (hopefully upper
Koichi> compatible) to the lisp code. Now a
Koichi> experimental version is working on WINDOWS for a
Koichi> few testers. Sorry we have not written English
Koichi> homepage yet.
Koichi> We have a problem of operation integrity with
Koichi> original Emacspeak. Please give us some
Koichi> suggestion.
Koichi> When TAB or spae is pressed while
Koichi> minibuffer-complete, Emacspeak speaks characters
Koichi> between original point and current point after
Koichi> insertion. But, in some case, content changes
Koichi> dramatically and gets shorter. For example, when
Koichi> cwd is /proj/some/long/path/work and pressed C-x
Koichi> C-f, minibuffer displayes
Koichi> /proj/some/long/path/work If one types '~/' and
Koichi> TAB, minibuffer gets shorter and displayes '~/'
Koichi> only. This time, characters heard are not
Koichi> inserted character but substituted characters.
Koichi> In other example, there is a mime-capable mailer
Koichi> 'Mew'. (http://www.mew.org) In this mailer, mail
Koichi> address completion sometimes chages characters
Koichi> leftside of cursor. In this case, completed
Koichi> string is not so trivial like pathnames so that
Koichi> some indication may be required.
Koichi> We have developping version of emacspeak-mew.el,
Koichi> advice package for that mailer. How should we
Koichi> treat the situation like this; how should we
Koichi> distinguish ordinally completion and changes
Koichi> leftside of cursor? It may be a problem of
Koichi> design policy of Emacspeak.
Koichi> Best regards,
Koichi> -- ****************************************
Koichi> Koichi Inoue Software Research Center, Ricoh
Koichi> Co. Ltd. e-mail: kinoue@xxxxxxxxxxx
Koichi> --QAA10086.967793192/ricohigw.ricoh.co.jp--
Koichi> -----------------------------------------------------------------------------
Koichi> To unsubscribe from the emacspeak list or change
Koichi> your address on the emacspeak list send mail to
Koichi> "emacspeak-request@xxxxxxxxxxx" with a subject
Koichi> of "unsubscribe" or "help"
--
Best Regards,
--raman
Email: raman@xxxxxxxxxxx
WWW: http://www.cs.cornell.edu/home/raman/
PGP: http://cs.cornell.edu/home/raman/raman.asc
-----------------------------------------------------------------------------
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"
Emacspeak Files |
Subscribe |
Unsubscribe