Emacs: minor fixes.

master
Ambrevar 2012-11-12 21:16:41 +01:00
parent 9685218e65
commit d72b84ab4c
6 changed files with 68 additions and 12 deletions

View File

@ -178,6 +178,12 @@
file-noext file-noext
".aux " ".aux "
file-noext file-noext
".glg"
file-noext
".glo"
file-noext
".gls"
file-noext
".idx " ".idx "
file-noext file-noext
".ilg " ".ilg "
@ -197,6 +203,8 @@
".tns " ".tns "
file-noext file-noext
".toc " ".toc "
file-noext
".xdy"
) )
) )
) )
@ -243,11 +251,11 @@
;; variables: ;; variables:
;; $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $< ;; $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $<
(let ((file (file-name-nondirectory buffer-file-name))) (let ((file (file-name-nondirectory buffer-file-name)))
(format "%s -c -o %s.o %s %s %s" (format "%s -o %s %s %s %s"
(or (getenv "CC") "gcc") (or (getenv "CC") "gcc")
(file-name-sans-extension file) (file-name-sans-extension file)
(or (getenv "CPPFLAGS") "-DDEBUG=9") (or (getenv "CPPFLAGS") "-DDEBUG=9")
(or (getenv "CFLAGS") "-ansi -pedantic -Wall -Wextra -Wshadow -lm -g3 -O0") (or (getenv "CFLAGS") "-ansi -pedantic -std=c99 -Wall -Wextra -Wshadow -lm -g3 -O0")
file)))))) file))))))
;;============================================================================== ;;==============================================================================

View File

@ -5,8 +5,12 @@ emacs-mediawiki-bzr
emacs-yasnippet emacs-yasnippet
firefox-extension-video-downloadhelper firefox-extension-video-downloadhelper
fortune-mod-tbbt fortune-mod-tbbt
gitso
google-talkplugin google-talkplugin
libpng12 libpng12
linux-rt
linux-rt-docs
linux-rt-headers
movgrab movgrab
mutt-android-patch mutt-android-patch
package-query package-query

View File

@ -3,6 +3,7 @@ abs
acpi acpi
alsa-utils alsa-utils
antiword antiword
apvlv
arch-wiki-lite arch-wiki-lite
aspell-en aspell-en
aspell-fr aspell-fr
@ -22,6 +23,7 @@ calc
ccrypt ccrypt
cdrtools cdrtools
chrpath chrpath
clisp
cmus cmus
coreutils coreutils
cronie cronie
@ -32,11 +34,13 @@ cyrus-sasl
dash dash
device-mapper device-mapper
dhcpcd dhcpcd
dia
diffutils diffutils
djvulibre djvulibre
dosfstools dosfstools
dropbox dropbox
dropbox-cli dropbox-cli
dwb
e2fsprogs e2fsprogs
emacs-lua-mode emacs-lua-mode
emacs-mediawiki-bzr emacs-mediawiki-bzr
@ -64,6 +68,7 @@ ghostscript
gimp gimp
git git
gitg gitg
gitso
glibc glibc
gnumeric gnumeric
gnuplot gnuplot
@ -71,6 +76,7 @@ google-talkplugin
grep grep
gsfonts gsfonts
gstreamer0.10-ugly-plugins gstreamer0.10-ugly-plugins
guile
gzip gzip
handbrake handbrake
hdparm hdparm
@ -83,9 +89,9 @@ hunspell-fr
ifplugd ifplugd
indent indent
inetutils inetutils
initscripts
inkscape inkscape
iotop iotop
iproute2
iptables iptables
iputils iputils
jfsutils jfsutils
@ -107,6 +113,9 @@ linux
linux-firmware linux-firmware
linux-lts linux-lts
linux-manpages linux-manpages
linux-rt
linux-rt-docs
linux-rt-headers
lirc-utils lirc-utils
lm_sensors lm_sensors
logrotate logrotate
@ -129,6 +138,7 @@ movgrab
mpg123 mpg123
mplayer2 mplayer2
mtools mtools
mumble
mutt-android-patch mutt-android-patch
namcap namcap
nano nano
@ -174,7 +184,6 @@ slock
splint splint
strace strace
submarine submarine
subversion
sudo sudo
swi-prolog swi-prolog
sxiv sxiv
@ -183,8 +192,8 @@ syslinux
syslog-ng syslog-ng
sysstat sysstat
systemd systemd
systemd-sysvcompat
sysvbanner sysvbanner
sysvinit
tar tar
task task
tcc tcc

