debian/0000755000000000000000000000000012150724012007160 5ustar debian/patches/0000755000000000000000000000000012150724012010607 5ustar debian/patches/series0000644000000000000000000000011112150724012012015 0ustar skip-deprecated-syntactic-keywords-call fix-references-to-free-variables debian/patches/fix-references-to-free-variables0000644000000000000000000000312612150724012016746 0ustar Author: Gunnar Wolf Last-Update: 2013-05-27 Forwarded: no Description: Fix elisp warnings upon installation Some variables should be defined prior to their use. Index: haml-elisp/haml-mode.el =================================================================== --- haml-elisp.orig/haml-mode.el 2013-05-27 13:18:40.000000000 -0500 +++ haml-elisp/haml-mode.el 2013-05-27 13:18:39.000000000 -0500 @@ -159,6 +159,7 @@ This requires that `css-mode' is available. `css-mode' is included with Emacs 23." + (defvar css-mode-syntax-table) (when (boundp 'css-font-lock-keywords) (haml-fontify-region beg end css-font-lock-keywords @@ -172,6 +173,11 @@ This requires that Karl Landström's javascript mode be available, either as the \"js.el\" bundled with Emacs >= 23, or as \"javascript.el\" found in ELPA and elsewhere." + (defvar js--font-lock-keywords-3) + (defvar js-font-lock-keywords-3) + (defvar js-mode-syntax-table) + (defvar javascript-mode-syntax-table) + (defvar js--quick-match-re-func) (let ((keywords (or (and (featurep 'js) js--font-lock-keywords-3) (and (featurep 'javascript-mode) js-font-lock-keywords-3))) (syntax-table (or (and (featurep 'js) js-mode-syntax-table) @@ -381,6 +387,8 @@ With point at the beginning of the font lock region, EXTENDER is called. If it returns a (START . END) pair, those positions are used to possibly extend the font lock region." + (defvar font-lock-beg) + (defvar font-lock-end) (let ((old-beg font-lock-beg) (old-end font-lock-end)) (save-excursion debian/patches/skip-deprecated-syntactic-keywords-call0000644000000000000000000000320512150724012020353 0ustar Author: Gunnar Wolf Last-Update: 2013-05-27 Forwarded: no Description: Fix call to deprecated font-lock-syntactic-keywords From Emacs24's NEWS: . *** New variable `syntax-propertize-function'. This replaces `font-lock-syntactic-keywords' which is now obsolete. This allows syntax-table properties to be set independently from font-lock: just call syntax-propertize to make sure the text is propertized. Together with this new variable come a new hook syntax-propertize-extend-region-functions, as well as two helper functions: syntax-propertize-via-font-lock to reuse old font-lock-syntactic-keywords as-is; and syntax-propertize-rules which provides a new way to specify syntactic rules. Index: haml-elisp/haml-mode.el =================================================================== --- haml-elisp.orig/haml-mode.el 2013-05-27 13:11:39.000000000 -0500 +++ haml-elisp/haml-mode.el 2013-05-27 13:12:52.000000000 -0500 @@ -130,13 +130,15 @@ (save-match-data (let ((font-lock-keywords keywords) (font-lock-syntax-table syntax-table) - (font-lock-syntactic-keywords syntactic-keywords) (syntax-propertize-function syntax-propertize-fn) (font-lock-multiline 'undecided) (font-lock-dont-widen t) font-lock-keywords-only font-lock-extend-region-functions font-lock-keywords-case-fold-search) + (when (< emacs-major-version 24) + (let (font-lock-syntactic-keywords syntactic-keywords))) + (save-restriction (narrow-to-region (1- beg) end) ;; font-lock-fontify-region apparently isn't inclusive, debian/source/0000755000000000000000000000000012150724012010460 5ustar debian/source/format0000644000000000000000000000001412150724012011666 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212150724012010356 0ustar 8 debian/haml-elisp.install0000644000000000000000000000006212150724012012601 0ustar haml-mode.el usr/share/emacs/site-lisp/haml-elisp debian/copyright0000644000000000000000000000435012150724012011115 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: haml-mode.el Source: http://github.com/nex3/haml-mode Files: * Copyright: © 2007-2009 Hampton Catlin, Nathan Weizenbaum, Chris Eppstein License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # If you want to use GPL v2 or later for the /debian/* files use # the following clauses, or change it to suit. Delete these two lines Files: debian/* Copyright: 2008-2012 Gunnar Wolf 2011 Gastón Ramos License: GPL-2+ This package 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 of the License, or (at your option) any later version. . This package 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 this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/haml-elisp.dirs0000644000000000000000000000004612150724012012076 0ustar /usr/share/emacs/site-lisp/haml-elisp debian/haml-elisp.emacsen-install0000644000000000000000000000250012150724012014211 0ustar #!/bin/sh set -e SRC_FILE="haml-mode.el" # Right now only emacs23 and emacs24 are supported. If the future # brings support for other emacsen, we can keep this same logic - just # update this regex SUPPORTED_EMACSEN="^emacs2[34]$" FLAVOR="$1" if echo $FLAVOR | egrep -vq $SUPPORTED_EMACSEN; then echo "Skipping byte-compilation for ${FLAVOR}: Not supported" exit 0 fi echo "install/haml-elisp: Handling install of emacsen flavor ${FLAVOR}" if [ "${FLAVOR}" != "emacs" ]; then SRC_FLAVOR_PATH=/usr/share/${FLAVOR}/site-lisp/haml-elisp/$SRC_FILE echo "install/haml-elisp: byte-compiling for ${FLAVOR}" cd /usr/share/emacs/site-lisp/haml-elisp mkdir -p /usr/share/${FLAVOR}/site-lisp/haml-elisp echo "Installing source code for ${FLAVOR}" # Remove the symlink or file if already exists rm -f $SRC_FLAVOR_PATH ln -s /usr/share/emacs/site-lisp/haml-elisp/$SRC_FILE \ /usr/share/${FLAVOR}/site-lisp/haml-elisp/$SRC_FILE cd /usr/share/${FLAVOR}/site-lisp/haml-elisp cat < path.el (setq load-path (cons "." load-path) byte-compile-warnings nil) EOF FLAVORTEST=`echo $FLAVOR | cut -c-6` if [ ${FLAVORTEST} = xemacs ] ; then SITEFLAG="-no-site-file" else SITEFLAG="--no-site-file" fi ${FLAVOR} -q ${SITEFLAG} -batch -l path.el -f batch-byte-compile $SRC_FILE rm path.el fi exit 0; debian/changelog0000644000000000000000000000404112150724012011031 0ustar haml-elisp (1:3.1.0-1) unstable; urgency=low * New upstream release * Updated standards-version 3.9.3 → 3.9.4 * Updated the project homepage from http://haml-lang.com/ to http://haml.info/ * Updated source location in debian/copyright, as it was split off the main Haml package * This finally allows us to create a debian/watch file, yay! * Avoid doubly loading haml-mode into the auto-mode-alist (Closes: #680698) * Fix some warnings at installation time for Emacs 24: * References to undefined variables * Skip the call to font-lock-syntactic-keywords (now deprecated) * Still pending: The warning regarding 'aget' under Emacs 23; the warning for not using the return value for the version comparison for the font-lock-syntactic-keywords fix :-P -- Gunnar Wolf Mon, 27 May 2013 10:10:34 -0500 haml-elisp (1:3.0.15-5) unstable; urgency=low * Add Emacs24 to the list of supported emacsen (Closes: #686796) -- Gunnar Wolf Wed, 05 Sep 2012 18:01:44 -0500 haml-elisp (1:3.0.15-4) unstable; urgency=low * remove the symlink or src file if exists and make a symlink instead of copy the source file (Closes: #672251) -- Gastón Ramos Mon, 09 May 2012 11:50:37 -0300 haml-elisp (1:3.0.15-3) unstable; urgency=low * Added symlink to the source code for emacs23 (Closes: #671567) -- Gastón Ramos Mon, 07 May 2012 10:43:37 -0300 haml-elisp (1:3.0.15-2) unstable; urgency=low [ Gastón Ramos ] * Byte-compile only for supported emacsen (Closes: #665297, #665292) [ Gunnar Wolf ] * Standards-version 3.9.2→3.9.3 (no changes needed) -- Gunnar Wolf Fri, 20 Apr 2012 17:43:37 -0500 haml-elisp (1:3.0.15-1) unstable; urgency=low * Initial release (Closes: #654840) * Gave a epoch of 1 because there was already a haml-elisp package (built by libhaml-ruby and then ruby-haml, which reached 3.1.4-1). -- Gastón Ramos Fri, 30 Dec 2011 14:01:39 -0300 debian/haml-elisp.emacsen-remove0000644000000000000000000000044612150724012014047 0ustar #!/bin/sh -e FLAVOR="$1" SRC_FILE="haml-mode.el" echo "install/haml-elisp: Handling removal of emacsen flavor ${FLAVOR}" if [ "${FLAVOR}" != "emacs" ]; then echo "install/haml-elisp: purging byte-compiled files for ${FLAVOR}" rm -rf /usr/share/${FLAVOR}/site-lisp/haml-elisp fi exit 0; debian/rules0000755000000000000000000000003612150724012010237 0ustar #!/usr/bin/make -f %: dh $@ debian/watch0000644000000000000000000000011412150724012010205 0ustar version=3 http://githubredir.debian.net/github/nex3/haml-mode/(\d.*).tar.gz debian/haml-elisp.emacsen-startup0000644000000000000000000000271112150724012014251 0ustar ;; -*-emacs-lisp-*- ;; ;; Emacs startup file, e.g. /etc/emacs/site-start.d/50haml-mode.el ;; for the Debian haml-mode package ;; ;; Originally contributed by Nils Naumann ;; Modified by Dirk Eddelbuettel ;; Adapted for dh-make by Jim Van Zandt ;; Adapted for haml by Gunnar Wolf ;; The haml-mode package follows the Debian/GNU Linux 'emacsen' policy and ;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, ;; xemacs19, emacs20, xemacs20...). The compiled code is then ;; installed in a subdirectory of the respective site-lisp directory. ;; We have to add this to the load-path: (let ((package-dir (concat "/usr/share/" (symbol-name flavor) "/site-lisp/haml-elisp"))) ;; If package-dir does not exist, the haml-mode package must have ;; removed but not purged, and we should skip the setup. (when (file-directory-p package-dir) ;; Use debian-pkg-add-load-path-item per §9 of debian emacs subpolicy (debian-pkg-add-load-path-item package-dir ) (autoload 'haml-mode "haml-mode" "Major mode for editing haml-mode files." t) ;; The auto-mode-alist is modified when haml-mode gets loaded, so this ;; line just adds the mode twice to it. I'm leaving this commented until ;; I'm sure it's safe to drop it. ;; (see bug #680698) ;; (add-to-list 'auto-mode-alist '("\\.haml\\'" . haml-mode)) )) debian/control0000644000000000000000000000136612150724012010571 0ustar Source: haml-elisp Section: lisp Priority: optional Maintainer: Gastón Ramos Uploaders: Gunnar Wolf Build-Depends: debhelper (>= 8.0.0), quilt Standards-Version: 3.9.3 Homepage: http://haml.info/ Vcs-Git: git://git.debian.org/collab-maint/haml-elisp.git Vcs-Browser: http://git.debian.org/?p=collab-maint/haml-elisp.git;a=summary Package: haml-elisp Section: lisp Architecture: all Recommends: ruby-haml Depends: ${misc:Depends}, emacs23 Description: Emacs Lisp mode for the Haml markup language This package provides the emacs-lisp for syntax-highlighting Haml mode for emacs23. Haml (see haml-ruby) is a markup language designed to simplify and beautify the maintenance and ease of writing HTML templates.