debian/0000775000000000000000000000000012235716311007171 5ustar debian/expand-region-el.install0000664000000000000000000000006212235715525013723 0ustar *.el /usr/share/emacs/site-lisp/expand-region-el/ debian/emacsen-install0000664000000000000000000000242612235715525012205 0ustar #! /bin/sh -e # /usr/lib/emacsen-common/packages/install/expand-region-el # Written by Jim Van Zandt , borrowing heavily # from the install scripts for gettext by Santiago Vila # and octave by Dirk Eddelbuettel . FLAVOR=$1 PACKAGE=expand-region-el 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} ELRELDIR=../../../emacs/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/share/info/${PACKAGE}.info.gz fi install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`echo *.el` cd ${ELCDIR} ln -sf ${ELRELDIR}/*.el . cat << EOF > path.el (debian-pkg-add-load-path-item ".") (setq byte-compile-warnings nil) EOF ${FLAVOR} ${FLAGS} ${FILES} rm -f path.el exit 0 debian/emacsen-startup0000664000000000000000000000323412235715525012237 0ustar ;; -*-emacs-lisp-*- ;; ;; Emacs startup file, e.g. /etc/emacs/site-start.d/50expand-region-el.el ;; for the Debian expand-region-el package ;; ;; Originally contributed by Nils Naumann ;; Modified by Dirk Eddelbuettel ;; Adapted for dh-make by Jim Van Zandt ;; The expand-region-el 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 debian-emacs-flavor) "/site-lisp/expand-region-el"))) ;; If package-dir does not exist, the expand-region-el package must have ;; removed but not purged, and we should skip the setup. (when (file-directory-p package-dir) (if (fboundp 'debian-pkg-add-load-path-item) (debian-pkg-add-load-path-item package-dir) (setq load-path (cons package-dir load-path))) (autoload 'er/expand-region "expand-region" "Increase selected region by semantic units. Basically it runs all the mark-functions in `er/try-expand-list' and chooses the one that increases the size of the region while moving point or mark as little as possible. With prefix argument expands the region that many times. If prefix argument is negative calls `er/contract-region'. If prefix argument is 0 it resets point and mark to their state before calling `er/expand-region' for the first time." t) (global-set-key (kbd "C-=") 'er/expand-region))) debian/patches/0000775000000000000000000000000012235715525010626 5ustar debian/patches/0001-disable-sml-mode-expansions.patch0000664000000000000000000000203612235715525017531 0ustar From: "Barak A. Pearlmutter" Date: Mon, 15 Apr 2013 09:47:17 +0100 Subject: disable sml-mode-expansions The sml-mode support was tested with sml-mode 6.3, and does not seem compatible with the version in Debian, sml-mode 4.1-x. --- expand-region.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/expand-region.el b/expand-region.el index c0a5ad4..2c07066 100644 --- a/expand-region.el +++ b/expand-region.el @@ -186,7 +186,9 @@ before calling `er/expand-region' for the first time." (eval-after-load "cc-mode" '(require 'cc-mode-expansions)) (eval-after-load "text-mode" '(require 'text-mode-expansions)) (eval-after-load "cperl-mode" '(require 'cperl-mode-expansions)) -(eval-after-load "sml-mode" '(require 'sml-mode-expansions)) +;; This was tested w/ sml-mode 6.3. +;; Does not work with Debian sml-mode 4.1-x. +;;(eval-after-load "sml-mode" '(require 'sml-mode-expansions)) (eval-after-load "enh-ruby-mode" '(require 'enh-ruby-mode-expansions)) (provide 'expand-region) debian/patches/series0000664000000000000000000000004712235715525012044 0ustar 0001-disable-sml-mode-expansions.patch debian/source/0000775000000000000000000000000012235715525010477 5ustar debian/source/format0000664000000000000000000000001412235715525011705 0ustar 3.0 (quilt) debian/control0000664000000000000000000000202312235715525010577 0ustar Source: expand-region-el Section: editors Priority: extra Maintainer: Barak A. Pearlmutter Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: https://github.com/magnars/expand-region.el Vcs-Git: git://anonscm.debian.org/collab-maint/expand-region-el.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/expand-region-el.git Package: expand-region-el Architecture: all Depends: ${misc:Depends} Enhances: emacs, emacs23, emacs24 Description: Increase selected region in Emacs by semantic units Expand region increases the selected region by semantic units. Just keep pressing the 'C-=' key until it selects what you want. The notion of "semantic" is language-sensitive. . Example: editing . (setq alphabet-start "abc def") . With the cursor at the `c`, it starts by marking the entire word `abc`, then expand to the contents of the quotes `abc def`, then to the entire quote `"abc def"`, then to the contents of the sexp `setq alphabet-start "abc def"` and finally to the entire sexp. debian/expand-region-el.docs0000664000000000000000000000001212235715525013200 0ustar README.md debian/changelog0000664000000000000000000000257112235715627011061 0ustar expand-region-el (0.9.0+2013.10.19-1) unstable; urgency=low * Track upstream development snapshot -- Barak A. Pearlmutter Mon, 04 Nov 2013 13:05:27 +0000 expand-region-el (0.9.0+2013.09.10-1) unstable; urgency=low * Remove debian/README.Source, whose contents are no longer true * Track upstream development snapshot (closes: #705499) * Update quilt patch (upstream whitespace/context changes) * Track debian repo url naming scheme du jour -- Barak A. Pearlmutter Thu, 26 Sep 2013 13:38:41 +0100 expand-region-el (0.9.0-1) unstable; urgency=low * New upstream version * Disable sml-mode-expansions - incompatible with Debian sml-mode 4.1-x - tested upstream with sml-mode 6.3 - quilt patch to remove autoload - debian/rules tweak to not install file -- Barak A. Pearlmutter Mon, 15 Apr 2013 09:50:57 +0100 expand-region-el (0.8.0-1) unstable; urgency=low * New (official) upstream release -- Barak A. Pearlmutter Fri, 28 Sep 2012 09:53:43 +0100 expand-region-el (0+git.2.28e0f5-1) unstable; urgency=low * New upstream snapshot -- Barak A. Pearlmutter Tue, 18 Sep 2012 13:08:50 +0100 expand-region-el (0+git.1.d157d7f-1) unstable; urgency=low * Initial release (Closes: #685720) -- Barak A. Pearlmutter Thu, 23 Aug 2012 22:48:21 +0200 debian/copyright0000664000000000000000000000301312235715525011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: expand-region-el Source: Files: * Copyright: 2011-2012 Magnar Sveen License: GPL-3.0+ Files: python-el-fgallina-expansions.el python-mode-expansions.el Copyright: 2012 Felix Geller License: GPL-3.0+ Files: erlang-mode-expansions.el Copyright: 2012 Gleb Peregud License: GPL-3.0+ Files: latex-mode-expansions.el nxml-mode-expansions.el python-el-expansions.el text-mode-expansions.el Copyright: 2012 Ivan Andrus License: GPL-3.0+ Files: feature-mode-expansions.el Copyright: 2012 Raimon Grau License: GPL-3.0+ Files: debian/* Copyright: 2012 Barak A. Pearlmutter License: GPL-3.0+ License: GPL-3.0+ This program 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 3 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 3 can be found in "/usr/share/common-licenses/GPL-3". debian/compat0000664000000000000000000000000212235715525010375 0ustar 9 debian/emacsen-remove0000664000000000000000000000076212235715525012035 0ustar #!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/expand-region-el FLAVOR=$1 PACKAGE=expand-region-el 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/share/info/expand-region-el.info.gz fi echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} fi debian/rules0000775000000000000000000000025212235715525010256 0ustar #!/usr/bin/make -f %: dh $@ override_dh_install: dh_install -rm --verbose debian/expand-region-el/usr/share/emacs/site-lisp/expand-region-el/sml-mode-expansions.el debian/watch0000664000000000000000000000020012235715525010220 0ustar version=3 http://githubredir.debian.net/github/magnars/expand-region.el \ /github/magnars/expand-region.el/([0-9.]*)\.tar\.gz