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

Backspace in incremental search



Add the following defadvice form to your emacs init files --
alternatively, just add it into file emacspeak-advice.el 
and you should get feedback as you hit backspace within
incremental search.

(defadvice isearch-delete-char (after emacspeak pre act)
  "Speak the search hit.
  Produce auditory icons if possible. "
  (dtk-speak isearch-string)
  (when (sit-for 0.5)
    (emacspeak-auditory-icon 'search-hit)
    (ems-set-personality-temporarily 
     (point) 
     (if  isearch-forward 
         (- (point) (length isearch-string ))
       (+ (point) (length isearch-string )))
     'harry
     (emacspeak-speak-line nil ))))
Jason White writes:
 > I have noticed that Emacspeak does not read the character which is being
 > deleted, or re-read the highlighted search result, when the backspace key
 > is pressed during an incremental search. Is this problem peculiar to my
 > setup? The main reason for my encountering this issue is that I am still
 > growing accustomed to the narrower and more closely spaced keys of the
 > laptop computer, and sometimes press adjacent keys inadvertently.
 > Incidentally, the computer has a 102-key keyboard. The layout is
 > compact and somewhat non-standard, but typing rapidly is quite
 > comfortable, once the user adjusts to it.
 > 
 > 
 > 
 > -----------------------------------------------------------------------------
 >        To unsubscribe or change your address send mail to
 > "emacspeak-request@cs.vassar.edu" with a subject of "unsubscribe" or "help"

-- 
Best Regards,
--raman

      Adobe Systems                 Tel: 1 (408) 536 3945   (W14-612)
      Advanced Technology Group     Fax: 1 (408) 537 4042 
      (W14 129) 345 Park Avenue     Email: raman@adobe.com 
      San Jose , CA 95110 -2704     Email:  raman@cs.cornell.edu
      http://labrador.corp.adobe.com/~raman/        (Adobe Intranet)
      http://cs.cornell.edu/home/raman/raman.html    (Cornell)
----------------------------------------------------------------------
    Disclaimer: The opinions expressed are my own and in no way should be taken
as representative of my employer, Adobe Systems Inc.
____________________________________________________________

-----------------------------------------------------------------------------
       To unsubscribe or change your address send mail to
"emacspeak-request@cs.vassar.edu" with a subject of "unsubscribe" or "help"


Emacspeak Files | Subscribe | Unsubscribe