[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]
Re: [Q]completion policy
- To: Koichi INOUE <kinoue@xxxxxxxxxxx>
- Subject: Re: [Q]completion policy
- From: "T. V. Raman" <ramantv@xxxxxxxxxxx>
- Date: Sat, 2 Sep 2000 07:45:59 -0700 (PDT)
- In-Reply-To: <86bsy7ntig.fsf@xxxxxxxxxxx>
- Old-Return-Path: <raman@xxxxxxxxxxx>
- Resent-Date: Sat, 2 Sep 2000 10:47:17 -0400 (EDT)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <"4JRpQC.A.eJG.gLRs5"@hub>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
1) the code looks correct.
2) before worrying further about the code, lets' decide what
behavior is most appropriate for the user --then we can
decide how we write the code--
The reverse usually ends up looking like commercial win32
software because things are the way they are because it was
easy to write.
As far as I can tell
in the cases where the completion gets shorter you might
want to indicate this with an auditory icon and then speak
the relevant content.
You could define "relevant content" as all of the minibuffer
contents --but this may end up speaking more than you need
to--
I'd suggest trying a few things out and seeing what is
comfortable to use on a daily basis.
>>>>> "Koichi" == Koichi INOUE <kinoue@xxxxxxxxxxx> writes:
Koichi> Hi, "T. V. Raman" <ramantv@xxxxxxxxxxx>
Koichi> writes:
>> You can fix this problem by making the advice on
>> completion commands smarter.
Koichi> I have written an advice for mew-complete(for
Koichi> mailer Mew) based on minibuffer-complete like
Koichi> this; it may be the same approach as you
Koichi> mentikoned:
Koichi> --code begin (defadvice mew-complete-address
Koichi> (around emacspeak pre act) "Say what you
Koichi> completed." (let* ((beg (save-excursion
Koichi> (re-search-backward "[ ,:]") (forward-char 1)
Koichi> (point))) (dtk-stop-immediately t) (prior-key
Koichi> (buffer-substring beg (point))) (prior (point)))
Koichi> (emacspeak-kill-buffer-carefully "*Mew
Koichi> completions*") ad-do-it (let
Koichi> ((completions-buffer (get-buffer "*Mew
Koichi> completions*"))) (if (or (> (point) prior) (not
Koichi> (string-equal prior-key (buffer-substring beg
Koichi> prior)))) (dtk-speak (buffer-substring beg
Koichi> (point ))) (when (and completions-buffer
Koichi> (window-live-p (get-buffer-window
Koichi> completions-buffer ))) (save-excursion
Koichi> (set-buffer completions-buffer )
Koichi> (emacspeak-prepare-completions-buffer)
Koichi> (dtk-speak (buffer-string ))))))
Koichi> ad-return-value)) --code end
Koichi> It is made for mail address completion so that
Koichi> it first backward-searhces the address field
Koichi> separator.
Koichi> It seems to work well, but, just like
Koichi> minibuffer-complete, user can't know exactly
Koichi> whether (a) characters left to the point is
Koichi> changed or (b) simply new characters are added.
Koichi> Do you think is it OK or have some idea about
Koichi> representing (1) or (b)?
Koichi> Best regards. -- Koichi Inoue E-Mail:
Koichi> inopie@xxxxxxxxxxx ICQ UIN: 74900690
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