PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/emacspeak-29.0/lisp/emacspeak-autoload.el

#
Emacs Lisp | 104 lines | 35 code | 16 blank | 53 comment | 0 complexity | 73bc16a405249143a3d907d616fa12e7 MD5 | raw file
Possible License(s): MIT
  1. ;;; emacspeak-autoload.el --- Emacspeak Autoload Generator
  2. ;;; $Id: emacspeak-autoload.el 5798 2008-08-22 17:35:01Z tv.raman.tv $
  3. ;;; $Author: tv.raman.tv $
  4. ;;; Description: autoload Wizard for the emacspeak desktop
  5. ;;; Keywords: Emacspeak, Audio Desktop autoload
  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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  37. ;;{{{ introduction
  38. ;;; generate autoloads for emacspeak
  39. ;;}}}
  40. ;;{{{ Required modules
  41. (require 'cl)
  42. (declaim (optimize (safety 0) (speed 3)))
  43. (require 'autoload)
  44. ;;}}}
  45. ;;{{{ Variables
  46. (declaim (special emacspeak-lisp-directory))
  47. (defvar emacspeak-auto-autoloads-file
  48. (expand-file-name "emacspeak-loaddefs.el" emacspeak-lisp-directory)
  49. "File that holds automatically generated autoloads for
  50. Emacspeak.")
  51. (defvar emacspeak-auto-custom-file
  52. (expand-file-name "cus-load.el" emacspeak-lisp-directory)
  53. "File that holds automatically generated custom dependencies for
  54. Emacspeak.")
  55. ;;}}}
  56. ;;{{{ generate autoloadms
  57. (defvar emacspeak-update-autoloads-from-directories
  58. (cond
  59. ((fboundp 'update-autoloads-from-directories)
  60. 'update-autoloads-from-directories)
  61. ((fboundp 'update-directory-autoloads)
  62. 'update-directory-autoloads))
  63. "Function used to extract autoloads.")
  64. (defun emacspeak-auto-generate-autoloads ()
  65. "Generate emacspeak autoloads."
  66. (declare (special emacspeak-auto-autoloads-file
  67. emacspeak-update-autoloads-from-directories emacspeak-lisp-directory))
  68. (let ((dtk-quiet t)
  69. (generated-autoload-file emacspeak-auto-autoloads-file))
  70. (funcall emacspeak-update-autoloads-from-directories
  71. emacspeak-lisp-directory)))
  72. ;;}}}
  73. ;;{{{ custom dependencies:
  74. (defun emacspeak-auto-custom-make-dependencies ()
  75. "Generate emacspeak custom deps."
  76. (declare (special emacspeak-auto-custom-file))
  77. (let ((dtk-quiet t)
  78. (generated-custom-dependencies-file emacspeak-auto-custom-file))
  79. (custom-make-dependencies)))
  80. ;;}}}
  81. (provide 'emacspeak-autoload)
  82. ;;{{{ end of file
  83. ;;; local variables:
  84. ;;; folded-file: t
  85. ;;; byte-compile-dynamic: nil
  86. ;;; end:
  87. ;;}}}