/utilities/emacspeak/lisp/emacspeak-preamble.el

https://github.com/jamesnvc/emacs.d · Lisp · 79 lines · 27 code · 7 blank · 45 comment · 0 complexity · df21549b24ddbb634bad958af4826963 MD5 · raw file

  1. ;;; emacspeak-preamble.el --- standard include for Emacspeak modules
  2. ;;; $Id: emacspeak-preamble.el 5798 2008-08-22 17:35:01Z tv.raman.tv $
  3. ;;; $Author: tv.raman.tv $
  4. ;;; DescriptionEmacspeak extensions for auctex-mode
  5. ;;; Keywords:emacspeak, audio interface to emacs AUCTEX
  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. ;;{{{ Required modules
  37. (require 'cl)
  38. (declaim (optimize (safety 0) (speed 3)))
  39. (require 'advice)
  40. (require 'backquote)
  41. (require 'custom)
  42. (require 'widget)
  43. (require 'wid-edit)
  44. (require 'thingatpt)
  45. (require 'emacspeak-load-path)
  46. (require 'voice-setup)
  47. (require 'dtk-speak)
  48. (require 'emacspeak-pronounce)
  49. (require 'emacspeak-speak)
  50. (require 'emacspeak-keymap)
  51. ;;}}}
  52. ;;{{{ Utilities:
  53. (defsubst emacspeak-url-encode (str)
  54. "URL encode string."
  55. (mapconcat
  56. #'(lambda (c)
  57. (cond ((= c 32) "+")
  58. ((or (and (>= c ?a) (<= c ?z))
  59. (and (>= c ?A) (<= c ?Z))
  60. (and (>= c ?0) (<= c ?9)))
  61. (char-to-string c))
  62. (t (upcase (format "%%%02x" c)))))
  63. str
  64. ""))
  65. ;;}}}
  66. (provide 'emacspeak-preamble)
  67. ;;{{{ emacs local variables
  68. ;;; local variables:
  69. ;;; folded-file: t
  70. ;;; byte-compile-dynamic: t
  71. ;;; end:
  72. ;;}}}