PageRenderTime 49ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/emacspeak-29.0/lisp/emacspeak-perl.el

#
Emacs Lisp | 86 lines | 21 code | 15 blank | 50 comment | 0 complexity | 03686b7e5ec76bd990361bc00f377932 MD5 | raw file
Possible License(s): MIT
  1. ;;; emacspeak-perl.el --- Speech enable Perl Mode
  2. ;;; $Id: emacspeak-perl.el 5798 2008-08-22 17:35:01Z tv.raman.tv $
  3. ;;; $Author: tv.raman.tv $
  4. ;;; DescriptionEmacspeak extensions for perl-mode
  5. ;;; Keywords:emacspeak, audio interface to emacs perl
  6. ;;{{{ LCD Archive entry:
  7. ;;; LCD Archive Entry:
  8. ;;; emacspeak| T. V. Raman |raman@cs.cornell.edu
  9. ;;; A speech interface to Emacs |
  10. ;;; $Date: 2007-08-25 18:28:19 -0700 (Sat, 25 Aug 2007) $ |
  11. ;;; $Revision: 4532 $ |
  12. ;;; Location undetermined
  13. ;;;
  14. ;;}}}
  15. ;;{{{ Copyright:
  16. ;;;Copyright (C) 1995 -- 2007, T. V. Raman
  17. ;;; Copyright (c) 1994, 1995 by Digital Equipment Corporation.
  18. ;;; All Rights Reserved.
  19. ;;;
  20. ;;; This file is not part of GNU Emacs, but the same permissions apply.
  21. ;;;
  22. ;;; GNU Emacs is free software; you can redistribute it and/or modify
  23. ;;; it under the terms of the GNU General Public License as published by
  24. ;;; the Free Software Foundation; either version 2, or (at your option)
  25. ;;; any later version.
  26. ;;;
  27. ;;; GNU Emacs is distributed in the hope that it will be useful,
  28. ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  29. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30. ;;; GNU General Public License for more details.
  31. ;;;
  32. ;;; You should have received a copy of the GNU General Public License
  33. ;;; along with GNU Emacs; see the file COPYING. If not, write to
  34. ;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  35. ;;}}}
  36. ;;{{{ Introduction:
  37. ;;; Provide additional advice to perl-mode
  38. ;;}}}
  39. ;;{{{ requires
  40. (require 'emacspeak-preamble)
  41. ;;}}}
  42. ;;{{{ Advice electric insertion to talk:
  43. (defadvice electric-perl-terminator (after emacspeak pre act comp )
  44. "Speak what you inserted."
  45. (when (interactive-p)
  46. (emacspeak-speak-this-char last-input-char)))
  47. ;;}}}
  48. ;;{{{ Program structure:
  49. (defadvice mark-perl-function (after emacspeak pre act comp)
  50. "Provide auditory feedback"
  51. (when (interactive-p)
  52. (emacspeak-auditory-icon 'mark-object)
  53. (message "Marked procedure")))
  54. (defadvice perl-beginning-of-function (after emacspeak pre act comp)
  55. "Provide auditory feedback."
  56. (when (interactive-p)
  57. (emacspeak-auditory-icon 'large-movement)
  58. (emacspeak-speak-line )))
  59. (defadvice perl-end-of-function (after emacspeak pre act comp)
  60. "Provide auditory feedback."
  61. (when (interactive-p)
  62. (emacspeak-auditory-icon 'large-movement)))
  63. ;;}}}
  64. (provide 'emacspeak-perl)
  65. ;;{{{ emacs local variables
  66. ;;; local variables:
  67. ;;; folded-file: t
  68. ;;; byte-compile-dynamic: t
  69. ;;; end:
  70. ;;}}}