Emacs: removed xclip from repo, using AUR version instead.

master
Pierre Neidhardt 2013-03-08 22:31:01 +01:00
parent 889e28d077
commit 5e37c7592f
4 changed files with 55 additions and 185 deletions

View File

@ -1,112 +0,0 @@
;;; xclip.el --- Emacs Interface to XClip
;; Copyright (C) 2007 Leo Shidai Liu
;; Author: Leo Shidai Liu <shidai.liu@gmail.com>
;; Keywords: convenience, tools
;; Created: 2007-12-30
;; $Id: xclip.el,v 0.9 2008/02/10 11:12:56 leo Exp $
;; This file 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, or (at your option)
;; any later version.
;; This file 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 GNU Emacs; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;;; Commentary:
;; This code provides an Emacs interface to the tool with the same
;; name on http://people.debian.org/~kims/xclip/.
;;; Code:
(defvar xclip-program (executable-find "xclip")
"Name of XClip program tool.")
(defvar xclip-select-enable-clipboard t
"Non-nil means cutting and pasting uses the clipboard.
This is in addition to, but in preference to, the primary selection.")
(defvar xclip-last-selected-text-clipboard nil
"The value of the CLIPBOARD X selection from xclip.")
(defvar xclip-last-selected-text-primary nil
"The value of the PRIMARY X selection from xclip.")
(defun xclip-set-selection (type data)
"TYPE is a symbol: primary, secondary and clipboard.
See `x-set-selection'."
(when (and xclip-program (getenv "DISPLAY"))
(let* ((process-connection-type nil)
(proc (start-process "xclip" nil "xclip"
"-selection" (symbol-name type))))
(process-send-string proc data)
(process-send-eof proc))))
(defun xclip-select-text (text &optional push)
"See `x-select-text'."
(xclip-set-selection 'primary text)
(setq xclip-last-selected-text-primary text)
(when xclip-select-enable-clipboard
(xclip-set-selection 'clipboard text)
(setq xclip-last-selected-text-clipboard text)))
(defun xclip-selection-value ()
"See `x-cut-buffer-or-selection-value'."
(when (and xclip-program (getenv "DISPLAY"))
(let (clip-text primary-text)
(when xclip-select-enable-clipboard
(setq clip-text (shell-command-to-string "xclip -o -selection clipboard"))
(setq clip-text
(cond ;; check clipboard selection
((or (not clip-text) (string= clip-text ""))
(setq xclip-last-selected-text-primary nil))
((eq clip-text xclip-last-selected-text-clipboard) nil)
((string= clip-text xclip-last-selected-text-clipboard)
;; Record the newer string,
;; so subsequent calls can use the `eq' test.
(setq xclip-last-selected-text-clipboard clip-text)
nil)
(t (setq xclip-last-selected-text-clipboard clip-text)))))
(setq primary-text (shell-command-to-string "xclip -o"))
(setq primary-text
(cond ;; check primary selection
((or (not primary-text) (string= primary-text ""))
(setq xclip-last-selected-text-primary nil))
((eq primary-text xclip-last-selected-text-primary) nil)
((string= primary-text xclip-last-selected-text-primary)
;; Record the newer string,
;; so subsequent calls can use the `eq' test.
(setq xclip-last-selected-text-primary primary-text)
nil)
(t (setq xclip-last-selected-text-primary primary-text))))
(or clip-text primary-text))))
;;;###autoload
(defun turn-on-xclip ()
(interactive)
(setq interprogram-cut-function 'xclip-select-text)
(setq interprogram-paste-function 'xclip-selection-value))
;;;###autoload
(defun turn-off-xclip ()
(interactive)
(setq interprogram-cut-function nil)
(setq interprogram-paste-function nil))
(add-hook 'terminal-init-xterm-hook 'turn-on-xclip)
(provide 'xclip)
;;; xclip.el ends here

View File

@ -1,27 +1,26 @@
awesome-git awesome-git
cblas
dropbox dropbox
dropbox-cli dropbox-cli
eduke32 eduke32
eduke32-dukeplus eduke32-dukeplus
emacs-glsl-mode
emacs-mediawiki-bzr emacs-mediawiki-bzr
emacs-xclip
emacs-yasnippet emacs-yasnippet
epsxe
epsxe-plugin-gpu-mesagl
epsxe-plugin-gpu-xgl2
epsxe-plugin-spu-alsa
fortune-mod-tbbt fortune-mod-tbbt
gens-gs gens-gs
google-talkplugin google-talkplugin
libimago2-svn
movgrab movgrab
mutt-android-patch mutt-sidebar
package-query package-query
pacman-color pacman-color
pandoc
rxvt-unicode-patched rxvt-unicode-patched
slowmovideo-git
supermeatboy supermeatboy
textadept-latest-stable
trash-cli trash-cli
wikiex wikiex
wine-mono wine-1.2
worldofgoo worldofgoo
yaourt yaourt

View File

@ -7,7 +7,6 @@ apvlv
aspell-en aspell-en
aspell-fr aspell-fr
astyle astyle
ati-dri
atool atool
at-spi2-atk at-spi2-atk
at-spi2-core at-spi2-core
@ -17,8 +16,12 @@ automake
awesome-git awesome-git
bash bash
bison bison
blas
bzip2 bzip2
calc calc
catalyst-dkms
catalyst-utils
cblas
ccrypt ccrypt
cdrtools cdrtools
chrpath chrpath
@ -36,6 +39,7 @@ dhcpcd
diffutils diffutils
django django
djvulibre djvulibre
dosbox
dosfstools dosfstools
driconf driconf
dropbox dropbox
@ -44,14 +48,12 @@ dwb
e2fsprogs e2fsprogs
eduke32 eduke32
eduke32-dukeplus eduke32-dukeplus
emacs-glsl-mode
emacs-lua-mode emacs-lua-mode
emacs-mediawiki-bzr emacs-mediawiki-bzr
emacs-nox emacs-nox
emacs-xclip
emacs-yasnippet emacs-yasnippet
epsxe
epsxe-plugin-gpu-mesagl
epsxe-plugin-gpu-xgl2
epsxe-plugin-spu-alsa
fakeroot fakeroot
feh feh
file file
@ -71,13 +73,14 @@ gettext
ghostscript ghostscript
gimp gimp
git git
glfw
glibc glibc
gnumeric
gnuplot gnuplot
google-talkplugin google-talkplugin
gparted gparted
grep grep
gsfonts gsfonts
gst-libav
gstreamer0.10-bad-plugins gstreamer0.10-bad-plugins
gstreamer0.10-base-plugins gstreamer0.10-base-plugins
gstreamer0.10-good-plugins gstreamer0.10-good-plugins
@ -100,16 +103,16 @@ iotop
iproute2 iproute2
iptables iptables
iputils iputils
ipython2
jfsutils jfsutils
kmod kmod
lapack
latex2rtf latex2rtf
less less
lesspipe lesspipe
lib32-alsa-lib lib32-alsa-lib
lib32-alsa-oss lib32-alsa-oss
lib32-alsa-plugins lib32-alsa-plugins
lib32-ati-dri lib32-catalyst-utils
lib32-libao lib32-libao
lib32-libpulse lib32-libpulse
lib32-libsamplerate lib32-libsamplerate
@ -121,6 +124,7 @@ lib32-sdl
libcdio-paranoia libcdio-paranoia
libev libev
libftdi libftdi
libimago2-svn
libirman libirman
libmediainfo libmediainfo
libspectre libspectre
@ -133,7 +137,6 @@ libx86
libxdg-basedir libxdg-basedir
libzen libzen
licenses licenses
lighttpd
linux linux
linux-firmware linux-firmware
linux-lts linux-lts
@ -158,7 +161,7 @@ mp3info
mpg123 mpg123
mplayer2 mplayer2
mtools mtools
mutt-android-patch mutt-sidebar
namcap namcap
nano nano
nawk nawk
@ -168,9 +171,9 @@ nethogs
net-tools net-tools
ngrep ngrep
ntfs-3g ntfs-3g
ntfsprogs
numlockx numlockx
odt2txt odt2txt
opengl-man-pages
openssh openssh
oss oss
p7zip p7zip
@ -178,7 +181,6 @@ pacman
pacman-color pacman-color
pacman-mirrorlist pacman-mirrorlist
pam pam
pandoc
pari pari
patch patch
pciutils pciutils
@ -195,9 +197,7 @@ procps-ng
psmisc psmisc
pwgen pwgen
python2-dbus python2-dbus
python2-flup
python2-gobject python2-gobject
python2-south
ranger ranger
reiserfsprogs reiserfsprogs
rtorrent rtorrent
@ -207,8 +207,8 @@ sdlmame
sed sed
shadow shadow
slock slock
slowmovideo-git
splint splint
steam
strace strace
subdl subdl
sudo sudo
@ -216,24 +216,20 @@ supermeatboy
sxiv sxiv
sysfsutils sysfsutils
syslinux syslinux
syslog-ng
sysstat sysstat
systemd systemd
systemd-sysvcompat systemd-sysvcompat
sysvbanner sysvbanner
tar tar
task
tcc tcc
tcsh tcsh
texi2html texi2html
texinfo texinfo
tig textadept-latest-stable
trash-cli trash-cli
tree tree
ttf-dejavu ttf-dejavu
ttf-droid
ttf-freefont ttf-freefont
ttf-inconsolata
ttf-liberation ttf-liberation
udiskie udiskie
unrar unrar
@ -251,8 +247,7 @@ w3m
wget wget
which which
wikiex wikiex
wine_gecko wine-1.2
wine-mono
winetricks winetricks
wipe wipe
wmname wmname
@ -262,7 +257,6 @@ wv
xchm xchm
xclip xclip
xdg-utils xdg-utils
xf86-video-ati
xf86-video-vesa xf86-video-vesa
xfsprogs xfsprogs
xmlrpc-c xmlrpc-c

View File

@ -15,7 +15,6 @@ aspell
aspell-en aspell-en
aspell-fr aspell-fr
astyle astyle
ati-dri
atk atk
atkmm atkmm
atool atool
@ -30,12 +29,15 @@ bash
bc bc
binutils-multilib binutils-multilib
bison bison
blas
bzip2 bzip2
cabextract cabextract
ca-certificates ca-certificates
cairo cairo
cairomm cairomm
calc calc
catalyst-dkms
catalyst-utils
ccrypt ccrypt
cdparanoia cdparanoia
cdrtools cdrtools
@ -43,7 +45,6 @@ chmlib
chrpath chrpath
clisp clisp
cloog cloog
cmake
cmus cmus
colord colord
compositeproto compositeproto
@ -72,6 +73,7 @@ django
djvulibre djvulibre
dkms dkms
dnssec-anchors dnssec-anchors
dosbox
dosfstools dosfstools
driconf driconf
dwb dwb
@ -81,7 +83,6 @@ emacs-lua-mode
emacs-nox emacs-nox
enca enca
enchant enchant
eventlog
expat expat
faac faac
faad2 faad2
@ -129,19 +130,17 @@ girara-common
girara-gtk2 girara-gtk2
git git
glew glew
glib glfw
glib2 glib2
glibc glibc
glibmm glibmm
glib-networking glib-networking
glu glu
gmp gmp
gnumeric
gnupg gnupg
gnuplot gnuplot
gnutls gnutls
gobject-introspection gobject-introspection
goffice
gparted gparted
gpgme gpgme
gpm gpm
@ -152,6 +151,9 @@ gsettings-desktop-schemas
gsfonts gsfonts
gsl gsl
gsm gsm
gst-libav
gst-plugins-base-libs
gstreamer
gstreamer0.10 gstreamer0.10
gstreamer0.10-bad gstreamer0.10-bad
gstreamer0.10-bad-plugins gstreamer0.10-bad-plugins
@ -161,10 +163,8 @@ gstreamer0.10-good
gstreamer0.10-good-plugins gstreamer0.10-good-plugins
gstreamer0.10-ugly gstreamer0.10-ugly
gstreamer0.10-ugly-plugins gstreamer0.10-ugly-plugins
gtk
gtk2 gtk2
gtk3 gtk3
gtkglext
gtkmm gtkmm
gtkspell gtkspell
gtk-update-icon-cache gtk-update-icon-cache
@ -186,19 +186,16 @@ hwids
iana-etc iana-etc
icu icu
ifplugd ifplugd
ilmbase
imagemagick imagemagick
imlib2 imlib2
indent indent
inetutils inetutils
inkscape inkscape
inputproto inputproto
intel-tbb
iotop iotop
iproute2 iproute2
iptables iptables
iputils iputils
ipython2
isl isl
jack jack
jasper jasper
@ -208,11 +205,11 @@ json-c
kbd kbd
kbproto kbproto
keyutils keyutils
khrplatform-devel
kmod kmod
krb5 krb5
ladspa ladspa
lame lame
lapack
latex2rtf latex2rtf
lcms lcms
lcms2 lcms2
@ -223,11 +220,11 @@ lib32-acl
lib32-alsa-lib lib32-alsa-lib
lib32-alsa-oss lib32-alsa-oss
lib32-alsa-plugins lib32-alsa-plugins
lib32-ati-dri
lib32-atk lib32-atk
lib32-attr lib32-attr
lib32-bzip2 lib32-bzip2
lib32-cairo lib32-cairo
lib32-catalyst-utils
lib32-dbus-core lib32-dbus-core
lib32-e2fsprogs lib32-e2fsprogs
lib32-expat lib32-expat
@ -237,25 +234,27 @@ lib32-freetype2
lib32-gcc-libs lib32-gcc-libs
lib32-gdk-pixbuf2 lib32-gdk-pixbuf2
lib32-gettext lib32-gettext
lib32-glib lib32-giflib
lib32-glib2 lib32-glib2
lib32-glibc lib32-glibc
lib32-glu lib32-glu
lib32-gtk lib32-gmp
lib32-gnutls
lib32-gtk2 lib32-gtk2
lib32-harfbuzz lib32-harfbuzz
lib32-icu lib32-icu
lib32-json-c lib32-json-c
lib32-keyutils lib32-keyutils
lib32-krb5 lib32-krb5
lib32-lcms
lib32-libao lib32-libao
lib32-libasyncns lib32-libasyncns
lib32-libcap lib32-libcap
lib32-libcups lib32-libcups
lib32-libdrm lib32-libdrm
lib32-libffi lib32-libffi
lib32-libgl lib32-libgcrypt
lib32-libglapi lib32-libgpg-error
lib32-libice lib32-libice
lib32-libjpeg-turbo lib32-libjpeg-turbo
lib32-libldap lib32-libldap
@ -267,6 +266,7 @@ lib32-libpulse
lib32-libsamplerate lib32-libsamplerate
lib32-libsm lib32-libsm
lib32-libsndfile lib32-libsndfile
lib32-libtasn1
lib32-libtiff lib32-libtiff
lib32-libtxc_dxtn lib32-libtxc_dxtn
lib32-libvorbis lib32-libvorbis
@ -283,6 +283,7 @@ lib32-libxft
lib32-libxi lib32-libxi
lib32-libxinerama lib32-libxinerama
lib32-libxml2 lib32-libxml2
lib32-libxmu
lib32-libxrandr lib32-libxrandr
lib32-libxrender lib32-libxrender
lib32-libxt lib32-libxt
@ -291,14 +292,19 @@ lib32-libxxf86vm
lib32-mesa lib32-mesa
lib32-mpg123 lib32-mpg123
lib32-ncurses lib32-ncurses
lib32-nettle
lib32-openal lib32-openal
lib32-openssl lib32-openssl
lib32-p11-kit
lib32-pango lib32-pango
lib32-pcre lib32-pcre
lib32-pixman lib32-pixman
lib32-readline lib32-readline
lib32-sdl lib32-sdl
lib32-systemd
lib32-util-linux lib32-util-linux
lib32-v4l-utils
lib32-xz
lib32-zlib lib32-zlib
libao libao
libarchive libarchive
@ -314,7 +320,6 @@ libcdaudio
libcddb libcddb
libcdio libcdio
libcdio-paranoia libcdio-paranoia
libcl
libcroco libcroco
libcups libcups
libdaemon libdaemon
@ -327,18 +332,14 @@ libdvdcss
libdvdnav libdvdnav
libdvdread libdvdread
libedit libedit
libegl
libev libev
libevent libevent
libexif libexif
libffi libffi
libfontenc libfontenc
libftdi libftdi
libgbm
libgcrypt libgcrypt
libgl
libglade libglade
libglapi
libgme libgme
libgnome-keyring libgnome-keyring
libgpg-error libgpg-error
@ -426,6 +427,7 @@ libxfont
libxft libxft
libxi libxi
libxinerama libxinerama
libxkbcommon
libxkbfile libxkbfile
libxml2 libxml2
libxmu libxmu
@ -437,12 +439,10 @@ libxss
libxt libxt
libxtst libxtst
libxv libxv
libxvmc
libxxf86dga libxxf86dga
libxxf86vm libxxf86vm
libzen libzen
licenses licenses
lighttpd
linux linux
linux-api-headers linux-api-headers
linux-firmware linux-firmware
@ -485,7 +485,6 @@ mtools
musicbrainz musicbrainz
namcap namcap
nano nano
nasm
nawk nawk
ncdu ncdu
ncurses ncurses
@ -500,14 +499,11 @@ ngrep
nspr nspr
nss nss
ntfs-3g ntfs-3g
ntfsprogs
numlockx numlockx
nvidia-cg-toolkit
odt2txt odt2txt
openal openal
opencore-amr opencore-amr
opencv opengl-man-pages
openexr
openjpeg openjpeg
openssh openssh
openssl openssl
@ -522,7 +518,6 @@ pam
pambase pambase
pango pango
pangomm pangomm
pangox-compat
pari pari
parted parted
patch patch
@ -546,6 +541,7 @@ poppler-glib
popt popt
ppl ppl
ppp ppp
prelink
procps-ng procps-ng
psmisc psmisc
pth pth
@ -560,18 +556,15 @@ python2-beaker
python2-cairo python2-cairo
python2-dbus python2-dbus
python2-distribute python2-distribute
python2-flup
python2-gobject python2-gobject
python2-gobject2 python2-gobject2
python2-mako python2-mako
python2-markupsafe python2-markupsafe
python2-notify python2-notify
python2-south
python-dbus-common python-dbus-common
python-pyelftools python-pyelftools
pyxml pyxml
qpdf qpdf
qt
randrproto randrproto
ranger ranger
raptor raptor
@ -590,6 +583,8 @@ scrot
sdl sdl
sdlmame sdlmame
sdl_mixer sdl_mixer
sdl_net
sdl_sound
sdl_ttf sdl_ttf
sed sed
sg3_utils sg3_utils
@ -603,13 +598,13 @@ speex
splint splint
sqlite sqlite
startup-notification startup-notification
steam
strace strace
subdl subdl
sudo sudo
sxiv sxiv
sysfsutils sysfsutils
syslinux syslinux
syslog-ng
sysstat sysstat
systemd systemd
systemd-sysvcompat systemd-sysvcompat
@ -617,17 +612,13 @@ sysvbanner
sysvinit-tools sysvinit-tools
taglib taglib
tar tar
task
tcc tcc
tcsh tcsh
texi2html texi2html
texinfo texinfo
tig
tree tree
ttf-dejavu ttf-dejavu
ttf-droid
ttf-freefont ttf-freefont
ttf-inconsolata
ttf-liberation ttf-liberation
tzdata tzdata
udiskie udiskie
@ -647,12 +638,11 @@ videoproto
vorbis-tools vorbis-tools
w3m w3m
wavpack wavpack
wayland
webkitgtk2 webkitgtk2
wget wget
which which
wildmidi wildmidi
wine
wine_gecko
winetricks winetricks
wipe wipe
wmname wmname
@ -671,11 +661,9 @@ xdg-utils
xextproto xextproto
xf86dgaproto xf86dgaproto
xf86-input-evdev xf86-input-evdev
xf86-video-ati
xf86-video-vesa xf86-video-vesa
xf86vidmodeproto xf86vidmodeproto
xfsprogs xfsprogs
xine-lib
xineramaproto xineramaproto
xinetd xinetd
xkeyboard-config xkeyboard-config
@ -713,6 +701,7 @@ zathura
zathura-djvu zathura-djvu
zathura-pdf-poppler zathura-pdf-poppler
zathura-ps zathura-ps
zenity
zip zip
zlib zlib
zsh zsh