summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Elias Pipping <pipping@exherbo.org> 2013-12-30 13:35:13 +0100
committerAvatar Elias Pipping <pipping@exherbo.org> 2013-12-30 13:53:48 +0100
commitddce5766fd65db7eaff803f762364f3d908ae39b (patch)
tree8312551ff1cb49a27252e0062d7b8d99eb3b4c0d
parent4e5c1f88cbcefc1b3768cd33e4c536bfa1118a1e (diff)
downloademacs-ddce5766fd65db7eaff803f762364f3d908ae39b.tar.gz
emacs-ddce5766fd65db7eaff803f762364f3d908ae39b.tar.xz
Add app-emacs/smartscan
-rw-r--r--metadata/repository_mask.conf1
-rw-r--r--packages/app-emacs/smartscan/files/smartscan-cl.patch24
-rw-r--r--packages/app-emacs/smartscan/smartscan-scm.exheres-016
3 files changed, 41 insertions, 0 deletions
diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf
index 25345ba..fe7ffe1 100644
--- a/metadata/repository_mask.conf
+++ b/metadata/repository_mask.conf
@@ -13,6 +13,7 @@
app-emacs/gnus[~scm]
app-emacs/magit[~scm]
app-emacs/slime[~scm]
+ app-emacs/smartscan[~scm]
app-emacs/twittering-mode[~scm]
) [[
*author = [ Elias Pipping <pipping@exherbo.org> ]
diff --git a/packages/app-emacs/smartscan/files/smartscan-cl.patch b/packages/app-emacs/smartscan/files/smartscan-cl.patch
new file mode 100644
index 0000000..a422733
--- /dev/null
+++ b/packages/app-emacs/smartscan/files/smartscan-cl.patch
@@ -0,0 +1,24 @@
+Source: Elias Pipping <pipping@exherbo.org>
+Upstream: no
+Reason: incf is undefined at compile-time
+--- smartscan/smartscan.el
++++ smartscan/smartscan.el
+@@ -66,6 +66,9 @@
+
+ (provide 'smartscan)
+
++(eval-when-compile
++ (require 'cl))
++
+ (defvar smartscan-use-extended-syntax nil
+ "If t the smart symbol functionality will consider extended
+ syntax in finding matches, if such matches exist.")
+@@ -188,7 +191,7 @@
+ (goto-char (point-min)))
+ (while (search-forward
+ oldsymbol (if arg (save-excursion (end-of-defun) (point)) nil) t nil)
+- (replace-match newsymbol nil t) (incf counter 1))
++ (replace-match newsymbol nil t) (cl-incf counter 1))
+ (message "Smart Scan replaced %d matches" counter))))
+
+
diff --git a/packages/app-emacs/smartscan/smartscan-scm.exheres-0 b/packages/app-emacs/smartscan/smartscan-scm.exheres-0
new file mode 100644
index 0000000..28cd61d
--- /dev/null
+++ b/packages/app-emacs/smartscan/smartscan-scm.exheres-0
@@ -0,0 +1,16 @@
+# Copyright 2013 Elias Pipping <pipping@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require \
+ github [ user=mickeynp pn=smart-scan ] \
+ elisp [ generate_autoloads=true install_stub=true ]
+
+SUMMARY="Jumps between other symbols found at point in Emacs"
+
+LICENCES="GPL-3"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS=""
+
+DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PN}-cl.patch )
+