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

Re: emacspeak-speak-modeline



 南谷です。
 言い出しっぺの法則的にwlのplugedのon/offを通知するコードを書いてみなし
た。ただし、このadviceで全てのplugedのon/offを検知できるのかちょっと自信
がありません。

#"pluged on"/"pluged off"と言わせているのですが、英語として正しいのかよ
#く分かりません。
よかったらマージなどして下さい。

;;; emacspeak-wl2.el
;;; This file is not part of GNU Emacs, but the same permissions apply.
;;;
;;; GNU Emacs is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 2, or (at your option)
;;; any later version.
;;;
;;; GNU Emacs is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Emacs; see the file COPYING.  If not, write to
;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

(require 'cl)
(declaim  (optimize  (safety 0) (speed 3)))
(require 'emacspeak-speak)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defadvice wl-toggle-plugged (after emacspeak pre act )
  "speak folder's pluged status"
(if wl-plugged
  (dtk-speak "pluged on")
  (dtk-speak "pluged off")))

(provide 'emacspeak-wl2)