--- css-mode-0.11.orig/doco.html
+++ css-mode-0.11/doco.html
@@ -8,7 +8,10 @@
in Emacs.">
-
+
--- css-mode-0.11.orig/css-mode.el
+++ css-mode-0.11/css-mode.el
@@ -4,10 +4,11 @@
;;; Adds font locking, some rather primitive indentation handling and
;;; some typing help.
;;;
-(defvar cssm-version "0.11"
+(defvar cssm-version "0.11.zap1"
"The current version number of css-mode.")
;;; copyright (c) 1998 Lars Marius Garshol, larsga@ifi.uio.no
;;; $Id: css-mode.el,v 1.9 2000/01/05 21:21:56 larsga Exp $
+;;; Modified by John Zaitseff, 3rd November 2004.
;;; css-mode is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published
@@ -64,7 +65,7 @@
; Customizable variables:
-(defvar cssm-indent-level 2 "The indentation level inside @media rules.")
+(defvar cssm-indent-level 2 "The indentation level inside rules.")
(defvar cssm-mirror-mode t
"Whether brackets, quotes etc should be mirrored automatically on
insertion.")
@@ -73,39 +74,51 @@
closing bracket or not.")
(defvar cssm-indent-function #'cssm-old-style-indenter
"Which function to use when deciding which column to indent to. To get
-C-style indentation, use cssm-c-style-indenter.")
-
+C-style indentation, use cssm-c-style-indenter. To get old-style indentation,
+use cssm-old-style-indenter.")
+
; The rest of the code:
(defvar cssm-properties
- '("font-family" "font-style" "font-variant" "font-weight"
- "font-size" "font" "background-color" "background-image"
- "background-repeat" "background-attachment" "background-position"
- "color" "background" "word-spacing" "letter-spacing"
+ '("font-family" "font-style" "font-variant" "font-weight" "font-size"
+ "font" "background-color" "background-image" "background-repeat"
+ "background-attachment" "background-position" "background" "color"
+ "word-spacing" "letter-spacing" "text-decoration" "vertical-align"
+ "text-transform" "text-align" "text-indent" "line-height" "margin-top"
+ "margin-right" "margin-bottom" "margin-left" "margin" "padding-top"
+ "padding-right" "padding-bottom" "padding-left" "padding"
"border-top-width" "border-right-width" "border-left-width"
- "border-bottom-width" "border-width" "list-style-type"
- "list-style-image" "list-style-position" "text-decoration"
- "vertical-align" "text-transform" "text-align" "text-indent"
- "line-height" "margin-top" "margin-right" "margin-bottom"
- "margin-left" "margin" "padding-top" "padding-right" "padding-bottom"
- "padding-left" "padding" "border-top" "border-right" "border-bottom"
- "border-left" "border" "width" "height" "float" "clear" "display"
- "list-style" "white-space" "border-style" "border-color"
-
- ; CSS level 2:
-
- "azimuth" "border-bottom-color" "border-bottom-style"
- "border-collapse" "border-left-color" "border-left-style"
- "border-right-color" "border-right-style" "border-top-color"
- "border-top-style" "caption-side" "cell-spacing" "clip" "column-span"
- "content" "cue" "cue-after" "cue-before" "cursor" "direction"
- "elevation" "font-size-adjust" "left" "marks" "max-height" "max-width"
- "min-height" "min-width" "orphans" "overflow" "page-break-after"
- "page-break-before" "pause" "pause-after" "pause-before" "pitch"
- "pitch-range" "play-during" "position" "richness" "right" "row-span"
- "size" "speak" "speak-date" "speak-header" "speak-punctuation"
- "speak-time" "speech-rate" "stress" "table-layout" "text-shadow" "top"
- "visibility" "voice-family" "volume" "widows" "z-index")
+ "border-bottom-width" "border-width" "border-color" "border-style"
+ "border-top" "border-right" "border-bottom" "border-left" "border"
+ "width" "height" "float" "clear" "display" "white-space"
+ "list-style-type" "list-style-image" "list-style-position"
+ "list-style"
+
+ ; CSS level 2.1:
+
+ "border-bottom-color" "border-bottom-style" "border-collapse"
+ "border-left-color" "border-left-style" "border-right-color"
+ "border-right-style" "border-spacing" "border-top-color"
+ "border-top-style" "bottom" "caption-side" "clip" "content"
+ "counter-increment" "counter-reset" "cursor" "direction" "empty-cells"
+ "left" "max-height" "max-width" "min-height" "min-width" "orphans"
+ "outline" "outline-color" "outline-style" "outline-width" "overflow"
+ "page-break-after" "page-break-before" "page-break-inside" "position"
+ "quotes" "right" "table-layout" "top" "unicode-bidi" "visibility"
+ "widows" "z-index"
+
+ ; CSS level 2 (dropped from 2.1):
+
+ "azimuth" "cue" "cue-after" "cue-before" "elevation"
+ "font-size-adjust" "font-stretch" "marker-offset" "marks" "page"
+ "pause" "pause-after" "pause-before" "pitch" "pitch-range"
+ "play-during" "richness" "size" "speak" "speak-header" "speak-numeral"
+ "speak-punctuation" "speech-rate" "stress" "text-shadow"
+ "voice-family" "volume"
+
+ ; Non-standard properties
+
+ "cell-spacing" "column-span" "row-span" "speak-date" "speak-time")
"A list of all CSS properties.")
(defvar cssm-properties-alist
@@ -128,7 +141,7 @@
'("link" "visited" "active" "first-line" "first-letter"
; CSS level 2
- "first-child" "before" "after" "hover")
+ "first-child" "before" "after" "hover" "focus" "lang")
"A list of all CSS pseudo-classes.")
; internal
@@ -327,8 +340,13 @@
(define-skeleton cssm-insert-curlies
"Inserts a pair of matching curly parenthesises." nil
- "{ " _ (if cssm-newline-before-closing-bracket "\n" " ")
- "}")
+ "{"
+ (if cssm-newline-before-closing-bracket "\n" " ")
+ (if cssm-newline-before-closing-bracket '>)
+ _
+ (if cssm-newline-before-closing-bracket "\n" " ")
+ "}"
+ (if cssm-newline-before-closing-bracket '>))
(define-skeleton cssm-insert-quotes
"Inserts a pair of matching quotes." nil
@@ -467,4 +485,4 @@
(provide 'css-mode)
-;; CSS-mode ends here
\ No newline at end of file
+;; CSS-mode ends here
--- css-mode-0.11.orig/debian/compat
+++ css-mode-0.11/debian/compat
@@ -0,0 +1 @@
+5
--- css-mode-0.11.orig/debian/emacsen-startup
+++ css-mode-0.11/debian/emacsen-startup
@@ -0,0 +1,23 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file for the Debian GNU/Linux css-mode package
+;;
+;; Originally contributed by Nils Naumann
+;; Modified by Dirk Eddelbuettel
+;; Adapted for dh-make by Jim Van Zandt
+
+;; The css-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:
+(debian-pkg-add-load-path-item "/usr/share/emacs/site-lisp/css-mode")
+
+(debian-pkg-add-load-path-item (concat "/usr/share/"
+ (symbol-name debian-emacs-flavor)
+ "/site-lisp/css-mode"))
+
+;; Set up to autoload
+(autoload 'css-mode "css-mode" "Major mode for editing CSS style sheets" t)
+(setq auto-mode-alist
+ (cons '("\\.css\\'" . css-mode) auto-mode-alist))
--- css-mode-0.11.orig/debian/changelog
+++ css-mode-0.11/debian/changelog
@@ -0,0 +1,47 @@
+css-mode (0.11-7) unstable; urgency=low
+
+ * Fix debian/emacsen-startup typo.
+
+ -- Chris Lawrence Tue, 27 Jan 2009 02:43:18 -0600
+
+css-mode (0.11-6) unstable; urgency=low
+
+ * Use debian-pkg-add-load-path-item to insert into load-path.
+ (Closes: #513046)
+ * Update to be lintian-clean.
+
+ -- Chris Lawrence Sun, 25 Jan 2009 23:16:01 -0600
+
+css-mode (0.11-5) unstable; urgency=low
+
+ * Apply patch from John Zaitseff to add additional CSS properties and
+ pseudo-classes, and fix a bug in cssm-insert-curlies.
+ (Closes: #282572)
+ * Update to latest Standards-Version and debhelper.
+
+ -- Chris Lawrence Tue, 23 Nov 2004 01:59:41 -0600
+
+css-mode (0.11-4) unstable; urgency=low
+
+ * Rearrange load-path so the compiled code comes first.
+ (Closes: #159622)
+
+ -- Chris Lawrence Wed, 4 Sep 2002 18:44:43 -0500
+
+css-mode (0.11-3) unstable; urgency=low
+
+ * Add path of source file to load-path.
+
+ -- Chris Lawrence Thu, 11 Jul 2002 17:09:02 -0500
+
+css-mode (0.11-2) unstable; urgency=low
+
+ * Fix autoload declaration in emacsen-startup script.
+
+ -- Chris Lawrence Wed, 27 Mar 2002 20:50:37 -0600
+
+css-mode (0.11-1) unstable; urgency=low
+
+ * Initial Release. (Closes: #135937)
+
+ -- Chris Lawrence Sat, 2 Mar 2002 18:16:35 -0600
--- css-mode-0.11.orig/debian/css-mode.doc-base
+++ css-mode-0.11/debian/css-mode.doc-base
@@ -0,0 +1,9 @@
+Document: css-mode
+Title: css-mode documentation
+Author: Lars Marius Garshol
+Abstract: A Cascading Style Sheets editing mode for Emacs.
+Section: Editors
+
+Format: HTML
+Index: /usr/share/doc/css-mode/doco.html
+Files: /usr/share/doc/css-mode/*.html
--- css-mode-0.11.orig/debian/copyright
+++ css-mode-0.11/debian/copyright
@@ -0,0 +1,25 @@
+This package was debianized by Chris Lawrence on
+Sat, 2 Mar 2002 18:16:35 -0600.
+
+It was downloaded from http://www.garshol.priv.no/download/software/css-mode/
+
+Upstream Author: Lars Marius Garshol
+
+Copyright:
+ Copyright (c) 1998 Lars Marius Garshol, larsga@ifi.uio.no
+
+ 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; version 2 dated June, 1991.
+
+ 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in `/usr/share/common-licenses/GPL'.
--- css-mode-0.11.orig/debian/docs
+++ css-mode-0.11/debian/docs
@@ -0,0 +1 @@
+doco.html
--- css-mode-0.11.orig/debian/emacsen-remove
+++ css-mode-0.11/debian/emacsen-remove
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/css-mode
+
+FLAVOR=$1
+PACKAGE=css-mode
+
+if [ ${FLAVOR} != emacs ]; then
+ if test -x /usr/sbin/install-info-altdir; then
+ echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
+ install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/css-mode.info.gz
+ fi
+
+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
--- css-mode-0.11.orig/debian/rules
+++ css-mode-0.11/debian/rules
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+ touch configure-stamp
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ #$(MAKE)
+ #/usr/bin/docbook-to-man debian/css-mode.sgml > css-mode.1
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ #-$(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/css-mode.
+ cp *.el debian/css-mode/usr/share/emacs/site-lisp/css-mode
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# We have nothing to do by default.
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+# dh_installdebconf
+ dh_installdocs
+ dh_installexamples
+ dh_installmenu
+# dh_installlogrotate
+ dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+ dh_installcron
+ dh_installman
+ dh_installinfo
+# dh_undocumented
+ dh_installchangelogs
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_makeshlibs
+ dh_installdeb
+# dh_perl
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- css-mode-0.11.orig/debian/dirs
+++ css-mode-0.11/debian/dirs
@@ -0,0 +1,2 @@
+usr/share/emacs/site-lisp/css-mode
+etc/emacs/site-start.d
--- css-mode-0.11.orig/debian/emacsen-install
+++ css-mode-0.11/debian/emacsen-install
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/css-mode
+
+# Written by Jim Van Zandt , borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# and octave by Dirk Eddelbuettel .
+
+FLAVOR=$1
+PACKAGE=css-mode
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+#FLAVORTEST=`echo $FLAVOR | cut -c-6`
+#if [ ${FLAVORTEST} = xemacs ] ; then
+# SITEFLAG="-no-site-file"
+#else
+# SITEFLAG="--no-site-file"
+#fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+# Install-info-altdir does not actually exist.
+# Maybe somebody will write it.
+if test -x /usr/sbin/install-info-altdir; then
+ echo install/${PACKAGE}: install Info links for ${FLAVOR}
+ install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
+fi
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
--- css-mode-0.11.orig/debian/control
+++ css-mode-0.11/debian/control
@@ -0,0 +1,21 @@
+Source: css-mode
+Section: editors
+Priority: extra
+Maintainer: Chris Lawrence
+Build-Depends: debhelper (>> 5)
+Standards-Version: 3.8.0
+Homepage: http://www.garshol.priv.no/download/software/css-mode/
+
+Package: css-mode
+Architecture: all
+Depends: emacs22 | emacsen, emacsen-common (>= 1.4.14)
+Recommends: html-helper-mode
+Description: A Cascading Style Sheets (CSS) editing mode for Emacs
+ This is a simple Emacs mode for editing CSS style sheets. It adds
+ font-locking and some basic auto-indentation support to Emacs. It
+ works with Emacs 19.34, but should also work with both older and
+ newer versions as well as XEmacs.
+ .
+ While CSS has a C-like syntax, this mode does a better job than
+ cc-mode of handling the features of the CSS language. It supports
+ both CSS Level 1 and Level 2.