View File

@ -9,6 +9,7 @@ alsa-utils
antiword antiword
apr apr
apr-util apr-util
apvlv
archlinux-keyring archlinux-keyring
arch-wiki-lite arch-wiki-lite
aspell aspell
@ -41,6 +42,7 @@ ccrypt
cdparanoia cdparanoia
cdrtools cdrtools
chrpath chrpath
clisp
cloog cloog
cmus cmus
colord colord
@ -64,12 +66,16 @@ dconf
desktop-file-utils desktop-file-utils
device-mapper device-mapper
dhcpcd dhcpcd
dia
dialog dialog
diffutils diffutils
dirmngr dirmngr
djvulibre djvulibre
dnssec-anchors dnssec-anchors
docbook-xml
docbook-xsl
dosfstools dosfstools
dwb
e2fsprogs e2fsprogs
elfutils elfutils
emacs-lua-mode emacs-lua-mode
@ -143,6 +149,8 @@ gsettings-desktop-schemas
gsfonts gsfonts
gsl gsl
gsm gsm
gst-plugins-base-libs
gstreamer
gstreamer0.10 gstreamer0.10
gstreamer0.10-base gstreamer0.10-base
gstreamer0.10-ugly gstreamer0.10-ugly
@ -153,8 +161,10 @@ gtkmm
gtksourceview3 gtksourceview3
gtkspell gtkspell
gtk-update-icon-cache gtk-update-icon-cache
guile
gzip gzip
handbrake handbrake
harfbuzz
hdparm hdparm
heirloom-mailx heirloom-mailx
hicolor-icon-theme hicolor-icon-theme
@ -173,7 +183,6 @@ imagemagick
imlib2 imlib2
indent indent
inetutils inetutils
initscripts
inkscape inkscape
inputproto inputproto
iotop iotop
@ -185,6 +194,7 @@ iso-codes
jack jack
jasper jasper
jfsutils jfsutils
js
json-c json-c
kbd kbd
kbproto kbproto
@ -202,6 +212,7 @@ lesspipe
lib32-gcc-libs lib32-gcc-libs
lib32-glibc lib32-glibc
libarchive libarchive
libart-lgpl
libass libass
libassuan libassuan
libasyncns libasyncns
@ -271,6 +282,7 @@ libsamplerate
libsasl libsasl
libsidplay libsidplay
libsigc++ libsigc++
libsigsegv
libsm libsm
libsndfile libsndfile
libsoup libsoup
@ -290,7 +302,6 @@ libva
libvdpau libvdpau
libvorbis libvorbis
libvpx libvpx
libwebkit
libwmf libwmf
libx11 libx11
libxau libxau
@ -310,6 +321,7 @@ libxinerama
libxkbfile libxkbfile
libxml2 libxml2
libxmu libxmu
libxp
libxpm libxpm
libxrandr libxrandr
libxrender libxrender
@ -332,6 +344,7 @@ lirc-utils
lm_sensors lm_sensors
logrotate logrotate
lrzip lrzip
lsb-release
lshw lshw
lsof lsof
ltrace ltrace
@ -359,6 +372,7 @@ mpg123
mplayer2 mplayer2
mtdev mtdev
mtools mtools
mumble
namcap namcap
nano nano
nawk nawk
@ -372,6 +386,7 @@ net-tools
ngrep ngrep
nspr nspr
nss nss
nss-myhostname
ntfs-3g ntfs-3g
ntfsprogs ntfsprogs
numlockx numlockx
@ -398,6 +413,8 @@ pcre
perl perl
perl-digest-sha1 perl-digest-sha1
perl-error perl-error
perl-test-pod
perl-yaml-syck
pinentry pinentry
pixman pixman
pkg-config pkg-config
@ -412,7 +429,9 @@ popt
postgresql-libs postgresql-libs
ppl ppl
ppp ppp
printproto
procps-ng procps-ng
protobuf
psmisc psmisc
pth pth
pwgen pwgen
@ -422,16 +441,20 @@ pygobject-devel
pygtk pygtk
python python
python2 python2
python2-beaker
python2-cairo python2-cairo
python2-dbus python2-dbus
python2-distribute python2-distribute
python2-gobject2 python2-gobject2
python2-mako
python2-markupsafe
python2-notify
python-cairo python-cairo
python-dbus-common python-dbus-common
python-gobject python-gobject
python-notify
python-pyelftools python-pyelftools
qpdf qpdf
qt
randrproto randrproto
ranger ranger
readline readline
@ -467,8 +490,8 @@ syslinux
syslog-ng syslog-ng
sysstat sysstat
systemd systemd
systemd-sysvcompat
sysvbanner sysvbanner
sysvinit
sysvinit-tools sysvinit-tools
tar tar
task task
@ -477,6 +500,7 @@ tcsh
texi2html texi2html
texinfo texinfo
tig tig
tightvnc
tree tree
ttf-dejavu ttf-dejavu
ttf-droid ttf-droid
@ -501,12 +525,15 @@ vicious
videoproto videoproto
vlock vlock
w3m w3m
webkitgtk2
wget wget
which which
wipe wipe
wpa_supplicant wpa_supplicant
wv wv
wxgtk wxgtk
wxpython
x11vnc
x264 x264
xcb-proto xcb-proto
xcb-util xcb-util
@ -526,6 +553,7 @@ xfsprogs
xineramaproto xineramaproto
xkeyboard-config xkeyboard-config
xmlrpc-c xmlrpc-c
xmlto
xorg-bdftopcf xorg-bdftopcf
xorg-fonts-alias xorg-fonts-alias
xorg-fonts-encodings xorg-fonts-encodings

