~josephjamesmills/ubuntu/quantal/dh-make/fixed-bug-1048908

« back to all changes in this revision

Viewing changes to lib/debian/emacsen-startup.ex

  • Committer: Package Import Robot
  • Author(s): Craig Small
  • Date: 2012-07-13 21:26:38 UTC
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120713212638-e2ymcmc30xek8ca4
* Update to standards version 3.9.3
* Update to debhelper version 9
* debhelper v9 uses dpkg-buildflags Closes: #644486
* Remove ldap-utils conflict as that version is not even in stable
* Changed emacsen-startup script to debian-emacs-flavour Closes:
  #662163
* Fixed emacsen-install from SamBs patch Closes: #665312
* emacsen-install uses relative symlinks Closes: #670409
* emacsen-install uses debian-pkg-add-load-path Closes: #672478
* Man page doesnt have discouraged AUTHORS section Closes: #672543
* Final version of 1.0 copyright file changed Closes: #665770
* Minor tweaks to license files Closes: #662192
* Rename x11 to mit license to follow SPDX list, same bug as above
* Add -y,--yes option to run non-interactively
* Add --packageclass,-C option to set class instead of -s,-i,-m etc
* Don't add missing when non .ex file exists Closes: #662888

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
;; installed in a subdirectory of the respective site-lisp directory.
14
14
;; We have to add this to the load-path:
15
15
(let ((package-dir (concat "/usr/share/"
16
 
                           (symbol-name flavor)
 
16
                           (symbol-name debian-emacs-flavor)
17
17
                           "/site-lisp/#PACKAGE#")))
18
18
;; If package-dir does not exist, the #PACKAGE# package must have
19
19
;; removed but not purged, and we should skip the setup.
20
20
  (when (file-directory-p package-dir)
21
 
    (setq load-path (cons package-dir load-path))
 
21
    (if (fboundp 'debian-pkg-add-load-path-item)
 
22
        (debian-pkg-add-load-path-item package-dir)
 
23
      (setq load-path (cons package-dir load-path)))
22
24
    (autoload '#PACKAGE#-mode "#PACKAGE#-mode"
23
25
      "Major mode for editing #PACKAGE# files." t)
24
26
    (add-to-list 'auto-mode-alist '("\\.#PACKAGE#$" . #PACKAGE#-mode))))