View File

@ -14,6 +14,7 @@ eukdate
eurosym eurosym
fancyhdr fancyhdr
geometry geometry
glossaries
graphics graphics
graphics-pln graphics-pln
hyperref hyperref
@ -44,4 +45,6 @@ was
wrapfig wrapfig
xargs xargs
xcolor xcolor
xfor
xindy
xkeyval xkeyval

View File

@ -183,7 +183,7 @@ cpuusage()
fi fi
} }
codescan () charset_scan ()
{ {
IFS=" IFS="
" "
@ -199,7 +199,7 @@ codescan ()
## Confert all 'bad' encoding to UTF-8/LF. ## Confert all 'bad' encoding to UTF-8/LF.
# #
## It will fail for encoding other than ISO-8859-1 and cp1252. ## It will fail for encoding other than ISO-8859-1 and cp1252.
utf8conv () charset_2utf8 ()
{ {
local CODING local CODING
@ -670,6 +670,9 @@ texclean ()
find "$WORKDIR" -type f \( \ find "$WORKDIR" -type f \( \
-name "*.aux" -o \ -name "*.aux" -o \
-name "*.glg" -o \
-name "*.glo" -o \
-name "*.gls" -o \
-name "*.idx" -o \ -name "*.idx" -o \
-name "*.ilg" -o \ -name "*.ilg" -o \
-name "*.ind" -o \ -name "*.ind" -o \
@ -679,7 +682,8 @@ texclean ()
-name "*.out" -o \ -name "*.out" -o \
-name "*.snm" -o \ -name "*.snm" -o \
-name "*.tns" -o \ -name "*.tns" -o \
-name "*.toc" \) \ -name "*.toc" -o \
-name "*.xdy" \) \
-print \ -print \
-delete -delete
} }