]> code.delx.au - gnu-emacs/commitdiff
Merge from emacs-23
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 14 Jan 2011 17:18:41 +0000 (12:18 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 14 Jan 2011 17:18:41 +0000 (12:18 -0500)
1170 files changed:
1  2 
INSTALL
README
admin/ChangeLog
admin/admin.el
admin/notes/copyright
admin/notes/font-backend
admin/quick-install-emacs
admin/unidata/Makefile.in
admin/unidata/makefile.w32-in
config.bat
configure.in
doc/emacs/ChangeLog
doc/emacs/Makefile.in
doc/emacs/ack.texi
doc/emacs/basic.texi
doc/emacs/building.texi
doc/emacs/cmdargs.texi
doc/emacs/dired.texi
doc/emacs/display.texi
doc/emacs/emacs.texi
doc/emacs/files.texi
doc/emacs/frames.texi
doc/emacs/killing.texi
doc/emacs/maintaining.texi
doc/emacs/makefile.w32-in
doc/emacs/misc.texi
doc/emacs/msdog.texi
doc/emacs/mule.texi
doc/emacs/regs.texi
doc/emacs/rmail.texi
doc/emacs/search.texi
doc/emacs/xresources.texi
doc/lispintro/ChangeLog
doc/lispintro/Makefile.in
doc/lispintro/emacs-lisp-intro.texi
doc/lispref/Makefile.in
doc/lispref/anti.texi
doc/lispref/buffers.texi
doc/lispref/commands.texi
doc/lispref/compile.texi
doc/lispref/display.texi
doc/lispref/elisp.texi
doc/lispref/files.texi
doc/lispref/frames.texi
doc/lispref/help.texi
doc/lispref/internals.texi
doc/lispref/keymaps.texi
doc/lispref/loading.texi
doc/lispref/locals.texi
doc/lispref/makefile.w32-in
doc/lispref/modes.texi
doc/lispref/nonascii.texi
doc/lispref/os.texi
doc/lispref/processes.texi
doc/lispref/searching.texi
doc/lispref/syntax.texi
doc/lispref/text.texi
doc/lispref/tips.texi
doc/lispref/vol1.texi
doc/lispref/vol2.texi
doc/man/ChangeLog
doc/man/emacs.1
doc/man/etags.1
doc/misc/ChangeLog
doc/misc/Makefile.in
doc/misc/auth.texi
doc/misc/calc.texi
doc/misc/cc-mode.texi
doc/misc/cl.texi
doc/misc/ediff.texi
doc/misc/emacs-mime.texi
doc/misc/epa.texi
doc/misc/eshell.texi
doc/misc/faq.texi
doc/misc/gnus-coding.texi
doc/misc/gnus-faq.texi
doc/misc/gnus-news.el
doc/misc/gnus-news.texi
doc/misc/gnus.texi
doc/misc/makefile.w32-in
doc/misc/message.texi
doc/misc/org.texi
doc/misc/pgg.texi
doc/misc/sasl.texi
doc/misc/sieve.texi
doc/misc/tramp.texi
doc/misc/trampver.texi
doc/misc/url.texi
doc/misc/woman.texi
etc/ChangeLog
etc/DEBUG
etc/GNUS-NEWS
etc/HELLO
etc/MACHINES
etc/NEWS.23
etc/TODO
etc/compilation.txt
etc/images/README
etc/refcards/gnus-refcard.tex
etc/refcards/orgcard.tex
etc/schema/schemas.xml
etc/tutorials/TUTORIAL
leim/ChangeLog
lib-src/emacsclient.c
lib-src/fakemail.c
lib-src/hexl.c
lib-src/make-docfile.c
lib-src/makefile.w32-in
lib-src/movemail.c
lib-src/ntlib.c
lib-src/ntlib.h
lib-src/pop.c
lib-src/pop.h
lib-src/profile.c
lib-src/test-distrib.c
lib-src/update-game-score.c
lisp/ChangeLog
lisp/ChangeLog.1
lisp/ChangeLog.10
lisp/ChangeLog.11
lisp/ChangeLog.12
lisp/ChangeLog.13
lisp/ChangeLog.14
lisp/ChangeLog.2
lisp/ChangeLog.3
lisp/ChangeLog.5
lisp/ChangeLog.6
lisp/ChangeLog.7
lisp/ChangeLog.8
lisp/ChangeLog.9
lisp/abbrev.el
lisp/abbrevlist.el
lisp/allout.el
lisp/ansi-color.el
lisp/apropos.el
lisp/arc-mode.el
lisp/array.el
lisp/autoinsert.el
lisp/avoid.el
lisp/bindings.el
lisp/bookmark.el
lisp/bs.el
lisp/buff-menu.el
lisp/button.el
lisp/calc/README
lisp/calc/calc-aent.el
lisp/calc/calc-alg.el
lisp/calc/calc-bin.el
lisp/calc/calc-ext.el
lisp/calc/calc-frac.el
lisp/calc/calc-graph.el
lisp/calc/calc-help.el
lisp/calc/calc-incom.el
lisp/calc/calc-keypd.el
lisp/calc/calc-lang.el
lisp/calc/calc-misc.el
lisp/calc/calc-poly.el
lisp/calc/calc-prog.el
lisp/calc/calc-sel.el
lisp/calc/calc-store.el
lisp/calc/calc-trail.el
lisp/calc/calc-units.el
lisp/calc/calc-vec.el
lisp/calc/calc-yank.el
lisp/calc/calc.el
lisp/calc/calcalg2.el
lisp/calc/calccomp.el
lisp/calendar/appt.el
lisp/calendar/cal-bahai.el
lisp/calendar/cal-china.el
lisp/calendar/cal-coptic.el
lisp/calendar/cal-dst.el
lisp/calendar/cal-french.el
lisp/calendar/cal-hebrew.el
lisp/calendar/cal-html.el
lisp/calendar/cal-islam.el
lisp/calendar/cal-iso.el
lisp/calendar/cal-julian.el
lisp/calendar/cal-mayan.el
lisp/calendar/cal-menu.el
lisp/calendar/cal-move.el
lisp/calendar/cal-persia.el
lisp/calendar/cal-tex.el
lisp/calendar/cal-x.el
lisp/calendar/holidays.el
lisp/calendar/icalendar.el
lisp/calendar/lunar.el
lisp/calendar/parse-time.el
lisp/calendar/solar.el
lisp/calendar/time-date.el
lisp/calendar/timeclock.el
lisp/calendar/todo-mode.el
lisp/case-table.el
lisp/cedet/ChangeLog
lisp/cedet/cedet-cscope.el
lisp/cedet/cedet-files.el
lisp/cedet/cedet-global.el
lisp/cedet/cedet-idutils.el
lisp/cedet/cedet.el
lisp/cedet/data-debug.el
lisp/cedet/ede.el
lisp/cedet/ede/autoconf-edit.el
lisp/cedet/ede/dired.el
lisp/cedet/ede/pmake.el
lisp/cedet/ede/proj-elisp.el
lisp/cedet/ede/project-am.el
lisp/cedet/ede/speedbar.el
lisp/cedet/semantic/bovine/c.el
lisp/cedet/semantic/decorate/mode.el
lisp/cedet/semantic/ede-grammar.el
lisp/cedet/semantic/grammar.el
lisp/cedet/semantic/idle.el
lisp/cedet/semantic/lex.el
lisp/cedet/semantic/mru-bookmark.el
lisp/cedet/semantic/symref.el
lisp/cedet/semantic/symref/cscope.el
lisp/cedet/semantic/tag-file.el
lisp/cedet/semantic/util-modes.el
lisp/cedet/semantic/wisent/comp.el
lisp/cedet/srecode.el
lisp/cedet/srecode/fields.el
lisp/cedet/srecode/mode.el
lisp/comint.el
lisp/composite.el
lisp/cus-dep.el
lisp/cus-edit.el
lisp/cus-face.el
lisp/cus-start.el
lisp/cus-theme.el
lisp/custom.el
lisp/descr-text.el
lisp/desktop.el
lisp/dframe.el
lisp/dired-aux.el
lisp/dired-x.el
lisp/dired.el
lisp/dirtrack.el
lisp/disp-table.el
lisp/dnd.el
lisp/doc-view.el
lisp/dos-fns.el
lisp/dos-vars.el
lisp/dos-w32.el
lisp/dynamic-setting.el
lisp/ebuff-menu.el
lisp/edmacro.el
lisp/ehelp.el
lisp/electric.el
lisp/emacs-lisp/advice.el
lisp/emacs-lisp/authors.el
lisp/emacs-lisp/autoload.el
lisp/emacs-lisp/backquote.el
lisp/emacs-lisp/byte-opt.el
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/checkdoc.el
lisp/emacs-lisp/cl-extra.el
lisp/emacs-lisp/cl-indent.el
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/cl-seq.el
lisp/emacs-lisp/cl-specs.el
lisp/emacs-lisp/cl.el
lisp/emacs-lisp/copyright.el
lisp/emacs-lisp/debug.el
lisp/emacs-lisp/derived.el
lisp/emacs-lisp/easy-mmode.el
lisp/emacs-lisp/edebug.el
lisp/emacs-lisp/eieio-base.el
lisp/emacs-lisp/eieio-comp.el
lisp/emacs-lisp/eieio-custom.el
lisp/emacs-lisp/eieio-datadebug.el
lisp/emacs-lisp/eieio-opt.el
lisp/emacs-lisp/eieio-speedbar.el
lisp/emacs-lisp/eieio.el
lisp/emacs-lisp/eldoc.el
lisp/emacs-lisp/elint.el
lisp/emacs-lisp/find-func.el
lisp/emacs-lisp/find-gc.el
lisp/emacs-lisp/float-sup.el
lisp/emacs-lisp/generic.el
lisp/emacs-lisp/helper.el
lisp/emacs-lisp/lisp-mnt.el
lisp/emacs-lisp/lisp-mode.el
lisp/emacs-lisp/lisp.el
lisp/emacs-lisp/macroexp.el
lisp/emacs-lisp/re-builder.el
lisp/emacs-lisp/regexp-opt.el
lisp/emacs-lisp/shadow.el
lisp/emacs-lisp/syntax.el
lisp/emacs-lisp/tcover-ses.el
lisp/emacs-lisp/tcover-unsafep.el
lisp/emacs-lisp/timer.el
lisp/emacs-lisp/unsafep.el
lisp/emacs-lisp/warnings.el
lisp/emulation/crisp.el
lisp/emulation/cua-base.el
lisp/emulation/cua-gmrk.el
lisp/emulation/cua-rect.el
lisp/emulation/edt-lk201.el
lisp/emulation/edt-mapper.el
lisp/emulation/edt-pc.el
lisp/emulation/edt-vt100.el
lisp/emulation/edt.el
lisp/emulation/pc-select.el
lisp/emulation/tpu-edt.el
lisp/emulation/tpu-extras.el
lisp/emulation/tpu-mapper.el
lisp/emulation/vip.el
lisp/emulation/viper-cmd.el
lisp/emulation/viper-ex.el
lisp/emulation/viper-init.el
lisp/emulation/viper-keym.el
lisp/emulation/viper-macs.el
lisp/emulation/viper-mous.el
lisp/emulation/viper-util.el
lisp/emulation/viper.el
lisp/emulation/ws-mode.el
lisp/env.el
lisp/epa-dired.el
lisp/epa-file.el
lisp/epa-hook.el
lisp/epa-mail.el
lisp/epa.el
lisp/epg-config.el
lisp/epg.el
lisp/erc/ChangeLog.03
lisp/erc/ChangeLog.04
lisp/erc/ChangeLog.06
lisp/erc/erc-backend.el
lisp/erc/erc-join.el
lisp/erc/erc-lang.el
lisp/erc/erc-list.el
lisp/eshell/em-alias.el
lisp/eshell/em-banner.el
lisp/eshell/em-basic.el
lisp/eshell/em-cmpl.el
lisp/eshell/em-dirs.el
lisp/eshell/em-glob.el
lisp/eshell/em-hist.el
lisp/eshell/em-ls.el
lisp/eshell/em-pred.el
lisp/eshell/em-prompt.el
lisp/eshell/em-rebind.el
lisp/eshell/em-script.el
lisp/eshell/em-smart.el
lisp/eshell/em-term.el
lisp/eshell/em-unix.el
lisp/eshell/esh-arg.el
lisp/eshell/esh-cmd.el
lisp/eshell/esh-ext.el
lisp/eshell/esh-io.el
lisp/eshell/esh-mode.el
lisp/eshell/esh-opt.el
lisp/eshell/esh-proc.el
lisp/eshell/esh-test.el
lisp/eshell/esh-util.el
lisp/eshell/esh-var.el
lisp/eshell/eshell.el
lisp/expand.el
lisp/face-remap.el
lisp/facemenu.el
lisp/faces.el
lisp/filecache.el
lisp/files-x.el
lisp/filesets.el
lisp/find-dired.el
lisp/finder.el
lisp/foldout.el
lisp/font-core.el
lisp/font-lock.el
lisp/format-spec.el
lisp/format.el
lisp/forms.el
lisp/frame.el
lisp/fringe.el
lisp/generic-x.el
lisp/gnus/ChangeLog
lisp/gnus/ChangeLog.1
lisp/gnus/ChangeLog.2
lisp/gnus/canlock.el
lisp/gnus/compface.el
lisp/gnus/deuglify.el
lisp/gnus/ecomplete.el
lisp/gnus/flow-fill.el
lisp/gnus/gmm-utils.el
lisp/gnus/gnus-agent.el
lisp/gnus/gnus-async.el
lisp/gnus/gnus-bcklg.el
lisp/gnus/gnus-bookmark.el
lisp/gnus/gnus-cache.el
lisp/gnus/gnus-cite.el
lisp/gnus/gnus-cus.el
lisp/gnus/gnus-delay.el
lisp/gnus/gnus-demon.el
lisp/gnus/gnus-diary.el
lisp/gnus/gnus-dired.el
lisp/gnus/gnus-draft.el
lisp/gnus/gnus-dup.el
lisp/gnus/gnus-eform.el
lisp/gnus/gnus-ems.el
lisp/gnus/gnus-fun.el
lisp/gnus/gnus-kill.el
lisp/gnus/gnus-logic.el
lisp/gnus/gnus-mh.el
lisp/gnus/gnus-ml.el
lisp/gnus/gnus-mlspl.el
lisp/gnus/gnus-picon.el
lisp/gnus/gnus-range.el
lisp/gnus/gnus-registry.el
lisp/gnus/gnus-salt.el
lisp/gnus/gnus-score.el
lisp/gnus/gnus-setup.el
lisp/gnus/gnus-sieve.el
lisp/gnus/gnus-spec.el
lisp/gnus/gnus-srvr.el
lisp/gnus/gnus-start.el
lisp/gnus/gnus-sum.el
lisp/gnus/gnus-topic.el
lisp/gnus/gnus-undo.el
lisp/gnus/gnus-util.el
lisp/gnus/gnus-uu.el
lisp/gnus/gnus-vm.el
lisp/gnus/gnus-win.el
lisp/gnus/gnus.el
lisp/gnus/html2text.el
lisp/gnus/ietf-drums.el
lisp/gnus/legacy-gnus-agent.el
lisp/gnus/mail-parse.el
lisp/gnus/mail-prsvr.el
lisp/gnus/mail-source.el
lisp/gnus/mailcap.el
lisp/gnus/message.el
lisp/gnus/messcompat.el
lisp/gnus/mm-bodies.el
lisp/gnus/mm-decode.el
lisp/gnus/mm-encode.el
lisp/gnus/mm-extern.el
lisp/gnus/mm-partial.el
lisp/gnus/mm-url.el
lisp/gnus/mm-util.el
lisp/gnus/mm-uu.el
lisp/gnus/mml-sec.el
lisp/gnus/mml-smime.el
lisp/gnus/mml.el
lisp/gnus/mml1991.el
lisp/gnus/mml2015.el
lisp/gnus/nnagent.el
lisp/gnus/nnbabyl.el
lisp/gnus/nndiary.el
lisp/gnus/nndir.el
lisp/gnus/nndoc.el
lisp/gnus/nndraft.el
lisp/gnus/nneething.el
lisp/gnus/nnfolder.el
lisp/gnus/nngateway.el
lisp/gnus/nnheader.el
lisp/gnus/nnir.el
lisp/gnus/nnmail.el
lisp/gnus/nnmairix.el
lisp/gnus/nnmbox.el
lisp/gnus/nnmh.el
lisp/gnus/nnoo.el
lisp/gnus/nnrss.el
lisp/gnus/nnspool.el
lisp/gnus/nntp.el
lisp/gnus/nnvirtual.el
lisp/gnus/nnweb.el
lisp/gnus/pop3.el
lisp/gnus/qp.el
lisp/gnus/rfc1843.el
lisp/gnus/rfc2045.el
lisp/gnus/rfc2047.el
lisp/gnus/rfc2104.el
lisp/gnus/rfc2231.el
lisp/gnus/score-mode.el
lisp/gnus/sieve-manage.el
lisp/gnus/sieve-mode.el
lisp/gnus/sieve.el
lisp/gnus/smiley.el
lisp/gnus/smime.el
lisp/gnus/spam-report.el
lisp/gnus/spam-stat.el
lisp/gnus/spam-wash.el
lisp/gnus/spam.el
lisp/gnus/starttls.el
lisp/gnus/utf7.el
lisp/gnus/yenc.el
lisp/help-fns.el
lisp/help-macro.el
lisp/help-mode.el
lisp/help.el
lisp/hex-util.el
lisp/hexl.el
lisp/hfy-cmap.el
lisp/hilit-chg.el
lisp/hippie-exp.el
lisp/hl-line.el
lisp/htmlfontify.el
lisp/ibuf-ext.el
lisp/ibuf-macs.el
lisp/ibuffer.el
lisp/icomplete.el
lisp/ido.el
lisp/iimage.el
lisp/image-dired.el
lisp/image-mode.el
lisp/image.el
lisp/imenu.el
lisp/indent.el
lisp/info.el
lisp/international/characters.el
lisp/international/fontset.el
lisp/international/iso-ascii.el
lisp/international/kkc.el
lisp/international/mule-cmds.el
lisp/international/mule.el
lisp/international/ogonek.el
lisp/international/quail.el
lisp/international/ucs-normalize.el
lisp/international/utf-7.el
lisp/isearch.el
lisp/iswitchb.el
lisp/jit-lock.el
lisp/jka-cmpr-hook.el
lisp/jka-compr.el
lisp/kmacro.el
lisp/language/ethio-util.el
lisp/language/hebrew.el
lisp/language/misc-lang.el
lisp/language/tai-viet.el
lisp/language/tv-util.el
lisp/linum.el
lisp/loadup.el
lisp/locate.el
lisp/lpr.el
lisp/ls-lisp.el
lisp/macros.el
lisp/mail/binhex.el
lisp/mail/blessmail.el
lisp/mail/emacsbug.el
lisp/mail/hashcash.el
lisp/mail/mail-extr.el
lisp/mail/mail-hist.el
lisp/mail/mailalias.el
lisp/mail/mailclient.el
lisp/mail/mailheader.el
lisp/mail/metamail.el
lisp/mail/mspools.el
lisp/mail/rfc2368.el
lisp/mail/rmail-spam-filter.el
lisp/mail/rmail.el
lisp/mail/rmailedit.el
lisp/mail/rmailkwd.el
lisp/mail/rmailmm.el
lisp/mail/rmailmsc.el
lisp/mail/rmailout.el
lisp/mail/rmailsort.el
lisp/mail/rmailsum.el
lisp/mail/sendmail.el
lisp/mail/supercite.el
lisp/mail/uudecode.el
lisp/makesum.el
lisp/man.el
lisp/md4.el
lisp/menu-bar.el
lisp/mh-e/ChangeLog
lisp/mh-e/ChangeLog.1
lisp/mh-e/mh-alias.el
lisp/mh-e/mh-comp.el
lisp/mh-e/mh-e.el
lisp/mh-e/mh-mime.el
lisp/mh-e/mh-search.el
lisp/mh-e/mh-seq.el
lisp/mh-e/mh-show.el
lisp/midnight.el
lisp/minibuffer.el
lisp/misc.el
lisp/mouse-drag.el
lisp/mouse-sel.el
lisp/mouse.el
lisp/mpc.el
lisp/mwheel.el
lisp/net/ange-ftp.el
lisp/net/browse-url.el
lisp/net/dig.el
lisp/net/dns.el
lisp/net/eudc-bob.el
lisp/net/eudc-export.el
lisp/net/eudc-hotlist.el
lisp/net/eudc-vars.el
lisp/net/eudc.el
lisp/net/eudcb-bbdb.el
lisp/net/eudcb-ldap.el
lisp/net/eudcb-mab.el
lisp/net/eudcb-ph.el
lisp/net/goto-addr.el
lisp/net/hmac-def.el
lisp/net/hmac-md5.el
lisp/net/imap.el
lisp/net/mairix.el
lisp/net/net-utils.el
lisp/net/netrc.el
lisp/net/newst-backend.el
lisp/net/newst-plainview.el
lisp/net/newst-reader.el
lisp/net/newst-ticker.el
lisp/net/newst-treeview.el
lisp/net/newsticker.el
lisp/net/ntlm.el
lisp/net/quickurl.el
lisp/net/rcompile.el
lisp/net/rlogin.el
lisp/net/sasl-cram.el
lisp/net/sasl-digest.el
lisp/net/sasl-ntlm.el
lisp/net/sasl.el
lisp/net/telnet.el
lisp/net/tls.el
lisp/net/tramp-cache.el
lisp/net/tramp-cmds.el
lisp/net/tramp-compat.el
lisp/net/tramp-ftp.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-gw.el
lisp/net/tramp-imap.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el
lisp/net/tramp-uu.el
lisp/net/tramp.el
lisp/net/trampver.el
lisp/net/xesam.el
lisp/newcomment.el
lisp/nxml/nxml-maint.el
lisp/nxml/nxml-mode.el
lisp/nxml/nxml-outln.el
lisp/nxml/rng-loc.el
lisp/nxml/rng-nxml.el
lisp/nxml/rng-valid.el
lisp/obsolete/cl-compat.el
lisp/obsolete/complete.el
lisp/obsolete/lazy-lock.el
lisp/obsolete/lucid.el
lisp/obsolete/old-whitespace.el
lisp/obsolete/pgg-def.el
lisp/obsolete/pgg-gpg.el
lisp/obsolete/pgg-parse.el
lisp/obsolete/pgg-pgp.el
lisp/obsolete/pgg-pgp5.el
lisp/obsolete/pgg.el
lisp/obsolete/s-region.el
lisp/obsolete/sregex.el
lisp/obsolete/vc-mcvs.el
lisp/org/org-agenda.el
lisp/org/org-archive.el
lisp/org/org-ascii.el
lisp/org/org-attach.el
lisp/org/org-bbdb.el
lisp/org/org-bibtex.el
lisp/org/org-clock.el
lisp/org/org-colview.el
lisp/org/org-compat.el
lisp/org/org-crypt.el
lisp/org/org-datetree.el
lisp/org/org-docbook.el
lisp/org/org-exp-blocks.el
lisp/org/org-exp.el
lisp/org/org-feed.el
lisp/org/org-footnote.el
lisp/org/org-freemind.el
lisp/org/org-gnus.el
lisp/org/org-habit.el
lisp/org/org-html.el
lisp/org/org-icalendar.el
lisp/org/org-id.el
lisp/org/org-indent.el
lisp/org/org-info.el
lisp/org/org-inlinetask.el
lisp/org/org-irc.el
lisp/org/org-jsinfo.el
lisp/org/org-latex.el
lisp/org/org-list.el
lisp/org/org-mac-message.el
lisp/org/org-macs.el
lisp/org/org-mew.el
lisp/org/org-mhe.el
lisp/org/org-mobile.el
lisp/org/org-mouse.el
lisp/org/org-plot.el
lisp/org/org-protocol.el
lisp/org/org-publish.el
lisp/org/org-rmail.el
lisp/org/org-src.el
lisp/org/org-table.el
lisp/org/org-timer.el
lisp/org/org-vm.el
lisp/org/org-w3m.el
lisp/org/org-wl.el
lisp/org/org-xoxo.el
lisp/org/org.el
lisp/outline.el
lisp/paren.el
lisp/password-cache.el
lisp/paths.el
lisp/pcmpl-cvs.el
lisp/pcmpl-gnu.el
lisp/pcmpl-linux.el
lisp/pcmpl-rpm.el
lisp/pcmpl-unix.el
lisp/pcomplete.el
lisp/play/5x5.el
lisp/play/decipher.el
lisp/play/doctor.el
lisp/play/gametree.el
lisp/play/gomoku.el
lisp/play/landmark.el
lisp/play/life.el
lisp/play/mpuz.el
lisp/play/tetris.el
lisp/play/zone.el
lisp/printing.el
lisp/progmodes/ada-mode.el
lisp/progmodes/ada-prj.el
lisp/progmodes/ada-stmt.el
lisp/progmodes/ada-xref.el
lisp/progmodes/antlr-mode.el
lisp/progmodes/asm-mode.el
lisp/progmodes/autoconf.el
lisp/progmodes/bug-reference.el
lisp/progmodes/cc-align.el
lisp/progmodes/cc-awk.el
lisp/progmodes/cc-bytecomp.el
lisp/progmodes/cc-cmds.el
lisp/progmodes/cc-compat.el
lisp/progmodes/cc-defs.el
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-langs.el
lisp/progmodes/cc-menus.el
lisp/progmodes/cc-mode.el
lisp/progmodes/cc-styles.el
lisp/progmodes/cc-vars.el
lisp/progmodes/cfengine.el
lisp/progmodes/compile.el
lisp/progmodes/cperl-mode.el
lisp/progmodes/cpp.el
lisp/progmodes/cwarn.el
lisp/progmodes/dcl-mode.el
lisp/progmodes/delphi.el
lisp/progmodes/ebnf-abn.el
lisp/progmodes/ebnf-bnf.el
lisp/progmodes/ebnf-dtd.el
lisp/progmodes/ebnf-ebx.el
lisp/progmodes/ebnf-iso.el
lisp/progmodes/ebnf-otz.el
lisp/progmodes/ebnf-yac.el
lisp/progmodes/ebnf2ps.el
lisp/progmodes/ebrowse.el
lisp/progmodes/etags.el
lisp/progmodes/f90.el
lisp/progmodes/flymake.el
lisp/progmodes/fortran.el
lisp/progmodes/grep.el
lisp/progmodes/gud.el
lisp/progmodes/hideif.el
lisp/progmodes/icon.el
lisp/progmodes/idlw-complete-structtag.el
lisp/progmodes/idlw-shell.el
lisp/progmodes/idlw-toolbar.el
lisp/progmodes/idlwave.el
lisp/progmodes/inf-lisp.el
lisp/progmodes/js.el
lisp/progmodes/ld-script.el
lisp/progmodes/m4-mode.el
lisp/progmodes/make-mode.el
lisp/progmodes/meta-mode.el
lisp/progmodes/mixal-mode.el
lisp/progmodes/octave-inf.el
lisp/progmodes/octave-mod.el
lisp/progmodes/pascal.el
lisp/progmodes/perl-mode.el
lisp/progmodes/ps-mode.el
lisp/progmodes/python.el
lisp/progmodes/ruby-mode.el
lisp/progmodes/scheme.el
lisp/progmodes/sh-script.el
lisp/progmodes/simula.el
lisp/progmodes/sql.el
lisp/progmodes/subword.el
lisp/progmodes/tcl.el
lisp/progmodes/vera-mode.el
lisp/progmodes/verilog-mode.el
lisp/progmodes/vhdl-mode.el
lisp/progmodes/which-func.el
lisp/progmodes/xscheme.el
lisp/ps-bdf.el
lisp/ps-def.el
lisp/ps-mule.el
lisp/ps-print.el
lisp/ps-samp.el
lisp/rect.el
lisp/register.el
lisp/repeat.el
lisp/replace.el
lisp/reposition.el
lisp/reveal.el
lisp/rfn-eshadow.el
lisp/ruler-mode.el
lisp/savehist.el
lisp/saveplace.el
lisp/scroll-all.el
lisp/scroll-bar.el
lisp/select.el
lisp/server.el
lisp/sha1.el
lisp/shell.el
lisp/simple.el
lisp/skeleton.el
lisp/sort.el
lisp/startup.el
lisp/tabify.el
lisp/tar-mode.el
lisp/term.el
lisp/term/common-win.el
lisp/term/ns-win.el
lisp/term/pc-win.el
lisp/term/tty-colors.el
lisp/term/tvi970.el
lisp/term/vt100.el
lisp/term/w32-win.el
lisp/term/w32console.el
lisp/term/x-win.el
lisp/textmodes/artist.el
lisp/textmodes/bibtex-style.el
lisp/textmodes/bibtex.el
lisp/textmodes/conf-mode.el
lisp/textmodes/css-mode.el
lisp/textmodes/dns-mode.el
lisp/textmodes/enriched.el
lisp/textmodes/fill.el
lisp/textmodes/flyspell.el
lisp/textmodes/ispell.el
lisp/textmodes/makeinfo.el
lisp/textmodes/nroff-mode.el
lisp/textmodes/page-ext.el
lisp/textmodes/page.el
lisp/textmodes/paragraphs.el
lisp/textmodes/picture.el
lisp/textmodes/refer.el
lisp/textmodes/reftex-auc.el
lisp/textmodes/reftex-cite.el
lisp/textmodes/reftex-dcr.el
lisp/textmodes/reftex-global.el
lisp/textmodes/reftex-parse.el
lisp/textmodes/reftex-ref.el
lisp/textmodes/reftex-vars.el
lisp/textmodes/reftex.el
lisp/textmodes/remember.el
lisp/textmodes/sgml-mode.el
lisp/textmodes/spell.el
lisp/textmodes/table.el
lisp/textmodes/tex-mode.el
lisp/textmodes/texinfmt.el
lisp/textmodes/texinfo.el
lisp/textmodes/texnfo-upd.el
lisp/textmodes/text-mode.el
lisp/textmodes/two-column.el
lisp/time.el
lisp/tool-bar.el
lisp/tooltip.el
lisp/tutorial.el
lisp/type-break.el
lisp/uniquify.el
lisp/url/ChangeLog
lisp/url/url-cache.el
lisp/url/url-cookie.el
lisp/url/url-dired.el
lisp/url/url-file.el
lisp/url/url-gw.el
lisp/url/url-history.el
lisp/url/url-http.el
lisp/url/url-irc.el
lisp/url/url-parse.el
lisp/url/url-util.el
lisp/url/url-vars.el
lisp/url/url.el
lisp/vc/add-log.el
lisp/vc/compare-w.el
lisp/vc/cvs-status.el
lisp/vc/diff-mode.el
lisp/vc/diff.el
lisp/vc/ediff-diff.el
lisp/vc/ediff-help.el
lisp/vc/ediff-hook.el
lisp/vc/ediff-init.el
lisp/vc/ediff-merg.el
lisp/vc/ediff-ptch.el
lisp/vc/ediff-vers.el
lisp/vc/ediff-wind.el
lisp/vc/ediff.el
lisp/vc/log-edit.el
lisp/vc/log-view.el
lisp/vc/pcvs-defs.el
lisp/vc/pcvs-info.el
lisp/vc/pcvs-parse.el
lisp/vc/pcvs-util.el
lisp/vc/pcvs.el
lisp/vc/smerge-mode.el
lisp/vc/vc-annotate.el
lisp/vc/vc-arch.el
lisp/vc/vc-cvs.el
lisp/vc/vc-dav.el
lisp/vc/vc-dir.el
lisp/vc/vc-dispatcher.el
lisp/vc/vc-git.el
lisp/vc/vc-hg.el
lisp/vc/vc-hooks.el
lisp/vc/vc-mtn.el
lisp/vc/vc-rcs.el
lisp/vc/vc-sccs.el
lisp/vc/vc-svn.el
lisp/vc/vc.el
lisp/vcursor.el
lisp/view.el
lisp/w32-fns.el
lisp/w32-vars.el
lisp/whitespace.el
lisp/wid-browse.el
lisp/wid-edit.el
lisp/widget.el
lisp/window.el
lisp/woman.el
lisp/x-dnd.el
lwlib/ChangeLog
lwlib/Makefile.in
lwlib/lwlib-Xaw.c
lwlib/lwlib-Xlw.c
lwlib/lwlib-Xm.c
lwlib/lwlib-int.h
lwlib/lwlib-utils.c
lwlib/lwlib.c
lwlib/lwlib.h
lwlib/xlwmenu.c
lwlib/xlwmenu.h
lwlib/xlwmenuP.h
make-dist
msdos/mainmake.v2
msdos/sed1v2.inp
msdos/sed2v2.inp
msdos/sed2x.inp
msdos/sed3v2.inp
msdos/sed5x.inp
msdos/sed6.inp
msdos/sedlisp.inp
nextstep/ChangeLog
nextstep/README
nt/ChangeLog
nt/INSTALL
nt/README
nt/README.W32
nt/addpm.c
nt/addsection.c
nt/cmdproxy.c
nt/config.nt
nt/configure.bat
nt/ddeclient.c
nt/emacs.rc
nt/emacsclient.rc
nt/gmake.defs
nt/makefile.w32-in
nt/nmake.defs
nt/preprep.c
nt/runemacs.c
oldXMenu/Activate.c
oldXMenu/ChangeLog
oldXMenu/Create.c
oldXMenu/FindSel.c
oldXMenu/Internal.c
oldXMenu/Makefile.in
oldXMenu/insque.c
src/.gdbinit
src/ChangeLog
src/ChangeLog.1
src/ChangeLog.10
src/ChangeLog.2
src/ChangeLog.3
src/ChangeLog.4
src/ChangeLog.5
src/ChangeLog.6
src/ChangeLog.8
src/ChangeLog.9
src/Makefile.in
src/README
src/atimer.c
src/atimer.h
src/blockinput.h
src/buffer.c
src/buffer.h
src/bytecode.c
src/callint.c
src/callproc.c
src/casefiddle.c
src/casetab.c
src/category.c
src/category.h
src/ccl.c
src/ccl.h
src/character.c
src/character.h
src/charset.c
src/charset.h
src/chartab.c
src/cm.c
src/cm.h
src/cmds.c
src/coding.c
src/coding.h
src/commands.h
src/composite.c
src/composite.h
src/config.in
src/data.c
src/dired.c
src/dispextern.h
src/dispnew.c
src/disptab.h
src/doc.c
src/doprnt.c
src/dosfns.c
src/dosfns.h
src/editfns.c
src/emacs-icon.h
src/eval.c
src/fileio.c
src/filelock.c
src/filemode.c
src/floatfns.c
src/font.c
src/font.h
src/fontset.c
src/fontset.h
src/frame.c
src/frame.h
src/fringe.c
src/ftfont.c
src/ftfont.h
src/ftxfont.c
src/gtkutil.c
src/gtkutil.h
src/indent.c
src/indent.h
src/insdel.c
src/intervals.c
src/intervals.h
src/keyboard.c
src/keyboard.h
src/keymap.c
src/keymap.h
src/m/alpha.h
src/m/amdx86-64.h
src/m/ia64.h
src/m/ibmrs6000.h
src/m/ibms390.h
src/m/ibms390x.h
src/m/intel386.h
src/m/iris4d.h
src/m/m68k.h
src/m/macppc.h
src/m/sparc.h
src/m/template.h
src/m/vax.h
src/macros.c
src/macros.h
src/marker.c
src/mem-limits.h
src/menu.c
src/menu.h
src/minibuf.c
src/msdos.c
src/msdos.h
src/nsfns.m
src/nsfont.m
src/nsimage.m
src/nsmenu.m
src/nsselect.m
src/nsterm.h
src/nsterm.m
src/print.c
src/process.c
src/process.h
src/puresize.h
src/ralloc.c
src/regex.c
src/region-cache.c
src/region-cache.h
src/s/aix4-2.h
src/s/bsd-common.h
src/s/cygwin.h
src/s/darwin.h
src/s/freebsd.h
src/s/gnu-linux.h
src/s/gnu.h
src/s/hpux10-20.h
src/s/irix6-5.h
src/s/ms-w32.h
src/s/msdos.h
src/s/netbsd.h
src/s/template.h
src/s/usg5-4-common.h
src/scroll.c
src/search.c
src/sound.c
src/syntax.c
src/syntax.h
src/sysdep.c
src/sysselect.h
src/syssignal.h
src/systime.h
src/systty.h
src/term.c
src/termchar.h
src/termhooks.h
src/terminal.c
src/terminfo.c
src/textprop.c
src/undo.c
src/unexaix.c
src/unexcoff.c
src/unexcw.c
src/unexelf.c
src/unexmacosx.c
src/unexw32.c
src/vm-limit.c
src/w16select.c
src/w32.c
src/w32console.c
src/w32fns.c
src/w32font.c
src/w32font.h
src/w32gui.h
src/w32heap.c
src/w32heap.h
src/w32inevt.c
src/w32menu.c
src/w32proc.c
src/w32reg.c
src/w32select.c
src/w32term.c
src/w32term.h
src/w32uniscribe.c
src/w32xfns.c
src/widget.c
src/widget.h
src/window.c
src/window.h
src/xfaces.c
src/xfns.c
src/xfont.c
src/xftfont.c
src/xgselect.c
src/xgselect.h
src/xmenu.c
src/xrdb.c
src/xselect.c
src/xsettings.c
src/xsettings.h
src/xsmfns.c
src/xterm.c
src/xterm.h
test/icalendar-testsuite.el
test/redisplay-testsuite.el

diff --cc INSTALL
Simple merge
diff --cc README
Simple merge
diff --cc admin/ChangeLog
index e0059664aba55583ca63dffdaa520722ee5c0854,33b091ba0b90e1212b3bc2fcc805a10b5e2d0a61..5edbbdac653492431d5ce5d942b850ae58442707
@@@ -1,21 -1,8 +1,26 @@@
 -2011-01-03  Glenn Morris  <rgm@gnu.org>
++2011-01-14  Glenn Morris  <rgm@gnu.org>
+       * admin.el (set-copyright): Also handle \year in refcards/*.tex.
 -2010-12-31  Eli Zaretskii  <eliz@gnu.org>
++2011-01-14  Eli Zaretskii  <eliz@gnu.org>
 +2011-01-14  Glenn Morris  <rgm@gnu.org>
 +
 +      * bzrmerge.el: Require cl when compiling.
 +      (bzrmerge-merges): Doc fix.
 +
 +2011-01-07  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      * notes/copyright: There's only one install-sh, not two, so fix a
 +      typo claiming that there's two.  Add move-if-change to the list of
 +      GPL files imported from gnulib.
 +
 +2011-01-07  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      * notes/copyright: Report status more accurately for non-GPL files.
 +      Report copyright status more accurately for mkinstalldirs,
 +      configure, m4/getopt.m4, and msdos/sed*.inp.
 +
 +2011-01-02  Eli Zaretskii  <eliz@gnu.org>
  
        * nt/README.W32: Update the information about PNG support libraries.
        (Bug#7716)
diff --cc admin/admin.el
index 7cd2c02fb58c1e75f89830e40342b44b209f9182,b792287596b847e619cc0dda379ed34cc47f97cd..4387aecdde735fa70df36983bb74b8a58e231c60
@@@ -172,18 -183,18 +171,18 @@@ Root must be the root of an Emacs sourc
                           (format-time-string "%Y")))))
    (unless (file-exists-p (expand-file-name "src/emacs.c" root))
      (error "%s doesn't seem to be the root of an Emacs source tree" root))
 -  (set-version-in-file root "lisp/version.el" copyright
 -                     (rx (and "emacs-copyright" (0+ space)
 +  (set-version-in-file root "src/emacs.c" copyright
 +                     (rx (and "emacs_copyright" (0+ (not (in ?\")))
-                               ?\" (submatch (1+ (not (in ?\")))) ?\")))
+                               ?\" (submatch (1+ (not (in ?\")))) ?\")))
    (set-version-in-file root "lib-src/ebrowse.c" copyright
                         (rx (and "emacs_copyright" (0+ (not (in ?\")))
-                               ?\" (submatch (1+ (not (in ?\")))) ?\")))
+                               ?\" (submatch (1+ (not (in ?\")))) ?\")))
    (set-version-in-file root "lib-src/etags.c" copyright
                         (rx (and "emacs_copyright" (0+ (not (in ?\")))
-                               ?\" (submatch (1+ (not (in ?\")))) ?\")))
+                               ?\" (submatch (1+ (not (in ?\")))) ?\")))
    (set-version-in-file root "lib-src/rcs2log" copyright
-                      (rx (and "Copyright" (0+ space) ?= (0+ space)
-                               ?\' (submatch (1+ nonl)))))
+                      (rx (and "Copyright" (0+ space) ?= (0+ space)
+                               ?\' (submatch (1+ nonl)))))
    ;; This one is a nuisance, as it needs to be split over two lines.
    (string-match "\\(.*[0-9]\\{4\\} *\\)\\(.*\\)" copyright)
    ;; nextstep.
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc config.bat
Simple merge
diff --cc configure.in
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index d50bb08746242e8a684d4bb951969a7c67597904,5eada94a0abbd74c0c42f3933d2c23e5610b0046..731e03cde0b2c7bb6d214cc8c97bea141a7ddf2a
@@@ -1,8 -1,8 +1,8 @@@
  @c This is part of the Emacs manual.
  @c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2001, 2002,
- @c   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ @c   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  @c See file emacs.texi for copying conditions.
 -@node Registers, Display, CUA Bindings, Top
 +@node Registers, Display, Killing, Top
  @chapter Registers
  @cindex registers
  
Simple merge
Simple merge
Simple merge
index d75bb003279f8bbb7b760fe186235aaf4cb79ef6,b77431f3313dd99483dcb8c729b9e69a40e43988..1b7b803b39c766e282258dea05b13166855241a5
  
  ;; Local Variables:
  ;; coding: utf-8
 -;; add-log-time-zone-rule: t
  ;; End:
  
-   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
-     2010  Free Software Foundation, Inc.
+     Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007,
+       2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
    This file is part of GNU Emacs.
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc doc/man/emacs.1
Simple merge
diff --cc doc/man/etags.1
Simple merge
index 7fc944e523cfc512fc52f8f2958eec4c7013f336,652322adca590dae388c40b6ec43552374957e32..92b61e756887deeb53624ce6462f588a4a81294f
@@@ -1,70 -1,8 +1,75 @@@
 -2011-01-03  Eduard Wiebe  <usenet@pusto.de>
++2011-01-14  Eduard Wiebe  <usenet@pusto.de>
+       * nxml-mode.texi (Introduction): Fix file name typos.
 -2010-12-02  Glenn Morris  <rgm@gnu.org>
++2011-01-14  Glenn Morris  <rgm@gnu.org>
 +2011-01-13  Christian Ohler  <ohler@gnu.org>
 +
 +      * ert.texi: New file.
 +
 +      * Makefile.in:
 +      * makefile.w32-in: Add ert.texi.
 +
 +2011-01-10  Jan Moringen  <jan.moringen@uni-bielefeld.de>
 +
 +      * dbus.texi (Receiving Method Calls): New function
 +      dbus-register-service.  Rearrange node.
 +
 +2011-01-07  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +      * texinfo.tex: Update to version 2010-12-23.17 from gnulib,
 +      which in turn is copied from ftp://tug.org/tex/.
 +
 +2011-01-04  Jan Moringen  <jan.moringen@uni-bielefeld.de>
 +
 +      * dbus.texi (Receiving Method Calls): Describe new optional
 +      parameter dont-register-service of dbus-register-{method,property}.
 +
 +2010-12-17  Daiki Ueno  <ueno@unixuser.org>
 +
 +      * epa.texi (Encrypting/decrypting *.gpg files): Mention
 +      epa-file-select-keys.
 +
 +2010-12-16  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * gnus.texi (Archived Messages): Remove outdated text.
 +
 +2010-12-16  Teodor Zlatanov  <tzz@lifelogs.com>
 +
 +      * gnus.texi (Foreign Groups): Added clarification of foreign groups.
 +
 +2010-12-15  Andrew Cohen  <cohen@andy.bu.edu>
 +
 +      * gnus.texi (The hyrex Engine): Say that this engine is obsolete.
 +
 +2010-12-14  Andrew Cohen  <cohen@andy.bu.edu>
 +
 +      * gnus.texi (The swish++ Engine): Add customizable parameters
 +      descriptions.
 +      (The swish-e Engine): Ditto.
 +
 +2010-12-14  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * tramp.texi (Inline methods): Add "ksu" method.
 +      (Remote processes): Add example with remote `default-directory'.
 +
 +2010-12-14  Glenn Morris  <rgm@gnu.org>
 +
 +      * faq.texi (Expanding aliases when sending mail):
 +      Now build-mail-aliases is interactive.
 +
 +2010-12-13  Andrew Cohen  <cohen@andy.bu.edu>
 +
 +      * gnus.texi: First pass at adding (rough) nnir documentation.
 +
 +2010-12-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * gnus.texi (Filtering New Groups):
 +      Mention gnus-auto-subscribed-categories.
 +      (The First Time): Remove, since default-subscribed-newsgroups has been
 +      removed.
 +
 +2010-12-13  Glenn Morris  <rgm@gnu.org>
  
        * cl.texi (For Clauses): Small fixes for frames and windows.
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index d9df9c8db18ae252e85c783129d13a5988ad767a,d224d36fcda10cd87bdceafb345bc3a1a9146163..bc0327df60ce29b60632256db051c7b51b33cc76
@@@ -2,8 -2,11 +2,8 @@@
  @c Uncomment 1st line before texing this file alone.
  @c %**start of header
  @c Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
- @c   2009, 2010 Free Software Foundation, Inc.
+ @c   2009, 2010, 2011 Free Software Foundation, Inc.
  @c
 -@c Do not modify this file, it was generated from gnus-faq.xml, available from
 -@c <URL:http://my.gnus.org/FAQ/>.
 -@c
  @setfilename gnus-faq.info
  @settitle Frequently Asked Questions
  @c %**end of header
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 5a676786fdd39bcbfb20a1238e0ff2436265a070,b20e1c6ce0392e4653e764b4fb3e2df8f55df328..330e68603ca3fdd7b09af4378099b44b549b23f1
  @copying
  This manual is for Org version @value{VERSION}.
  
- Copyright @copyright{} 2004, 2005, 2006, 2007, 2008, 2009, 2010
 -Copyright @copyright{} 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation
++Copyright @copyright{} 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
 +Free Software Foundation, Inc.
  
  @quotation
  Permission is granted to copy, distribute and/or modify this document
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc etc/ChangeLog
index d8dd5aa0ae0c8199b2c192c73eb35848f27c5168,112f4ff60d0d6e767633f894750483f463da3f6e..5e8b164ce05e3d0bec671003540a5000755c76bb
@@@ -1,54 -1,22 +1,73 @@@
 -2011-01-03  Glenn Morris  <rgm@gnu.org>
++2011-01-14  Glenn Morris  <rgm@gnu.org>
+       * refcards/calccard.tex, refcards/cs-dired-ref.tex:
+       * refcards/cs-refcard.tex, refcards/cs-survival.tex:
+       * refcards/de-refcard.tex, refcards/dired-ref.tex:
+       * refcards/fr-dired-ref.tex, refcards/fr-refcard.tex:
+       * refcards/fr-survival.tex, refcards/orgcard.tex:
+       * refcards/pl-refcard.tex, refcards/pt-br-refcard.tex:
+       * refcards/refcard.tex, refcards/ru-refcard.tex:
+       * refcards/sk-dired-ref.tex, refcards/sk-refcard.tex:
+       * refcards/sk-survival.tex, refcards/survival.tex:
+       * refcards/vipcard.tex, refcards/viperCard.tex:
+       Update short copyright year to 2011.
 -2010-12-24  Kenichi Handa  <handa@m17n.org>
++2011-01-14  Kenichi Handa  <handa@m17n.org>
+       * NEWS: Describe the changes for rmail's MIME handling.
 -2010-12-04  W. Martin Borgert <debacle@debian.org>  (tiny change)
++2011-01-14  W. Martin Borgert <debacle@debian.org>  (tiny change)
 +2011-01-13  Christian Ohler  <ohler@gnu.org>
 +
 +      * NEWS: Mention ERT.
 +
 +2011-01-10  Jan Moringen  <jan.moringen@uni-bielefeld.de>
 +
 +      * NEWS: Add new function dbus-register-service.
 +
 +2011-01-09  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * themes/tango-theme.el, themes/tango-dark-theme.el: Let-bind
 +      tango palette colors.  Only define faces for color displays.
 +      Customize the ansi-color-names-vector variable.  Add Ediff,
 +      Flyspell, and Semantic faces as suggested by Jan Moringen.
 +
 +2011-01-08  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * compilation.txt: Add column to gcc-include sample.
 +
 +2011-01-08  Glenn Morris  <rgm@gnu.org>
 +
 +      * PROBLEMS: -batch implies -q.
 +
 +2011-01-07  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * themes/tsdh-light-theme.el, themes/tsdh-dark-theme.el: Remove
 +      dev-prefix from file names, so that the files don't clash on 8x3
 +      filesystems.
 +
 +2011-01-06  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * themes/dev-tsdh-light-theme.el (dev-tsdh-light): New theme.
 +      * themes/dev-tsdh-dark-theme.el (dev-tsdh-dark): New theme.
 +
 +2011-01-04  Jan Moringen  <jan.moringen@uni-bielefeld.de>
 +
 +      * NEWS: Extended behaviour of dbus-register-{method,property}.
 +
 +2011-01-02  Kenichi Handa  <handa@m17n.org>
 +
 +      * NEWS.23: Describe the changes for rmail's MIME handling.
 +
 +2010-12-18  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * images/separator.xpm: Tweak colors.
 +
 +2010-12-14  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * NEWS: Mention new Tramp method "ksu".
 +
 +2010-12-13  W. Martin Borgert <debacle@debian.org>  (tiny change)
  
        * schema/schemas.xml: Add DocBook (Bug#7491).
  
diff --cc etc/DEBUG
Simple merge
diff --cc etc/GNUS-NEWS
Simple merge
diff --cc etc/HELLO
Simple merge
diff --cc etc/MACHINES
Simple merge
diff --cc etc/NEWS.23
index 3b10a6d281512c76cc1bdfeebca2744700855f74,0000000000000000000000000000000000000000..fd47f89699b5649f9222a5f9c6df8342bc904e46
mode 100644,000000..100644
--- /dev/null
@@@ -1,2517 -1,0 +1,2517 @@@
- Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 +GNU Emacs NEWS -- history of user-visible changes.
 +
++Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 +See the end of the file for license conditions.
 +
 +Please send Emacs bug reports to bug-gnu-emacs@gnu.org.
 +If possible, use M-x report-emacs-bug.
 +
 +This file is about changes in Emacs version 23.
 +
 +See files NEWS.22, NEWS.21, NEWS.20, NEWS.19, NEWS.18, and NEWS.1-17
 +for changes in older Emacs versions.
 +
 +You can narrow news to a specific version by calling `view-emacs-news'
 +with a prefix argument or by typing C-u C-h C-n.
 +
 +\f
 +* Installation Changes in Emacs 23.3
 +
 +* Startup Changes in Emacs 23.3
 +
 +* Changes in Emacs 23.3
 +
 +\f
 +* Editing Changes in Emacs 23.3
 +
 +\f
 +* Changes in Specialized Modes and Packages in Emacs 23.3
 +
 +---
 +** The appt-add command takes an optional argument for the warning time.
 +This can be used in place of the default appt-message-warning-time.
 +
 +---
 +** You can allow inferior Python processes to load modules from the
 +current directory by setting `python-remove-cwd-from-path' to nil.
 +
 +** VC and related modes
 +
 +*** New VC command `vc-log-incoming', bound to `C-x v I'.
 +This shows a log of changes to be received with a pull operation.
 +For Git, this runs "git fetch" to make the necessary data available
 +locally; this requires version 1.7 or newer.
 +
 +*** New VC command `vc-log-outgoing', bound to `C-x v O'.
 +This shows a log of changes to be sent in the next commit.
 +
 +*** New VC command vc-find-conflicted-file.
 +
 ++++
 +*** The 'g' key in VC diff, log, log-incoming and log-outgoing buffers
 +reruns the corresponding VC command to compute an up to date version
 +of the buffer.
 +
 +*** vc-dir for Bzr supports viewing shelve contents and shelving snapshots.
 +
 ++++
 +*** Special markup can be added to log-edit buffers.
 +You can add headers specifying additional information to be supplied
 +to the version control system.  For example:
 +
 +  Author: J. R. Hacker <jrh@example.com>
 +  Fixes: 4204
 +  Actual text of log entry...
 +
 +Bazaar recognizes the headers "Author", "Date" and "Fixes".
 +Git, Mercurial, and Monotone recognize "Author" and "Date".
 +Any unknown header is left as is in the message, so it is not lost.
 +
 +** Rmail
 +
 +*** The default value of `rmail-enable-mime' is now t.  Rmail decodes
 +MIME contents automatically.  You can customize the variable
 +`rmail-enable-mime' back to `nil' to disable this automatic MIME
 +decoding.
 +
 +*** The command `rmail-mime' change the displaying of a MIME message
 +between decoded presentation form and raw data if `rmail-enable-mime'
 +is non-nil.  And, with prefix argument, it change only the displaying
 +of the MIME entity at point.
 +
 +*** The new command `rmail-mime-next-item' (bound to TAB) moves point
 +to the next item of MIME message.
 +
 +*** The new command `rmail-mime-previous-item' (bound to backtab) moves
 +point to the previous item of MIME message.
 +
 +*** The new command `rmail-mime-toggle-hidden' (RET) hide or show the
 +body of the MIME entity at point.
 +
 +** Obsolete packages
 +
 ++++
 +*** lmenu.el and cl-compat.el are now obsolete.
 +
 +\f
 +* New Modes and Packages in Emacs 23.3
 +
 +** smie.el is a generic navigation and indentation engine.
 +It takes a simple BNF description of the grammar, and provides both
 +sexp-style navigation (jumping over begin..end pairs) as well as
 +indentation, which can be adjusted via ad-hoc indentation rules.
 +
 +\f
 +* Incompatible Lisp Changes in Emacs 23.3
 +
 +** posn-col-row now excludes the header line from the row count
 +If the frame has a header line, posn-col-row will count row numbers
 +starting from the first line of text below the header line.
 +
 +\f
 +* Lisp changes in Emacs 23.3
 +
 ++++
 +** `e' and `pi' are now called `float-e' and `float-pi'.
 +  The old names are obsolete.
 +
 ++++
 +** The use of unintern without an obarray arg is now obsolete.
 +
 +---
 +** The function `princ-list' is now obsolete.
 +
 ++++
 +** The yank-handler argument to kill-region and friends is now obsolete.
 +
 ++++
 +** New function byte-to-string, like char-to-string but for bytes.
 +
 +\f
 +* Changes in Emacs 23.3 on non-free operating systems
 +
 ++++
 +** The nextstep port can have different modifiers for the left and right
 +alt/option key by customizing the value for ns-right-alternate-modifier.
 +
 +\f
 +* Installation Changes in Emacs 23.2
 +
 +** New configure options for Emacs developers.
 +These are not new features; only the configure flags are new.
 +
 +*** --enable-profiling builds Emacs with profiling enabled.
 +This might not work on all platforms.
 +
 +*** --enable-checking[=OPTIONS] builds emacs with extra runtime checks.
 +
 +** `make install' now consistently ignores umask, creating a
 +world-readable install.
 +
 +** Emacs compiles with Gconf support, if it is detected.
 +Use the configure option --without-gconf to disable this.
 +This is used by the `font-use-system-font' feature (see below).
 +
 +* Startup Changes in Emacs 23.2
 +
 +** The command-line option -Q (--quick) also inhibits loading X resources.
 +However, if Emacs is compiled with the Lucid or Motif toolkit, X
 +resource settings for the graphical widgets are still applied.
 +On Windows, the -Q option causes Emacs to ignore Registry settings,
 +but environment variables set on the Registry are still honored.
 +
 +*** The new variable `inhibit-x-resources' shows whether X resources
 +were loaded.
 +
 +** New command-line option -mm (--maximized) maximizes the initial frame.
 +
 +* Changes in Emacs 23.2
 +
 +** The maximum size of buffers (and the largest fixnum) is doubled.
 +On typical 32bit systems, buffers can now be up to 512MB.
 +
 +** The default value of `trash-directory' is now nil.
 +This means that `move-file-to-trash' trashes files according to
 +freedesktop.org specifications, the same method used by the Gnome,
 +KDE, and XFCE desktops.  (This change has no effect on Windows, which
 +uses `system-move-file-to-trash' for trashing.)
 +
 +** The pointer now becomes invisible when typing.
 +Customize `make-pointer-invisible' to disable this feature.
 +
 +** Font changes
 +
 +*** Emacs can use the system default monospaced font in Gnome.
 +To enable this feature, set `font-use-system-font' to non-nil (it is
 +nil by default).  If the system default changes, Emacs changes also.
 +This feature requires Gconf support, which is automatically included
 +at compile-time if configure detects the gconf libraries (you can
 +disable this with the configure option --without-gconf).
 +
 +*** On X11, Emacs reacts to Xft changes made by configuration tools,
 +via the XSETTINGS mechanism.  This includes antialias, hinting,
 +hintstyle, RGBA, DPI and lcdfilter changes.
 +
 +** Killing a buffer with a running process now asks for confirmation.
 +To remove this query, remove `process-kill-buffer-query-function' from
 +`kill-buffer-query-functions', or set the appropriate process flag
 +with `set-process-query-on-exit-flag'.
 +
 +** File-local variable changes
 +
 +*** Specifying a minor mode as a local variables enables that mode,
 +unconditionally.  The previous behavior, toggling the mode, was
 +neither reliable nor generally desirable.
 +
 +*** There are new commands for adding and removing file-local variables:
 +`add-file-local-variable', `delete-file-local-variable',
 +`add-file-local-variable-prop-line', and
 +`delete-file-local-variable-prop-line'.
 +
 +*** There are new commands for adding and removing directory-local variables,
 +and copying them to and from file-local variable lists:
 +`add-dir-local-variable', `delete-dir-local-variable',
 +`copy-dir-locals-to-file-locals',
 +`copy-dir-locals-to-file-locals-prop-line' and
 +`copy-file-locals-to-dir-locals'.
 +
 +** Internationalization changes
 +
 +*** Unibyte sessions are now considered obsolete.
 +This refers to the EMACS_UNIBYTE environment variable as well as the
 +--unibyte, --multibyte, --no-multibyte, and --no-unibyte command line
 +arguments.  Customizing enable-multibyte-characters and setting
 +default-enable-multibyte-characters are also deprecated.
 +
 +*** New coding system `utf-8-hfs'.
 +This is suitable for default-file-name-coding-system on Mac OS X; see
 +international/ucs-normalize.el.
 +
 +** Function arguments in *Help* buffers are now shown in upper-case.
 +Customize `help-downcase-arguments' to t to show them in lower-case.
 +
 +** New command `async-shell-command', bound globally to `M-&'.
 +This executes the command asynchronously, similar to calling `M-!' and
 +manually adding an ampersand to the end of the command.  With `M-&',
 +you don't need the ampersand.  The output appears in the buffer
 +`*Async Shell Command*'.
 +
 +** When running in a new enough xterm (newer than version 242), Emacs
 +asks xterm what the background color is and it sets up faces
 +accordingly for a dark background if needed (the current default is to
 +consider the background light).
 +
 +\f
 +* Editing Changes in Emacs 23.2
 +
 +** Kill-ring and selection changes
 +
 +*** If `select-active-regions' is t, any active region automatically
 +becomes the primary selection (for interaction with other window
 +applications).  If you enable this, you might want to bind
 +`mouse-yank-primary' to Mouse-2.
 +
 +*** When `save-interprogram-paste-before-kill' is non-nil, the kill
 +commands save the interprogram-paste selection into the kill ring
 +before doing anything else.  This avoids losing the selection.
 +
 +*** When `kill-do-not-save-duplicates' is non-nil, identical
 +subsequent kills are not duplicated in the `kill-ring'.
 +
 +** Completion changes
 +
 +*** The new command `completion-at-point' provides mode-sensitive completion.
 +
 +*** tab-always-indent set to `complete' lets TAB do completion as well.
 +
 +*** The new completion-style `initials' is available.
 +For instance, this can complete M-x lch to list-command-history.
 +
 +*** The new variable `completions-format' determines how completions
 +are displayed in the *Completions* buffer.  If you set it to
 +`vertical', completions are sorted vertically in columns.
 +
 +** The default value of `blink-matching-paren-distance' is increased.
 +
 +** M-n provides more default values in the minibuffer for commands
 +that read file names.  These include the file name at point (when ffap
 +is loaded without ffap-bindings), the file name on the current line
 +(in Dired buffers), and the directory names of adjacent Dired windows
 +(for Dired commands that operate on several directories, such as copy,
 +rename, or diff).
 +
 +** M-r is bound to the new `move-to-window-line-top-bottom'.
 +This moves point to the window center, top and bottom on successive
 +invocations, in the same spirit as the C-l (recenter-top-bottom)
 +command.
 +
 +** The new variable `recenter-positions' determines the default
 +cycling order of C-l (`recenter-top-bottom').
 +
 +** The abbrevs file is now a file named abbrev_defs in
 +user-emacs-directory; but the old location, ~/.abbrev_defs, is used if
 +that file exists.
 +
 +\f
 +* Changes in Specialized Modes and Packages in Emacs 23.2
 +
 +** The bookmark menu has a narrowing search via bookmark-bmenu-search.
 +
 +** Calc
 +
 +*** The Calc settings file is now a file named calc.el in
 +user-emacs-directory; but the old location, ~/.calc.el, is used if
 +that file exists.
 +
 +*** Graphing commands (`g f' etc.) now work on MS-Windows, if you have
 +the native Windows port of Gnuplot version 3.8 or later installed.
 +
 +** Calendar and diary
 +
 +*** Fancy diary display is now the default.
 +If you prefer the simple display, customize `diary-display-function'.
 +
 +*** The diary's fancy display now enables view-mode.
 +
 +*** The command `calendar-current-date' accepts an optional argument
 +giving an offset from today.
 +
 +** Desktop
 +
 +*** The default value for `desktop-buffers-not-to-save' is nil.
 +This means Desktop will try restoring all buffers, when you restart
 +your Emacs session.  Also, `desktop-buffers-not-to-save' is only
 +effective for buffers that have no associated file.  If you want to
 +exempt buffers that do correspond to files, customize the value of
 +`desktop-files-not-to-save' instead.
 +
 +** Dired
 +
 +*** The new variable `dired-auto-revert-buffer', if non-nil, causes
 +Dired buffers to be reverted automatically on revisiting them.
 +
 +** DocView
 +
 +*** When `doc-view-continuous' is non-nil, scrolling a line
 +on the page edge advances to the next/previous page.
 +
 +** Elint
 +
 +*** Elint now uses compilation-mode.
 +
 +*** Elint can now scan individual files and whole directories,
 +and can be run in batch mode.
 +
 +*** Elint does a more thorough initialization, and recognizes more built-in
 +functions and variables.  Customize `elint-scan-preloaded' if you want
 +to sacrifice some accuracy for a faster startup.
 +
 +*** Elint attempts some basic understanding of featurep and (f)boundp tests.
 +
 +*** Customize `elint-ignored-warnings' to suppress some warnings.
 +
 +** GDB-UI
 +
 +*** Toolbar functionality for reverse debugging.  Display of STL
 +collections as watch expressions.  These features require GDB 7.0 or later.
 +
 +** Grep
 +
 +*** A new command `zrgrep' searches recursively in gzipped files.
 +
 +** Info
 +
 +*** The new command `Info-virtual-index' bound to "I" displays a menu of
 +matched topics found in the index.
 +
 +*** The new command `info-finder' replaces finder.el with a virtual Info
 +manual that generates an Info file which gives the same information
 +through a menu structure.
 +
 +** LaTeX mode now provides completion (via completion-at-point).
 +
 +** Message mode is now the default mode for composing mail.
 +
 +The default for `mail-user-agent' is now message-user-agent, so the
 +C-x m (`compose-mail') command uses Message mode instead of Mail mode.
 +
 +Message mode has been included in Emacs, as part of the Gnus package,
 +for several years.  It provides several features that are absent in
 +Mail mode, such as MIME handling.
 +
 +*** If the user has not customized mail-user-agent, `compose-mail'
 +checks for Mail mode customizations, and issues a warning if these
 +customizations are found.  This alerts users who may otherwise be
 +unaware that their mail configuration has changed.
 +
 +To disable this check, set compose-mail-user-agent-warnings to nil.
 +
 +** The default value of mail-interactive is t, since Emacs 23.1.
 +(This was not announced at the time.)  It means that when sending mail,
 +Emacs will wait for the process sending mail to return.  If you
 +experience delays when sending mail, you may wish to set this to nil.
 +
 +** nXML mode is now the default for editing XML files.
 +
 +** pcomplete provides a new command `pcomplete-std-completion' which
 +is similar to `pcomplete' but using the standard completion UI code.
 +
 +** Shell (and other comint modes)
 +
 +*** M-s is no longer bound to `comint-next-matching-input'.
 +
 +*** M-r is now bound to `comint-history-isearch-backward-regexp'.
 +This starts an incremental search of the comint/shell input history.
 +
 +*** ansi-color is now enabled by default in Shell mode.
 +To disable it, set ansi-color-for-comint-mode to nil.
 +
 +** Tramp
 +
 +*** New connection methods "rsyncc", "imap" and "imaps".
 +On systems which support GVFS-Fuse, Tramp offers also the new
 +connection methods "dav", "davs", "obex" and "synce".
 +
 +** VC and related modes
 +
 +*** When using C-x v v or C-x v i on a unregistered file that is in a
 +directory not controlled by any VCS, ask the user what VC backend to
 +use to create a repository, create a new repository and register the
 +file.
 +
 +*** New command `vc-root-print-log', bound to `C-x v L'.
 +This displays a `*vc-change-log*' buffer showing the history of the
 +version-controlled directory tree as a whole.
 +
 +*** New command `vc-root-diff', bound to `C-x v D'.
 +This is similar to `vc-diff', but compares the entire directory tree
 +of the current VC directory with its working revision.
 +
 +*** `C-x v l' and `C-x v L' do not show the full log by default.
 +The number of entries shown can be chosen interactively with a prefix
 +argument, or by customizing vc-log-show-limit.  The `*vc-change-log*'
 +buffer now contains buttons at the end of the buffer, which can be
 +used to increase the number of entries shown.  RCS, SCCS, and CVS do
 +not support this feature.
 +
 +*** vc-annotate supports annotations through file copies and renames,
 +it displays the old names for the files and it can show logs/diffs for
 +the corresponding lines.  Currently only Git and Mercurial take
 +advantage of this feature.
 +
 +*** The log command in vc-annotate can display a single log entry
 +instead of redisplaying the full log.  The RCS, CVS and SCCS VC
 +backends do not support this.
 +
 +*** When a file is not found, VC will not try to check it out of RCS anymore.
 +
 +*** Diff and log operations can be used from Dired buffers.
 +
 +*** vc-git changes
 +
 +**** The short log format for git makes use of the graph display,
 +so it's not supported on git versions earlier than 1.5.6.
 +
 +**** vc-dir uses the --relative option of git, and so requires at least
 +git version 1.5.5.
 +
 +**** Support for operating with stashes has been added to vc-dir:
 +the stash list is displayed in the *vc-dir* header, stashes can be
 +created, removed, applied and their content displayed.
 +
 +*** vc-bzr supports operating with shelves: the shelve list is
 +displayed in the *vc-dir* header, shelves can be created, removed and applied.
 +
 +*** log-edit-strip-single-file-name controls whether or not single filenames
 +are stripped when copying text from the ChangeLog to the *VC-Log* buffer.
 +
 +** Miscellaneous
 +
 +*** Interactively `multi-isearch-buffers' and `multi-isearch-buffers-regexp'
 +read buffer names to search, one by one, ended with RET.  With a prefix
 +argument, they ask for a regexp, and search in buffers whose names match
 +the specified regexp.  Interactively `multi-isearch-files' and
 +`multi-isearch-files-regexp' read file names to search, one by one,
 +ended with RET.  With a prefix argument, they ask for a wildcard, and
 +search in file buffers whose file names match the specified wildcard.
 +
 +*** Autorevert Tail mode now works also for remote files.
 +
 +*** The new eshell built-in commands `su' and `sudo' support Tramp.
 +Thus, they change `default-directory' to reflect the new user id, and
 +let commands run under that user's permissions.  This works even when
 +`default-directory' is already remote.  Calling the external commands
 +is possible via `*su' or `*sudo', respectively.
 +
 +** Obsolete packages
 +
 +*** sym-comp.el is now obsolete, superseded by completion-at-point.
 +
 +*** lucid.el and levents.el are now obsolete.
 +
 +\f
 +* New Modes and Packages in Emacs 23.2
 +
 +** CEDET (the Collection of Emacs Development Tools) is now in Emacs.
 +This is a collection of packages to aid with using Emacs as an IDE
 +(integrated development environment):
 +
 +*** The Semantic package allows the use of parsers to intelligently
 +edit and navigate source code.  Parsers for C/C++, Java, Javascript,
 +and several other languages are included by default, and Semantic can
 +also interface with external tools such as GNU Global and GNU Idutils.
 +
 +To enable Semantic, use the global minor mode `semantic-mode'.
 +See the Semantic manual for details.
 +
 +*** EDE (Emacs Development Environment) is a package for managing code
 +projects, including features such as automatic Makefile generation.
 +
 +To enable EDE, use the minor mode `global-ede-mode'.
 +See the EDE manual for details.
 +
 +*** SRecode is a library for recoding Semantic tags back into source
 +code.  It is currently used by some parts of Semantic and EDE; in the
 +future, it may be used for code generation features.
 +
 +*** The EIEIO library implements a subset of the Common Lisp Object
 +System (CLOS).  It is used by the other CEDET packages.
 +
 +** mpc.el is a front end for the Music Player Daemon.  Run it with M-x mpc.
 +
 +** htmlfontify.el turns a fontified Emacs buffer into an HTML page.
 +
 +** js.el is a new major mode for JavaScript files.
 +
 +** imap-hash.el is a new library to address IMAP mailboxes as hashtables.
 +
 +\f
 +* Incompatible Lisp Changes in Emacs 23.2
 +
 +** The Lisp reader turns integers that are too large/small into floats.
 +For instance, on machines where `536870911' is the largest integer,
 +reading `536870912' gives the floating-point object `536870912.0'.
 +
 +This change only concerns the Lisp reader; it does not affect how
 +actual integer objects overflow.
 +
 +** Several obsolete functions removed.
 +The functions have been obsolete since Emacs 19, and are unlikely to
 +be in use:
 +
 +  time-stamp-month-dd-yyyy, time-stamp-dd/mm/yyyy, time-stamp-mon-dd-yyyy
 +  time-stamp-dd-mon-yy, time-stamp-yy/mm/dd, time-stamp-yyyy/mm/dd,
 +  time-stamp-yyyy-mm-dd, time-stamp-yymmdd, time-stamp-hh:mm:ss,
 +  time-stamp-hhmm, baud-rate
 +
 +** Support for generating Emacs 18 compatible bytecode (by setting
 +the variable `byte-compile-compatibility') has been removed.
 +
 +** In image-mode.el `image-mode-maybe' is obsolete.
 +Instead, you can either use `image-mode' (which displays an image file
 +as the actual image initially), or `image-mode-as-text' (when you want
 +to display an image file as text initially).  `image-mode-as-text' is a
 +combination of a non-image mode from `auto-mode-alist' (or Fundamental
 +mode) and `image-minor-mode'.  `image-minor-mode' provides a `C-c C-c'
 +key binding to toggle image display.
 +`image-toggle-display-text' removes image properties.
 +`image-toggle-display-image' adds image properties.
 +`image-toggle-display' toggles between `image-mode-as-text' and `image-mode'.
 +
 +\f
 +* Lisp changes in Emacs 23.2
 +
 +** All the default-FOO variables that hold the default value of the FOO
 +variable, are now declared obsolete.
 +
 +** read-key is a function halfway between read-event and read-key-sequence.
 +It reads a single key, but obeys input and escape sequence decoding.
 +
 +** Frame parameter changes
 +
 +*** You can give the `fullscreen' frame parameter the value `maximized'.
 +This maximizes the frame.
 +
 +*** The new frame parameter `sticky' makes Emacs frames sticky in
 +virtual desktops.
 +
 +** Completion changes
 +
 +*** completion-base-size is obsoleted by completion-base-position.
 +This change causes a few backward incompatibilities, mostly with
 +choose-completion-string-functions where the `mini-p' argument has
 +been replaced by a `base-position' argument, and where the `base-size'
 +argument is now always nil.
 +
 +*** New function `completion-in-region' to use the standard completion
 +facilities on a particular region of text.
 +
 +*** The 4th arg to all-completions (aka hide-spaces) is declared obsolete.
 +
 +*** completion-annotate-function specifies how to compute annotations
 +for completions displayed in *Completions*.
 +
 +** Minibuffer changes
 +
 +*** read-file-name-predicate is obsolete.  It was used to pass the predicate
 +to read-file-name-internal because read-file-name-internal abused its `pred'
 +argument to pass the current directory, but this hack is not needed
 +any more.
 +
 +** Changes to file-manipulation functions
 +
 +*** `delete-directory' has an optional parameter RECURSIVE.
 +
 +*** New function `copy-directory', which copies a directory recursively.
 +
 +** called-interactively-p now takes one argument and replaces interactive-p
 +which is now marked obsolete.
 +
 +** New function set-advertised-calling-convention makes it possible
 +to obsolete arguments as well as make some arguments mandatory.
 +
 +** You can control which binding is preferentially shown in menus and
 +docstrings by adding a `:advertised-binding' property to the corresponding
 +command's symbol.  That property can hold a single binding or a list
 +of bindings.
 +
 +** Network and process changes
 +
 +*** start-process-shell-command and start-file-process-shell-command
 +now only take a single `command' argument.
 +
 +*** The new variable `process-file-side-effects' should be set to nil
 +if a `process-file' call does not change a remote file.  This allows
 +file name handlers such as Tramp to optimizations.
 +
 +*** make-network-process can now also create `seqpacket' Unix sockets.
 +
 +** Loading changes
 +
 +*** eval-next-after-load is obsolete.
 +
 +*** New hook `after-load-functions' run after loading an Elisp file.
 +
 +** Byte compilation changes
 +
 +*** Changing the file-names generated by byte-compilation by redefining
 +the function `byte-compile-dest-file' before loading bytecomp.el is obsolete.
 +Instead, customize byte-compile-dest-file-function.
 +
 +*** `byte-compile-warnings' has new members, `constants' and `suspicious'.
 +
 +** New macro with-silent-modifications to tweak text properties without
 +affecting the buffer's modification state.
 +
 +** Hash tables have a new printed representation that is readable.
 +The feature `hashtable-print-readable' identifies this new
 +functionality.
 +
 +** New functions for performing Unicode normalization:
 +ucs-normalize-NFD-region, ucs-normalize-NFD-string,
 +ucs-normalize-NFC-region, ucs-normalize-NFC-string,
 +ucs-normalize-NFKD-region, ucs-normalize-NFKD-string,
 +ucs-normalize-NFKC-region, ucs-normalize-NFKC-string,
 +ucs-normalize-HFS-NFD-region, ucs-normalize-HFS-NFD-string,
 +ucs-normalize-HFS-NFC-region, ucs-normalize-HFS-NFC-string.
 +
 +** Face aliases can now be marked as obsolete, using the macro
 +`define-obsolete-face-alias'.
 +
 +** New function `window-full-height-p', analogous to the full-width version.
 +
 +\f
 +* Changes in Emacs 23.2 on non-free operating systems
 +
 +** On MS-Windows, `display-time' now displays the system load average
 +as well as the time, as it does on GNU and Unix.
 +
 +\f
 +* Installation Changes in Emacs 23.1
 +
 +** The default X toolkit is now Gtk+, rather than Lucid.
 +The configure option `--with-gtk' has been removed.  Gtk is now the
 +default toolkit, but you can use --with-x-toolkit=gtk if necessary.
 +
 +** New font code.
 +Fonts are handled by new code capable of dealing with multiple font
 +backends.  This uses the freetype and fontconfig libraries.
 +
 +*** Emacs now accepts font names supplied in the fontconfig format
 +(e.g. "monospace-12:bold") and GTK format (e.g. "Monospace Bold 12").
 +
 +*** Added support for local fonts (fonts installed on the machine
 +where Emacs is running).
 +
 +*** Added support for the Xft library for antialiasing.
 +
 +*** Added support for the otf library for complex text layout by
 +OpenType fonts.
 +
 +*** Added support for the m17n library for text shaping.
 +
 +** Changes to image support
 +
 +*** configure now checks for libgif before libungif when searching for
 +a GIF library.
 +
 +*** Emacs now supports the SVG image format through librsvg2.
 +
 +*** Emacs now supports multi-page TIFF images.
 +
 +** New NeXTSTEP-based port.
 +This provides support for GNUstep (via the GNUstep libraries) and Mac
 +OS X (via the Cocoa libraries).
 +
 +Specify --with-ns to configure for this.  By default, a self-contained
 +app will be built (containing all lisp).  To install/share lisp with
 +other emacsen (e.g. X11 build) use --disable-ns-self-contained.  See
 +nextstep/README and nextstep/INSTALL in the Emacs source directory.
 +
 +** Mac OS X is no longer supported via Carbon.
 +Use the NeXTSTEP port, described above.
 +
 +** The new configuration option "--with-dbus" enables D-Bus language
 +bindings for Emacs.
 +
 +** Support for many obsolete platforms has been removed.
 +See the list at the end of etc/MACHINES for details.
 +
 +*** Support for systems without alloca has been removed.
 +
 +*** Support for Sun windows has been removed.
 +
 +*** The `emacstool' utility has been removed.
 +
 +** The following platforms will be removed in a future Emacs version:
 +If you are still using Emacs on one of these platforms, please email
 +emacs-devel@gnu.org to inform the Emacs developers.
 +
 +*** Old GNU/Linux systems based on libc version 5.
 +
 +*** Old FreeBSD, NetBSD, and OpenBSD systems based on the COFF
 +executable format.
 +
 +*** Solaris versions 2.6 and below.
 +
 +*** Solaris on IBM RS6000 machines.
 +
 +*** UNIX System V (the original SysV, not later platforms based on it).
 +
 +*** Unixware on non-x86 machines.
 +
 +*** Platforms not supporting shared libraries (i.e., requiring the
 +NO_SHARED_LIBS compilation flag).
 +
 +** The configure options `--with-gcc', `--without-gcc' have been removed.
 +Configure will use gcc by default.  Set the CC environment variable if
 +you need control over which C compiler is used.
 +
 +** The refcards are now shipped as PDF files.
 +
 +** The manuals are now licensed under the GNU Free Documentation License v1.3,
 +or any later version.
 +
 +** Emacs 23 comes with a new set of default icons.
 +Various resolutions are available as etc/images/icons/hicolor/*/apps/emacs.png.
 +The Emacs 22 icon is available as `emacs22.png' in the same location.
 +\f
 +* Changes in Emacs 23.1
 +
 +** Improved X Window System support
 +
 +*** Emacs now supports using both X displays and ttys in one session.
 +With an Emacs server active (M-x server-start), `emacsclient -t'
 +creates a tty frame connected to the running emacs server.  You can
 +use any number of different ttys.  `emacsclient -c' creates a new X11
 +frame on the current $DISPLAY (or a tty frame if $DISPLAY is not set).
 +There may be problems if a display exits unexpectedly and Emacs is compiled
 +with Gtk+, see etc/PROBLEMS.
 +
 +You can test for the presence of this feature in your Lisp code by
 +testing for the `multi-tty' feature.
 +
 +*** Emacs starts in the background, as a daemon, when given the
 +--daemon command line argument.  It disconnects from the terminal and
 +starts the server.  Clients can connect and create graphical or
 +terminal frames using emacsclient.
 +
 +**** emacsclient starts emacs in daemon mode and connects to it when
 +--alternate-editor="" is used (or when the evironment variable
 +ALTERNATE_EDITOR is set to "") and emacsclient cannot connect to an
 +emacs server.
 +
 +*** The new command close-display-connection closes a connection to a
 +remote display.  There are some bugs for Gtk+.  See etc/PROBLEMS.
 +
 +*** Emacs now supports the XEmbed specification.
 +You can embed Emacs in another application on X11.  The new command line
 +option --parent-id is used to pass the parent window id to Emacs.  See
 +http://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html
 +for details about XEmbed.
 +
 +*** Emacs can now set the frame opacity.
 +The opacity of a frame can be controlled by setting the `alpha' frame
 +parameter.  This only takes effect on a compositing window manager for
 +the X Window System, such as Compiz, Beryl and Compiz Fusion, on Mac
 +OS X, or on Windows 2000 and later versions of Windows.
 +
 +The alpha parameter should be an integer between 0 (transparent) and
 +100 (opaque), or a float number between 0.0 and 1.0.  It can also be a
 +cons cell (ACTIVE . INACTIVE), where ACTIVE is the opacity of an
 +active frame and INACTIVE is the opacity of non-active frames.
 +
 +The variable `frame-alpha-lower-limit' defines a lower bound for the
 +opacity; the default is 20.
 +
 +** Internationalization changes
 +
 +*** The Emacs character set is now a superset of Unicode.
 +(It has about four times the code space, which should be plenty).
 +
 +The internal encoding used for buffers and strings is now
 +Unicode-based and called `utf-8-emacs' (`emacs-internal' is an alias
 +for this).  This encoding is backward-compatible with Unicode's UTF-8
 +encoding.  The internal encoding previously used by Emacs,
 +`emacs-mule', is still available for reading and writing files.
 +
 +During byte-compilation, Emacs 23 uses `utf-8-emacs' to write files.
 +As a result, byte-compiled files containing non-ASCII characters can't
 +be read by earlier versions of Emacs.  Files compiled by Emacs 20, 21,
 +or 22 are loaded correctly as `emacs-mule' (whether or not they
 +contain multibyte characters).  This takes somewhat more time, so it
 +may be worth recompiling existing .elc files which don't need to be
 +shared with older Emacsen.
 +
 +*** There are new coding systems/aliases; see M-x list-coding-systems.
 +
 +*** There is a new charset implementation with many new charsets.
 +See M-x list-character-sets.  New charsets can be defined conveniently
 +as tables of unicodes.
 +
 +*** There are new language environments for Chinese-GBK,
 +Chinese-GB18030, Khmer, Bengali, Punjabi, Gujarati, Oriya, Telugu,
 +Sinhala, and TaiViet.
 +
 +*** The minor modes unify-8859-on-encoding-mode and
 +unify-8859-on-decoding-mode are obsolete.
 +
 +*** `ucs-insert' is bound to `C-x 8 RET' and in addition to hex numbers
 +accepts numbers in hash notation (e.g. #o21430 for octal, or #10r8984 for
 +decimal).  It also accepts Unicode character names with completion.
 +
 +*** The `cyrillic-translit' input method supports many new characters.
 +Common typographical characters available from Unicode were added to
 +`cyrillic-translit': punctuation marks, accented characters, fractions,
 +and others.
 +
 +** Emacs now supports serial port access on GNU/Linux, Unix, and
 +Windows.  The new command `serial-term' starts an interactive terminal
 +on a serial port.  The serial port can be configured at runtime with
 +the mode-line mouse menu.
 +
 +** Menu Bar changes
 +
 +*** In the Options menu, the "Set Default Font" item applies the
 +selected font to the `default' face on all frames, not just the
 +current frame.  Furthermore, if Emacs is compiled with both GTK and
 +Fontconfig support, the "Set Default Font" item uses the GTK font
 +selection dialog instead of an Emacs pop-up menu.
 +
 +*** The font setting chosen by "Set Default Font" is saved if the
 +"Save Options" item is used.
 +
 +*** The Tools menu contains a new Encryption/Decryption submenu.
 +This contains commands provided by EasyPG, the newly-included
 +interface to GnuPG (see New Modes and Packages).
 +
 +*** In the Options menu, the "Truncate Long Lines in the Buffer" entry
 +has been replaced with a submenu offering three different ways to
 +handle long lines: truncation, continuation at the window edge, and
 +the new word wrapping behavior (see Editing Changes, below).
 +
 +*** Improvements to menus for major and minor modes
 +More major and minor modes now have a mode specific menu, and existing
 +mode menus have been improved to include more functionality.
 +
 +** Mode-line changes
 +
 +*** The mode-line displays a `@', instead of `-', if the
 +default-directory for the current buffer is on a remote machine.
 +
 +*** The mode-line displays a mode menu when mouse-1 is clicked on a
 +minor mode, in the same way as it already did for major modes.
 +
 +*** The `mode-line-emphasis' face is used to highlight certain
 +mode-line information (e.g. waiting for a VC command to finish).
 +
 +*** The mode-line tooltips have been improved to provide more details.
 +
 +*** The VC, line/colum number and minor mode indicators on the mode
 +line are now interactive: mouse-1 can be used on them to pop up a menu.
 +
 +** File deletion can make use of the Recycle Bin or system Trash folder.
 +Set `delete-by-moving-to-trash' non-nil to use this.  Deleted files
 +and directories will then be sent to the Recycle Bin on Windows, and
 +to `trash-directory' on other systems.
 +
 +** Directory-local variables can now be defined.
 +By default, Emacs looks in .dir-locals.el for directory-local
 +variables.  For more information, see `dir-locals-set-directory-class'
 +and `dir-locals-set-class-variables'.
 +
 +** Emacs can now use `auth-source' for authentication.
 +`smtpmail' and `url' (Tramp and Gnus also) use `auth-source' to obtain
 +login names and passwords.  The match, if found, is reported
 +in *Messages* with the password blanked out.
 +
 +** `where-is-preferred-modifier' can specify your favorite modifier.
 +
 +\f
 +* Startup Changes in Emacs 23.1
 +
 +** The option `inhibit-startup-screen' (with aliases to old names
 +`inhibit-splash-screen' and `inhibit-startup-message') doesn't inhibit
 +display of the initial message in the *scratch* buffer.  If you don't
 +want to display the initial message in the *scratch* buffer at startup,
 +you can set the option `initial-scratch-message' to nil.
 +
 +** New user option `initial-buffer-choice' specifies what to display
 +after starting Emacs: startup screen, *scratch* buffer, visiting a
 +file or directory.
 +
 +** New alias `argv' for `command-line-args-left'
 +This is a convenience alias, so that one can write `(pop argv)'
 +inside of --eval command line arguments in order to access
 +following arguments.
 +
 +** The abbrev file is no longer read at startup in batch mode.
 +
 +** Emacs now supports invocation by an X session manager.
 +It can save a session and restore it later.  See the documentation of
 +the functions `emacs-session-save' and `emacs-session-restore'.
 +(Actually, this feature was introduced with Emacs 22, but it was not
 +documented.)
 +\f
 +* Incompatible Editing Changes in Emacs 23.1
 +
 +** In Dired, `dired-flag-garbage-files' is rebound from `&' to `%&'
 +on the regexp command prefix map.
 +
 +** In Dired-x, all command guesses for ! are now added to the default
 +list accessible by M-n instead of pushing all guesses temporarily into
 +the history list.
 +
 +** In Isearch mode, a special case of typing `C-w' at the beginning of
 +the minibuffer that toggles word search (i.e. using key sequences
 +`C-s RET C-w' or `C-s M-e C-w') is obsolete.  You can use the global key
 +`M-s w' to start word search, or type `M-s w' in Isearch mode to
 +toggle word search.  To start nonincremental word search you can now use
 +`M-s w RET' and `M-s w C-r RET' instead of `C-s RET C-w' and `C-r RET C-w'.
 +
 +** In Info, `Info-search' is unbound from `M-s' to allow using `M-s w'
 +for word search as well as other search commands from the global prefix
 +key `M-s'.  `Info-search' is still bound to `s', and also incremental
 +search commands `C-s', `C-M-s', `C-r', `C-M-r' are available for searching
 +through multiple Info nodes, together with their nonincremental versions
 +`C-s RET', `C-r RET', `C-M-s RET', `C-M-r RET', `M-s w RET'.
 +
 +** In Text mode, `center-line' and `center-paragraph' are rebound from
 +`M-s' and `M-S' to global keys `M-o M-s' and `M-o M-S' on the global
 +prefix map `M-o', which is intended for such formatting commands.
 +
 +** The following input methods were removed in Emacs 22.2, but this was
 +not advertised: danish-alt-postfix, esperanto-alt-postfix,
 +finnish-alt-postfix, german-alt-postfix, icelandic-alt-postfix,
 +norwegian-alt-postfix, scandinavian-alt-postfix, spanish-alt-postfix,
 +and swedish-alt-postfix.  Use the versions without "alt-", which are
 +identical.
 +
 +\f
 +* Editing Changes in Emacs 23.1
 +
 +** The C-n and C-p line-motion commands now move by screen lines,
 +taking continued lines and variable-width characters into account.
 +Setting `line-move-visual' to nil reverts this to the previous
 +behavior (i.e., motion by logical lines based on buffer contents
 +alone).
 +
 +** C-x C-c now invokes `save-buffers-kill-terminal', and C-z now
 +invokes `suspend-frame'.  These changes are for compatibility with the
 +new multi-tty support (see `Improved X Window System support' above).
 +
 +** Mark changes
 +
 +*** Transient Mark mode is now on by default.
 +
 +*** mark-even-if-inactive now defaults to t
 +
 +*** When Transient Mark mode is on, C-SPC C-SPC pushes a mark without
 +activating it.
 +
 +*** When Transient Mark mode is on, M-q now fills the region if the
 +region is active.  Otherwise, it fills the current paragraph.
 +
 +*** When Transient Mark mode is on, M-$ now checks spelling of the
 +region if the region is active.  Otherwise, it checks spelling of the
 +word at point.
 +
 +*** When Transient Mark mode is on, TAB now indents the region if the
 +region is active.
 +
 +*** The variable `use-empty-active-region' controls whether an empty
 +active region in Transient Mark mode should make commands operate on
 +that empty region.
 +
 +** Temporarily active regions
 +
 +*** The new variable shift-select-mode, non-nil by default, controls
 +shift-selection.  When Shift Select mode is on, shift-translated
 +motion keys (e.g. S-left and S-down) activate and extend a temporary
 +region, similar to mouse-selection.
 +
 +*** Temporarily active regions, created using shift-selection or
 +mouse-selection, are not necessarily deactivated in the next command.
 +They are only deactivated after point motion commands that are not
 +shift-translated, or after commands that would ordinarily deactivate
 +the mark in Transient Mark mode (e.g., any command that modifies the
 +buffer).
 +
 +** Minibuffer and completion changes
 +
 +*** Emacs may ask for confirmation before opening a non-existent file
 +or buffer.  By default, Emacs requests confirmation if you type RET
 +immediately after TAB, and the resulting input is not an existing file
 +or buffer; this usually happens when the minibuffer input did not
 +complete far enough and you entered RET by mistake.  In that case,
 +Emacs puts the message "[Confirm]" in the minibuffer; type RET again
 +to create the file or buffer.
 +
 +The new variable confirm-nonexistent-file-or-buffer determines whether
 +Emacs asks for confirmation.  The default value is `after-completion'.
 +If you change it to t, Emacs always asks for confirmation; if you
 +change it to nil, Emacs never asks for confirmation.
 +
 +*** The rules for performing completion have been changed.
 +When generating completion alternatives, Emacs now takes the
 +minibuffer text after point, if any, into account: this text is
 +treated as a substring of the remaining part of the completion
 +alternative (i.e., the part not matched by the minibuffer text before
 +point).  If no completion alternatives are found this way, Emacs
 +attempts to perform partial-completion.  If still no completion
 +alternatives are found, we fall back on the Emacs 22 rules for
 +performing completion.
 +
 +The new variable `completion-styles' can be customized to choose your
 +favorite completion style.
 +
 +*** When M-n in the minibuffer reaches the end of the list of defaults,
 +it adds the completion list to the end, so next M-n continues putting
 +completion items to the minibuffer.  The same principle applies to
 +incremental search commands as well: C-s or C-M-s starts searching
 +the default values and after the end of defaults they continue
 +searching minibuffer completion items.
 +
 +*** Minibuffer input of shell commands now comes with completion.
 +
 +*** In the `C-x d' (Dired) prompt, typing M-n gives the visited file
 +name of the current buffer.
 +
 +*** In the M-! (shell-command) prompt, M-n provides some default commands.
 +These are guessed using the file extension of the current file, based
 +on the file-handlers specified in the operating system's `mailcap'
 +file.  The ! command in Dired (dired-do-shell-command) works
 +similarly, using the file displayed on the current line.
 +
 +*** A list of regexp default values is available via M-n for `occur',
 +`keep-lines', `flush-lines' and `how-many'.  This list includes the active
 +region in transient-mark-mode, the word under the cursor, the last Isearch
 +regexp, the last Isearch string and the last replacement regexp.
 +
 +*** When enable-recursive-minibuffers is non-nil, operations which use
 +switch-to-buffer (such as C-x b and C-x C-f) do not fail any more when
 +used in a minibuffer or a dedicated window.  Instead, they fallback on
 +using pop-to-buffer, which will use some other window.  This change
 +has no effect when enable-recursive-minibuffers is nil (the default).
 +
 +*** Isearch started in the minibuffer searches in the minibuffer history.
 +Reverse Isearch commands (C-r, C-M-r) search in previous minibuffer
 +history elements, and forward Isearch commands (C-s, C-M-s) search in
 +next history elements.  When the reverse search reaches the first history
 +element, it wraps to the last history element, and the forward search
 +wraps to the first history element.  When the search is terminated, the
 +history element containing the search string becomes the current.
 +
 +*** The variable read-file-name-completion-ignore-case overrides
 +completion-ignore-case for file name completion.
 +
 +*** The variable read-buffer-completion-ignore-case overrides
 +completion-ignore-case for buffer name completion.
 +
 +*** The new command `minibuffer-force-complete' chooses one of the
 +possible completions, rather than stopping at the common prefix.
 +
 +*** If `completion-auto-help' is `lazy', Emacs shows the completions
 +buffer only on the second attempt to complete.  This was already
 +supported in `partial-completion-mode'.
 +
 +** Face changes
 +
 +*** S-down-mouse-1 now pops up a menu for changing the font and text
 +size of the default face in the current buffer.  The face is changed
 +via face remapping (see Lisp changes, below).
 +
 +*** New commands to change the default face size in the current buffer.
 +To increase it, type `C-x C-+' or `C-x C-='.  To decrease it, type
 +`C-x C--'.  To restore the default (global) face size, type `C-x C-0'.
 +These work via Text Scale mode, a new minor mode.
 +
 +The final key in the above commands may be repeated without the
 +leading `C-x', e.g. `C-x C-= C-= C-=' increases the face height by
 +three steps.  Each step scales the height of the default face by the
 +value of the variable `text-scale-mode-step'.
 +
 +*** The commands buffer-face-mode and buffer-face-set can be used to
 +remap the default face in the current buffer.  See "Buffer Face mode",
 +under New Modes and Packages.
 +
 +** Primary selection changes
 +
 +*** You can disable kill ring commands from accessing the primary
 +selection by setting `x-select-enable-primary' to nil.
 +
 +** Continuation lines can now be wrapped at word boundaries
 +(word-wrapping).  This is controlled by the new per-buffer variable
 +`word-wrap'.  Word wrapping does not take place if continuation lines
 +are not shown, e.g. if truncate-lines is non-nil.  The most convenient
 +way to enable word-wrapping is using the new minor mode Visual Line
 +mode; in addition to setting `word-wrap' to t, this rebinds some
 +editing commands to work on screen lines rather than text lines.  See
 +New Modes and Packages, below.
 +
 +** Window management changes
 +
 +*** truncate-partial-width-windows now accepts integer values, which
 +specify a minimum window width for partial-width windows, below which
 +lines are truncated.  The default has been changed to 50.
 +
 +*** The new command balance-windows-area balances windows both
 +vertically and horizontally.
 +
 +*** pop-to-buffer now always sets input focus when the popped-to window
 +is on a different frame.
 +
 +** Miscellaneous changes:
 +
 +*** C-l is bound to the new command recenter-top-bottom, rather than recenter.
 +This moves the current line to window center, top and bottom on
 +successive invocations.
 +
 +*** scroll-preserve-screen-position also preserves the column position.
 +
 +*** If `yank-pop-change-selection' is t, rotating the kill ring also
 +updates the selection or clipboard to the current yank, just as M-w
 +would do so with the text it copies to the kill ring.
 +
 +*** C-M-% now shows replacement as it would look in the buffer, with
 +`\N' and `\&' substituted according to the match.  Old behavior can be
 +restored by customizing `query-replace-show-replacement'.
 +
 +*** The command shell prompts for the default directory, when it is
 +called with a prefix and the default directory is a remote file name.
 +This is because some file name handlers (like ange-ftp) are not able to
 +run processes remotely.
 +
 +*** The new command kill-matching-buffers kills buffers whose name
 +matches a regexp.
 +
 +*** The value of comment-style now defaults to `indent'.
 +Thefore, comment-start markers are inserted at the current indentation
 +of the region to comment, rather than the leftmost column.
 +
 +*** The new commands `pp-macroexpand-expression' and
 +`pp-macroexpand-last-sexp' pretty-print macro expansions.
 +
 +*** The new command `set-file-modes' allows to set file's mode bits.
 +The mode bits can be specified in symbolic notation, like with GNU
 +Coreutils, in addition to an octal number.  `chmod' is a new
 +convenience alias for this function.
 +
 +*** `next-error-recenter' specifies how next-error should recenter the
 +visited source file.  Its value can be a number (for example, 0 for
 +top line, -1 for bottom line), or nil for no recentering.
 +
 +*** When typing in a password in the echo area, C-y yanks the current
 +kill into the password.
 +
 +*** Tooltip frame parameters `font' and `color' in `tooltip-frame-parameters'
 +are ignored.  Customize the `tooltip' face instead.
 +
 +*** `mkdir' is a new convenience alias for `make-directory'.
 +\f
 +* New Modes and Packages in Emacs 23.1
 +
 +** Auto Composition Mode is a minor mode that composes characters
 +automatically when they are displayed.  It is globally on by default.
 +It uses `auto-composition-function' (default `auto-compose-chars').
 +
 +** Bubbles, a new game, is similar to SameGame.
 +
 +** Buffer Face mode is a minor mode for remapping the default face in
 +the current buffer.  The variable `buffer-face-mode-face' specifies
 +the face to remap to.  The command `buffer-face-set' prompts for a
 +face name, sets `buffer-face-mode-face' to it, and enables
 +buffer-face-mode.  See "Face changes", under Editing Changes, for a
 +description of face remapping.
 +
 +** butterfly flips the desired bit on the drive platter.
 +See http://xkcd.com/378/
 +
 +** bug-reference.el provides clickable links to bug reports.
 +
 +** dbus.el provides D-Bus language bindings.
 +D-Bus is an inter-process communication mechanism for applications
 +residing on the same host.  See the manual for details.
 +
 +** DocView mode allows viewing of PDF, PostScript and DVI documents.
 +One can also search for a regular expression in the document.  For
 +details, see the commentary in doc-view.el.
 +
 +PDF and DVI files are now opened in Doc View mode by default.
 +
 +In Postcript mode, C-c C-c launches Doc View minor mode for viewing
 +the postscript file.
 +
 +** EasyPG provides an interface to the GNU Privacy Guard (GnuPG).
 +It includes a GnuPG keyring browser, cryptographic operations on
 +regions and files, and automatic encryption of *.gpg files.  For
 +details, see the EasyPG Assistant User's Manual.
 +
 +** json.el is a library for parsing and generating JSON
 +(JavaScript Object Notation), a lightweight data-interchange format.
 +
 +** linum.el is a new minor mode to display line numbers for the
 +current buffer.
 +
 +** mairix.el is an interface to mairix, a free tool for indexing and
 +searching locally stored mail.  It allows you to query mairix and
 +display the search results with Rmail, Gnus and VM.  Note that there
 +is an existing Gnus back end, nnmairix.el, which should be used with
 +Maildir/MH setups.
 +
 +** minibuffer-depth-indicate-mode shows the minibuffer depth in the prompt.
 +
 +** nXML Mode
 +This is a new mode for editing XML documents.  It allows a schema to
 +be associated with the XML document being edited, using Relax NG as
 +the schema language.  The schema is used to provide two key features:
 +
 +*** Continuous validation.  nXML validates as you type, highlighting
 +any invalid parts of your document.
 +
 +*** Completion.  nXML can assist you in entering an element name,
 +attribute name or data value by using information about what is
 +allowed by the schema in that context.
 +
 +** proced.el provides a Dired-like interface for operating on
 +processes.  Proced makes an Emacs buffer containing a listing of the
 +current processes.  You can use the normal Emacs commands to move
 +around in this buffer, and special Proced commands to operate on the
 +processes listed.  It is currently only functional on GNU/Linux,
 +MS-Windows and Solaris.
 +
 +** Remember Mode is a mode for jotting down things to remember.
 +Notes can be saved to a Diary file.  For details, see the Remember
 +Manual.
 +
 +** RST mode is a major mode for editing reStructuredText files.
 +
 +** Ruby mode is a major mode for Ruby files.
 +
 +** Visual Line mode provides support for editing by visual lines.
 +It turns on word-wrapping in the current buffer, and rebinds C-a, C-e,
 +and C-k to commands that operate by visual lines instead of logical
 +lines.  This is a more reliable replacement for longlines-mode.
 +This can also be turned on using the menu bar, via
 +Options -> Line Wrapping in this Buffer -> Word Wrap
 +
 +** xesam.el is an implementation of Xesam, an interface to (desktop)
 +search engines like Beagle, Strigi, and Tracker.  The Xesam API
 +requires D-Bus for communication.
 +
 +** zeroconf.el offers service discovery and service publishing
 +interfaces according to the zeroconf specification.  It communicates
 +with Avahi, a zeroconf implementation, via D-Bus messages on systems
 +which have installed this software.
 +
 +** There is a new `whitespace' package.
 +(The pre-existing one has been renamed to `old-whitespace'.)
 +Now, besides reporting bogus blanks, the whitespace package has a
 +minor mode and a global minor mode to visualize blanks (TAB, (HARD)
 +SPACE and NEWLINE).  The visualization is made via faces and/or display
 +table.  It can also indicate lines that extend beyond a given column,
 +trailing blanks, and empty lines at the start or end of a buffer.
 +See `whitespace-style' for more details.  The `whitespace-action' option
 +specifies what to do when a buffer is visited, killed, or written.
 +
 +\f
 +* Changes in Specialized Modes and Packages in Emacs 23.1
 +
 +** Abbrev has been rewritten in Elisp and extended with more flexibility.
 +
 +*** New functions: abbrev-get, abbrev-put, abbrev-table-get, abbrev-table-put,
 +abbrev-table-p, abbrev-insert, abbrev-table-menu.
 +
 +*** Special hook `abbrev-expand-functions' obsoletes `pre-abbrev-expand-hook'.
 +
 +*** `make-abbrev-table', `define-abbrev', `define-abbrev-table' all take
 +extra arguments for arbitrary properties.
 +
 +*** New variable `abbrev-minor-mode-table-alist'.
 +
 +*** `local-abbrev-table' can hold a list of abbrev-tables.
 +
 +*** Abbrevs have now the following special properties:
 +`:count', `:system', `:enable-function', `:case-fixed'.
 +
 +*** Abbrev-tables have now the following special properties:
 +`:parents', `:case-fixed', `:enable-function', `:regexp',
 +`abbrev-table-modiff'.
 +
 +** Apropos
 +
 +*** `apropos-library' describes the elements defined in a given library.
 +
 +*** Set `apropos-compact-layout' is you want a more compact (but wider) layout.
 +
 +** Archive Mode has basic support to browse Rar archives.
 +Note, however, that the free version of the unrar command only handles
 +versions 1 and 2 of the Rar format.
 +
 +** BibTeX mode
 +
 +*** New command `bibtex-initialize' (re)initializes BibTeX buffers.
 +
 +*** New `bibtex-entry-format' options `whitespace', `braces', and
 +`string', disabled by default.
 +
 +*** New variable `bibtex-cite-matcher-alist' contains rules to
 +identify cited keys in BibTeX entries, used by `bibtex-find-crossref'.
 +
 +*** Command `bibtex-url' allows multiple URLs per entry.
 +
 +** Bookmarks
 +
 +*** bookmark.el saves bookmarks in a pre-Emacs-23-incompatible file format
 +bookmark.el can read a .emacs.bmk file saved by an older Emacs, but an
 +older Emacs cannot read one saved by Emacs 23.
 +
 +** Calendar and diary
 +
 +*** There is a new date style, `iso', essentially year/month/day.
 +The variable `european-calendar-style' is obsolete - use `calendar-date-style'.
 +Similarly, the commands `american-calendar' and `european-calendar'
 +should be replaced by `calendar-set-date-style'.
 +
 +*** The calendar namespace has been rationalized.
 +All functions and variables now begin with a `calendar-', `diary-', or
 +`holiday-' prefix.  The various calendar systems have secondary
 +prefixes, eg `calendar-french-'.  The old names you are likely to use
 +directly still exist, for the time being, as aliases, but please start
 +using the new names.
 +
 +*** The whitespace in the calendar layout can be customized.
 +See the variables:
 +calendar-left-margin, calendar-intermonth-spacing, calendar-column-width,
 +calendar-day-header-width, and calendar-day-digit-width.
 +
 +*** Text (e.g. ISO weeks) can be displayed between the calendar months.
 +See the variables calendar-intermonth-header and calendar-intermonth-text.
 +
 +*** The function `holiday-chinese' computes holidays on the Chinese calendar.
 +It has been used to add items to the list `holiday-oriental-holidays'.
 +
 +*** `diary-remind' accepts a negative number -DAYS as a shorthand for
 +the list (1 2 ... DAYS).
 +
 +** Change Log mode
 +
 +*** The new command C-c C-f (change-log-find-file) finds the file
 +associated with the current log entry.
 +
 +*** The new command C-c C-c (change-log-goto-source) goes to the
 +source code associated with a log entry.
 +
 +** Compile and grep modes
 +
 +*** The mode-line entry for the *compilation* and *grep* buffer is color coded.
 +It has different colors for to show that: (a) the command is still
 +running, (b) successful completion, (c) error.
 +
 +*** compilation-auto-jump-to-first-error tells `compile' to jump to
 +the first error encountered during compilations.
 +
 +*** compilation-scroll-output accepts a new value, `first-error', which
 +says to stop auto scrolling at the first error that occurs.
 +
 +*** The `cc' alias for C++ files in `grep-file-aliases' has been
 +improved.  `hh' can be used to match C++ header files and `cchh' both
 +C++ sources and headers.
 +
 +** Copyright
 +
 +*** You can specify your copyright holders' names.
 +Only copyright lines with holders matching `copyright-names-regexp' are
 +considered for update.
 +
 +*** Copyrights can be at the end of the buffer.
 +This is controlled by `copyright-at-end-flag' (used by, e.g., change-log-mode).
 +
 +** Custom
 +
 +*** defcustom accepts new keyword arguments, `:safe' and `:risky', which
 +set a variable's `safe-local-variable' and `risky-local-variable' property.
 +
 +** Diff mode
 +
 +*** diff-refine-hunk highlights word-level details of changes in a diff hunk.
 +It's used automatically as you move through hunks, see
 +diff-auto-refine-mode.  It is bound to `C-c C-b'.
 +
 +*** diff-add-change-log-entries-other-window iterates through the diff
 +buffer and tries to create ChangeLog entries for each change.
 +It is bound to `C-x 4 A'.
 +
 +*** Turning on `whitespace-mode' in a diff buffer will show trailing
 +whitespace problems in the modified lines.
 +
 +** Dired
 +
 +*** In Dired, C-x C-q now runs the command wdired-change-to-wdired-mode,
 +and C-x C-q in wdired-mode exits it with asking a question about
 +saving changes.
 +
 +*** `&' runs the command `dired-do-async-shell-command' that executes
 +the command asynchronously without the need to manually add ampersand
 +to the end of the command.  Its output appears in the buffer `*Async Shell
 +Command*'.
 +
 +*** `M-s f C-s' and `M-s f M-C-s' run Isearch that matches only at file names.
 +When a new user option `dired-isearch-filenames' is t, then even ordinary
 +Isearch started with `C-s' and `C-M-s' matches only at file names in the
 +Dired buffer.  When `dired-isearch-filenames' is `dwim' then activation of
 +file name Isearch depends on the position of point - if point is on a file
 +name initially, then Isearch matches only file names, otherwise it matches
 +everywhere in the Dired buffer.  You can toggle file names matching on or
 +off by typing `M-s f' in Isearch mode.
 +
 +*** `M-s a C-s' and `M-s a M-C-s' run multi-file Isearch on the marked files.
 +They visit the first marked file in the sequence and display the usual Isearch
 +prompt for a string or a regexp where all Isearch commands are available.
 +
 +*** `Q' in Dired provides two new keys for multi-file replacement.
 +The upper case key `Y' replaces all remaining matches in all remaining files
 +with no more questions.  The upper case key `N' stops doing replacements
 +in the current file and skips to the next file.  These multi-file keys
 +are available for all commands that use `tags-query-replace'
 +including `dired-do-query-replace-regexp', `vc-dir-query-replace-regexp',
 +`reftex-query-replace-document'.
 +
 +** Fortran
 +
 +*** The line length of fixed-form Fortran is not fixed at 72 any more.
 +Customize the variable `fortran-line-length' to change it.
 +
 +*** In Fortran mode, M-; is now bound to the standard comment-dwim,
 +rather than fortran-indent-comment.
 +
 +*** (The increasingly misnamed) F90 mode supports Fortran 2003 syntax.
 +
 +** Gnus
 +
 +*** The Gnus package has been updated
 +There are many new features, bug fixes and improvements; see the file
 +GNUS-NEWS or the node "No Gnus" in the Gnus manual for details.
 +
 +*** In Emacs 23, Gnus uses Emacs' new internal coding system `utf-8-emacs' for
 +saving articles, drafts, and ~/.newsrc.eld.  These file may not be read
 +correctly in Emacs 22 and below.  If you want to Gnus across different Emacs
 +versions, you may set `mm-auto-save-coding-system' to `emacs-mule'.
 +
 +*** Passwords are consistently loaded through `auth-source'
 +Gnus can use `auth-source' for POP and IMAP passwords.  Also see that
 +`smtpmail' and `url' support `auth-source' for SMTP and HTTP/HTTPS/RSS
 +authentication respectively.
 +
 +** Help mode
 +
 +*** New macro `with-help-window' should set up help windows better
 +than `with-output-to-temp-buffer' with `print-help-return-message'.
 +
 +*** New option `help-window-select' permits to customize whether help
 +window shall be automatically selected when invoking help.
 +
 +*** New variable `help-window-point-marker' permits one to specify a new
 +position for point in help window (for example in `view-lossage').
 +
 +** Isearch
 +
 +*** New command `isearch-forward-word' bound globally to `M-s w' starts
 +incremental word search.  New command `isearch-toggle-word' bound to the
 +same key `M-s w' in Isearch mode toggles word searching on or off
 +while Isearch is active.
 +
 +*** New command `isearch-highlight-regexp' bound to `M-s h r' in Isearch
 +mode runs `highlight-regexp' (`hi-lock-face-buffer') with the current
 +search string as its regexp argument.  The same key `M-s h r' and
 +other keys on the `M-s h' prefix are bound globally to the command
 +`highlight-regexp' and other hi-lock commands.
 +
 +*** New command `isearch-occur' bound to `M-s o' in Isearch mode
 +runs `occur' with the current search string.  The same key `M-s o'
 +is bound globally to the command `occur'.
 +
 +*** Isearch can now search through multiple ChangeLog files.
 +When running Isearch in a ChangeLog file, if the search fails,
 +then another C-s tries searching the previous ChangeLog,
 +if there is one (e.g. going from ChangeLog to ChangeLog.12).
 +This is enabled if multi-isearch-search is non-nil.
 +
 +*** Two new commands to start Isearch on a list of marked buffers
 +for buff-menu.el and ibuffer.el are bound to the keys `M-s a C-s' and
 +`M-s a M-C-s'.
 +
 +*** The part of an Isearch that failed to match is highlighted in
 +`isearch-fail' face.
 +
 +*** `C-h C-h' in Isearch mode displays isearch-specific Help screen,
 +`C-h b' displays all Isearch key bindings, `C-h k' displays the full
 +documentation of the given Isearch key sequence, `C-h m' displays
 +documentation for Isearch mode.  All the other Help commands exit
 +Isearch mode and execute their global definitions.
 +
 +*** When started in the minibuffer, Isearch searches in the minibuffer
 +history.  See `Minibuffer changes', above.
 +
 +** MH-E
 +
 +*** Upgraded to MH-E version 8.2.  See MH-E-NEWS for details.
 +
 +** Python
 +*** The file etc/emacs.py now supports both Python 2 and 3, meaning
 +that either version can be used as inferior Python by python.el.
 +
 +*** Python mode now has `pdbtrack' functionality.  When using pdb to
 +debug a Python program, pdbtrack notices the pdb prompt and displays
 +the source file and line that the program is stopped at, much the same
 +way as gud-mode does for debugging C programs with gdb.
 +
 +** Recentf
 +
 +*** The default value of `recentf-keep' prevents from checking of
 +remote files, if there is no established connection to the
 +corresponding remote host.
 +
 +** Rmail
 +
 +*** Rmail no longer converts the messages to Babyl format.
 +Instead, it uses UNIX mbox format, both on disk and in Rmail buffers,
 +and does conversion and decoding when a message is displayed.
 +
 +The first time you visit an Rmail file in Babyl format, Rmail
 +automatically converts it to mbox format.  This is a one-time
 +conversion, but it can take a few minutes, depending on how fast is
 +your machine and on the size of the file.  You should find the rest of
 +Rmail usage unaltered.
 +
 +However, M-x set-rmail-inbox-list now lasts only for one session
 +because there is no way to save the list of inbox files in an
 +mbox-format file.
 +
 +Also, whereas with Babyl format M-x find-file would switch to Rmail
 +mode, with mbox format this is no longer the case (there being no way
 +to add an "-*- rmail-*-" cookie to an mbox file).  Use C-u M-x rmail
 +instead.
 +
 +If you have written any extensions to Rmail, they are likely to need
 +updating.  Conceptually, the Rmail buffer that you see is no longer
 +just a narrowed portion of the whole.  So you cannot access the whole
 +of a message (or message collection) by a simple save-restriction and
 +widen.  Instead, there are two buffers: the rmail-buffer, and the
 +rmail-view-buffer.  The former is the buffer that you see, the latter
 +is invisible.  Most of the time, the invisible `view' buffer contains
 +the full contents of the Rmail file, and the Rmail buffer contains a
 +decoded copy of the current message (with only a subset of the
 +headers).  In this state, Rmail is said to be `swapped'.
 +
 +You may find the following functions useful:
 +
 +`rmail-get-header' and `rmail-set-header' get or set the value of a
 +message header, whether or not it is currently visible.
 +
 +`rmail-apply-in-message' is a general purpose function that calls a
 +function (with arguments) which you specify on the full text of a given
 +message.  To further narrow to just the headers, search forward for "\n\n".
 +
 +*** The new command `rmail-mime' displays MIME messages.
 +It is bound to `v' in Rmail buffers and summaries.  It displays plain
 +text and multipart messages in a temporary buffer, and offers buttons
 +to save attachments.
 +
 +*** The command `rmail-redecode-body' no longer accepts the optional arg RAW.
 +Since Rmail now holds messages in their original undecoded form in a
 +separate buffer, `rmail-redecode-body' no longer encodes the original
 +message, and therefore there should be no need to avoid encoding it.
 +
 +*** The o command is now `rmail-output'.  It is an all-purpose command
 +for copying messages from Rmail and appending them to files.  It
 +handles Babyl-format files as well as mbox-format files, and it
 +handles both kinds properly when they are visited in Emacs.  It always
 +copies the full headers of the message.
 +
 +*** The C-o command is now `rmail-output-as-seen'.  It uses
 +the message as displayed, appending it to an mbox file.
 +
 +*** The modified status of the Rmail buffer is reported in the mode-line.
 +Previously, this information was hidden.
 +
 +** TeX modes
 +
 +*** New option latex-indent-within-escaped-parens
 +permits to customize indentation of LaTeX environments delimited
 +by escaped parens.
 +
 +** T-mouse Mode
 +
 +*** If the gpm mouse server is running and t-mouse-mode is enabled,
 +Emacs uses a Unix socket in a GNU/Linux console to talk to server,
 +rather than faking events using the client program mev.  This C level
 +approach provides mouse highlighting and help echoing in the
 +minibuffer.
 +
 +** Tramp
 +
 +*** New connection methods.
 +The new methods "plinkx", "plink2", "psftp", "sftp" and "fish" have
 +been introduced.  There are also new so-called gateway methods
 +"tunnel" and "socks".
 +
 +*** IPv6 addresses.
 +IPv6 addresses are supported now as host names.  They must be embedded
 +in square brackets, like in "/ssh:[::1]:".
 +
 +*** Multihop syntax has been removed.
 +The pseudo-method "multi" has been removed.  Instead, multi hops
 +can be specified by the new variable `tramp-default-proxies-alist'.
 +
 +*** More default settings.
 +Default values can be set via the variables `tramp-default-user',
 +`tramp-default-user-alist' and `tramp-default-host'.
 +
 +*** Connection information is cached.
 +In order to reduce connection setup, information about used
 +connections is kept persistently in a file.  The name of this file is
 +defined in the variable `tramp-persistency-file-name'.
 +
 +*** Control of remote processes.
 +Running processes on a remote host can be controlled by settings in
 +`tramp-remote-path' and `tramp-remote-process-environment'.
 +
 +*** Success of remote copy is checked.
 +When the variable `file-precious-flag' is set, the success of a remote
 +file copy is checked via the file's checksum.
 +
 +*** Passwords can be read from an authentification file.
 +Tramp uses the package `auth-source' to read passwords from a file, if
 +necessary.
 +
 +** VC and related modes
 +
 +*** VC now supports applying VC operations to a set of files at a time.
 +This enables VC to work much more effectively with changeset-oriented
 +version-control systems such as Subversion, GNU Arch, Mercurial, Git
 +and Bzr.  VC will now pass a multiple-file commit to these systems as
 +a single changeset.
 +
 +*** vc-dir is a new command that displays file names and their VC
 +status.  It allows to apply various VC operations to a file, a
 +directory or a set of files/directories.
 +
 +*** VC switches are no longer appended, rather the first non-nil value is used.
 +(This was for the most part true in Emacs 22, but was not advertised).
 +This is because there is an increasing variety of VC systems, and they
 +do not all accept the same "common" options.  For example, a CVS diff
 +command used to append the values of `vc-cvs-diff-switches',
 +`vc-diff-switches', and `diff-switches'.  Now the first non-nil value
 +from that sequence is used.  The special value `t' means "no switches".
 +
 +*** Clicking on the VC mode-line entry now pops the VC menu.
 +
 +*** The VC mode-line entry now has a tooltip that explains the VC file status.
 +
 +*** In VC Annotate mode, the key bindings have changed to use lower
 +case keys instead of the upper case keys used in the past.
 +
 +*** In VC Annotate mode, for VC systems that support changesets, you can
 +see the diff for the whole changeset (not only for the current file)
 +by typing the D key.  Using the "Show changeset diff of revision at
 +line" menu entry does the same thing.
 +
 +*** In VC Annotate mode, you can type v to toggle the annotation visibility.
 +
 +*** In VC Annotate mode, you can type f to show the file revision on
 +the current line.
 +
 +*** Asynchronous VC commands display [Waiting...] in the mode-line
 +of the corresponding buffer as long as the asynchronous process is
 +active.
 +
 +*** Log entries can be modified using the key "e" in log-view.
 +For now only CVS, RCS, SCCS and SVN support this functionality.
 +This is done by the `modify-change-comment' backend function.
 +
 +*** In log-view-mode, for VC systems that support changesets, you can
 +see the diff for the whole changeset (not only for the current file)
 +by typing the D key or using the "Changeset Diff" menu entry.
 +
 +*** In Log Edit mode,  C-c C-d now shows the diff for the files involved.
 +
 +*** vc-git supports the "git grep" command.
 +
 +*** VC Support for Meta-CVS has been removed for lack of a maintainer able
 +to update it to the new VC.
 +
 +** Miscellaneous
 +
 +*** comint-mode uses `start-file-process' now (see Lisp Changes).
 +If `default-directory' is a remote file name, subprocesses are started
 +on the corresponding remote system.
 +
 +*** Eldoc highlights the function argument under point
 +with the face `eldoc-highlight-function-argument'.
 +
 +*** In Etags, the --members option is now the default.
 +Use --no-members if you want the old default behavior of not tagging
 +struct members in C, members variables in C++ and variables in PHP.
 +
 +*** The `gdb' command only works with the graphical interface now.
 +Use `gud-gdb' if you want the (old) text command mode.
 +
 +*** goto-address.el provides two new minor modes, goto-address-mode and
 +goto-address-prog-mode, which buttonize URLS and email addresses.
 +
 +*** The new command `eshell/info' runs info in an eshell buffer.
 +
 +*** The new variable `ffap-rfc-directories' specifies a list of local
 +directories in which `ffap-rfc' will first search for RFCs.
 +
 +*** hide-ifdef-mode allows shadowing ifdef-blocks instead of hiding them.
 +See option `hide-ifdef-shadow' and function `hide-ifdef-toggle-shadowing'.
 +
 +*** `icomplete-prospects-height' now supercedes `icomplete-prospects-length'.
 +
 +*** Info displays breadcrumbs in the header of the page.
 +See Info-breadcrumbs-depth to control it.
 +
 +*** net-utils has an `iwconfig' command, similar to the existing `ifconfig'.
 +It is used to configure wireless interfaces.
 +
 +*** The pcmpl-unix package supports hostname completion for ssh and scp.
 +
 +*** sgml-electric-tag-pair-mode lets you simultaneously edit matched tag pairs.
 +
 +*** smerge-refine highlights word-level details of changes in conflict.
 +It's used automatically as you move through conflicts, see
 +smerge-auto-refine-mode.
 +
 +*** talk.el has been extended for multiple tty support.
 +
 +*** A new command `display-time-world' has been added to the Time
 +package.  It creates a buffer with an updating time display using
 +several time zones.
 +
 +*** The appearance of superscript and subscript in TeX is more customizable.
 +See the documentation of the variables: tex-fontify-script,
 +tex-font-script-display, tex-suscript-height-ratio, and
 +tex-suscript-height-minimum.
 +
 +*** view-remove-frame-by-deleting is now by default t
 +since users found iconification of view-mode frames distracting.
 +
 +*** WoMan tries to add locale-specific manual page directories to the
 +search path.  This can be disabled by setting `woman-locale' to nil.
 +
 +\f
 +* Changes in Emacs 23.1 on non-free operating systems
 +
 +** Case is now considered significant in completion on MS-Windows.
 +The default value of `completion-ignore-case' is now nil on
 +MS-Windows, the same as it is for other operating systems.  The
 +variable doesn't apply to reading a file name -- in that case Emacs
 +heeds `read-file-name-completion-ignore-case' instead.
 +
 +** IPv6 is supported on MS-Windows.
 +Emacs now supports IPv6 on Windows XP and later, and earlier versions
 +of Windows with third party IPv6 stacks installed.  In Emacs 22, IPv6 was
 +supported on other platforms, but not on Windows due to using the winsock
 +1.1 header file, even though Emacs was linking to the winsock 2 library.
 +
 +** Busy cursor (hourglass) now displays on MS-Windows.
 +When Emacs is busy, an hourglass mouse cursor is displayed on Windows.
 +In Emacs 22 only X supported the busy cursor.
 +
 +** Battery status is available on MS-Windows
 +Emacs can now display the battery status in the mode-line when enabled with
 +display-battery-mode or from the Options menu.  More verbose battery
 +information is also available with the command `battery'.  In Emacs 22
 +battery status was supported only on GNU/Linux and Mac.
 +
 +** More keys available on MS-Windows.
 +Keys normally associated with IMEs, and some exotic keys not normally found
 +on standard keyboards have been given names so they can be bound to functions
 +inside Emacs.  If there are keys on your keyboard that have not been exposed
 +to Emacs in the past, try C-h k to see if they are available now.
 +
 +Emacs can now bind functions to the extra buttons for media player and
 +browser control present on some keyboards.  These buttons are disabled
 +by default, since enabling them prevents their system-wide use when
 +Emacs has focus.  To enable them, set the variable
 +w32-pass-multimedia-buttons to nil.  See the doc string of that variable
 +for the list of extra keys that are available.
 +
 +** BDF fonts no longer supported on MS-Windows.
 +The font backend was completely rewritten for this release.  The focus
 +on Windows has been getting acceptable performance and full unicode
 +support, including complex script shaping for native Windows fonts.  A
 +rewrite of the BDF font support has not happened due to lack of time
 +and developers.  If demand still exists for such a backend even with
 +the improved language support for native Windows fonts, future
 +development in this direction will most likely be based on the
 +freetype library, giving access to a wider range of font formats.
 +
 +\f
 +* Incompatible Lisp Changes in Emacs 23.1
 +
 +** Variables cannot be both buffer-local and frame-local any more.
 +
 +** `functionp' returns nil for special forms.
 +I.e., it only returns t for objects that can be passed to `funcall'.
 +
 +** The behavior of map-char-table has changed.  It may call the
 +specified function with a cons (FROM . TO) as a key if characters in
 +that range have the same value.
 +
 +** Process changes
 +
 +*** The function `dired-call-process' has been removed.
 +
 +*** The multibyteness of process filters is now determined by the
 +coding-system used for decoding.  The functions
 +`process-filter-multibyte-p' and `set-process-filter-multibyte' are
 +obsolete.
 +
 +** The variable `byte-compile-warnings' can now be a list starting with `not',
 +meaning to disable the specified warnings.  The meaning of this list
 +may therefore be the reverse of what you expect (of course, this is
 +only an issue if you make use of the new `not' syntax).  Rather than
 +checking/manipulating elements directly, use the new functions
 +`byte-compile-warning-enabled-p', `byte-compile-disable-warning', and
 +`byte-compile-enable-warning.'
 +
 +** `mode-name' is no longer guaranteed to be a string.
 +Use `(format-mode-line mode-name)' to ensure a string value.
 +
 +** The function x-font-family-list has been removed.
 +Use the new function font-family-list (see Lisp Changes, below).
 +
 +** Internationalization changes
 +
 +*** The value of the function `charset-id' is now always 0.
 +
 +*** The functions `register-char-codings' and `coding-system-spec'
 +have been removed.
 +
 +*** The cpXXX coding systems are now supported automatically.
 +The functions cp-...-codepage, which you had to use in Emacs 22 to
 +enable support for these coding systems, have been deleted.
 +
 +*** The following features have been removed.  They were used for
 +displaying various scripts with specific fonts, and are no longer
 +needed now that OpenType font support is available:
 +
 +**** `devanagari' and `devan-util', and all associated devanagari-* and
 +dev-* functions and variables (formerly used for Devanagari script).
 +
 +**** `kannada' and `knd-util', and all associated kannada-* and knd-*
 +functions and variables (formerly used for Kannada script).
 +
 +**** `malayalam' and `mlm-util', and all associated malayalam-* and
 +mlm-* functions and variables (formerly used for Malayalam script).
 +
 +**** `tamil' and `tml-util, and all associated tamil-* and tml-*
 +functions and variables (formerly used for Tamil script).
 +
 +*** The meaning of NAME argument of `set-fontset-font' is changed.
 +Previously nil is accepted as the default fontset.  Now, nil is for
 +the fontset of the selected frame and t is for the default fontset.
 +
 +*** The meaning of FONTSET argument of `print-fontset' is changed.
 +Now, nil is for the fontset of the selected frame and t is for the
 +default fontset.
 +
 +** If a function in write-region-annotate-functions returns with a
 +different buffer current, Emacs no longer kills that buffer
 +automatically.  This behavior existed in previous versions of Emacs,
 +but was undocumented.  To kill a buffer after write-region, give the
 +variable `write-region-post-annotation-function' a buffer-local value
 +of `kill-buffer'.
 +
 +** The variable temp-file-name-pattern has been removed.
 +This variable was only used by call-process-region, which now uses
 +temporary-file-directory instead.
 +
 +** The COUNT and SYSTEM-FLAG arguments to define-abbrev have been
 +removed.  The function now takes extra arguments for specifying
 +arbitrary abbrev properties.
 +
 +** end-of-defun-function is now guaranteed to work only when called
 +from the start of a defun.  It must now leave point exactly at the end
 +of defun, since `end-of-defun' now itself moves forward over
 +whitespace after calling it.
 +
 +\f
 +* Lisp Changes in Emacs 23.1
 +
 +** The new variable `generate-autoload-cookie' controls the magic comment
 +string used by `update-file-autoloads' to find autoloaded forms.  The
 +variable `generated-autoload-file' similarly controls the name of the
 +file where `update-file-autoloads' writes the calls to `autoload'.
 +The default values are ";;;###autoload" and `loaddefs.el',
 +respectively.
 +
 +** New primitives `list-system-processes' and `process-attributes'
 +let Lisp programs access the processes that are running on the local
 +machine.  See the doc strings of these functions for more details.
 +Not all platforms support accessing this information; on those that
 +don't, these primitives will return nil.
 +
 +** New variable `user-emacs-directory'.
 +Use this instead of "~/.emacs.d".
 +
 +** If a local hook function has a non-nil `permanent-local-hook'
 +property, `kill-all-local-variables' does not remove it from the local
 +value of the hook variable; it remains even if you change major modes.
 +
 +** `frame-inherited-parameters' lets new frames inherit parameters from
 +the selected frame.
 +
 +** New keymap `input-decode-map' overrides like key-translation-map, but
 +applies before function-key-map.  Also it is terminal-local contrary to
 +key-translation-map.  Terminal-specific key-sequences are generally added to
 +this map rather than to function-key-map now.
 +
 +** `ignore-errors' is now a standard macro (does not require the CL package).
 +
 +** `interprogram-paste-function' can now return one string or a list
 +of strings.  In the latter case, Emacs puts the second and following
 +strings on the kill ring.
 +
 +** In `condition-case', a handler can specify "let the debugger run first".
 +You do this by writing `debug' in the list of conditions to be handled,
 +like this:
 +
 +    (condition-case nil
 +      (foo bar)
 +      ((debug error) nil))
 +
 +** clone-indirect-buffer now runs the clone-indirect-buffer-hook.
 +
 +** `beginning-of-defun-function' now takes one argument, the count given to
 +`beginning-of-defun'.  (N.B. `end-of-defun-function' doesn't take any
 +arguments.)
 +
 +** `file-remote-p' has new optional parameters IDENTIFICATION and CONNECTED.
 +IDENTIFICATION specifies which part of the remote identifier has to be
 +returned.  With CONNECTED passed non-nil, it is checked whether a
 +remote connection has been established already.
 +
 +** The new macro `declare-function' suppresses compiler warnings about
 +undefined functions.
 +
 +** Changes to interactive function handling
 +
 +*** The new interactive spec code ^ says to first call
 +handle-shift-selection if shift-select-mode is non-nil, before reading
 +the command arguments.  This is used for shift-selection (see above).
 +
 +*** Built-in functions can now have an interactive specification that
 +is not a prompt string.  If the `intspec' parameter of a `DEFUN'
 +starts with a `(', the string is evaluated as a Lisp form.
 +
 +*** The interactive-form of a function can be added post-facto via the
 +`interactive-form' symbol property.  Mostly useful to add complex
 +interactive forms to subroutines.
 +
 +** Region changes
 +
 +*** Commands should use `use-region-p' to test whether there is
 +an active region that they should operate on.
 +
 +*** `region-active-p' returns non-nil when Transient Mark mode is
 +enabled and the mark is active.  Most commands that act specially on
 +the active region in Transient Mark mode should use `use-region-p'
 +instead of `region-active-p', because `use-region-p' obeys the new
 +user option `use-empty-active-region' (see Editing Changes, above).
 +
 +*** If a command sets `transient-mark-mode' to (only . OLDVAL), that
 +means to activate transient-mark-mode temporarily, until the next
 +unshifted point motion command or mark deactivation.  Afterwards,
 +reset transient-mark-mode to the value OLDVAL.  The values `only' and
 +`identity', introduced in Emacs 22, are now deprecated.
 +
 +** Emacs session information
 +
 +*** The new variables `before-init-time' and `after-init-time' record the
 +value of `current-time' before and after Emacs loads the init files.
 +
 +*** The new function `emacs-uptime' returns the uptime of an Emacs instance.
 +
 +*** The new function `emacs-init-time' returns the duration of the
 +Emacs initialization.
 +
 +** Changes affecting display-buffer
 +
 +*** display-buffer tries to be smarter when splitting windows.
 +The new option split-window-preferred-function lets you specify your own
 +function to pop up new windows.  Its default value split-window-sensibly
 +can split a window either vertically or horizontally, whichever seems
 +more suitable in the current configuration.  You can tune the behavior
 +of split-window-sensibly by customizing split-height-threshold and the
 +new option split-width-threshold.  Both options now take the value nil
 +to inhibit splitting in one direction.  Setting split-width-threshold to
 +nil inhibits horizontal splitting and gets you the behavior of Emacs 22
 +in this respect.  In any case, display-buffer may now split the largest
 +window vertically even when it is not as wide as the containing frame.
 +
 +*** If pop-up-frames has the value `graphic-only', display-buffer only
 +makes a separate frame on graphic displays.
 +
 +*** select-frame and set-frame-selected-window have a new optional
 +argument NORECORD.  If non-nil, this will avoid messing with the order
 +of recently selected windows and the buffer list.
 +
 +** Window parameters can now be defined.
 +These are analogous to frame parameters, but are associated with
 +individual windows.
 +
 +*** The new functions window-parameters, window-parameter, and
 +set-window-parameter are used to query and set window parameters.
 +
 +** Minibuffer and completion changes
 +
 +*** A list of default values can be specified for the DEFAULT argument of
 +functions `read-from-minibuffer', `read-string', `read-command',
 +`read-variable', `read-buffer', `completing-read'.  Elements of this list
 +are available for inserting into the minibuffer by typing `M-n'.
 +For empty input these functions return the first element of this list.
 +
 +*** New function `read-regexp' uses the regexp history and some useful
 +regexp defaults (string at point, last Isearch/replacement regexp/string)
 +via M-n when reading a regexp in the minibuffer.
 +
 +*** minibuffer-local-must-match-filename-map is now named
 +minibuffer-local-filename-must-match-map.
 +
 +*** The `require-match' argument to `completing-read' accepts the new
 +values `confirm-only' and `confirm-after-completion'.
 +
 +** Search and replacement changes
 +
 +*** The regexp form \(?<num>:<regexp>\) specifies the group number explicitly.
 +
 +*** New function `match-substitute-replacement' returns the result of
 +`replace-match' without actually using it in the buffer.
 +
 +*** The new variable `replace-search-function' determines the function
 +to use for searching in query-replace and replace-string.  The
 +function it specifies is called by `perform-replace' when its 4th
 +argument is nil.
 +
 +*** The new variable `replace-re-search-function' determines the
 +function to use for searching in `query-replace-regexp',
 +`replace-regexp', `query-replace-regexp-eval', and
 +`map-query-replace-regexp'.  The function it specifies is called by
 +`perform-replace' when its 4th argument is non-nil.
 +
 +*** New keymap `search-map' bound to `M-s' provides global bindings
 +for search related commands.
 +
 +*** New keymap `multi-query-replace-map' contains additonal keys bound
 +to `automatic-all' and `exit-current' for multi-buffer interactive replacement.
 +
 +*** The variable `inhibit-changing-match-data', if non-nil, prevents
 +the search and match primitives from changing the match data.
 +
 +*** New functions `word-search-forward-lax' and `word-search-backward-lax'.
 +These are like `word-search-forward and `word-search-backward', except
 +that the end of the search string need not match a word boundary,
 +unless it ends in whitespace.
 +
 +** File handling changes
 +
 +*** set-file-modes is now interactive and can take the mode value in
 +symbolic notation thanks to auxiliary functions.
 +
 +*** file-local-variables-alist stores an alist of file-local
 +variables defined in the current buffer.
 +
 +** Face-remapping
 +
 +*** Each face can be remapped to a different face definition using the
 +variable `face-remapping-alist'.  This is an alist that maps faces to
 +replacement definitions (which can be face names, lists of face names,
 +or attribute/value plists.  If this variable is buffer-local, the
 +remapping occurs only in that buffer.
 +
 +*** text-scale-mode remaps the default face to a larger or smaller
 +size in the current buffer.  This feature is used by the Buffer Face
 +menu and the new `C-x C-+', `C-x C--', and `C-x C-0' commands (see
 +Editing Changes, above).
 +
 +*** New functions:
 +
 +**** `face-remap-add-relative' adds a face remapping entry to the
 +current buffer.
 +
 +**** ``face-remap-remove-relative' removes a face remapping entry from
 +the current buffer.
 +
 +**** `face-remap-reset-base' restores a face to its global definition.
 +
 +**** `face-remap-set-base' sets the base remapping of a face.
 +
 +** Process changes
 +
 +*** The new function `start-file-process' is similar to `start-process',
 +but obeys file handlers.  The file handler is chosen based on
 +`default-directory'.  The functions `start-file-process-shell-command'
 +and `process-file-shell-command' are also new; they call internally
 +`start-file-process' and `process-file', respectively.
 +
 +*** The new function `process-lines' executes an external program and
 +returns its output as a list of lines.
 +
 +** Character code, representation, and charset changes.
 +
 +*** In multibyte buffers and strings, characters are represented by
 +UTF-8 byte sequences.  The character code space is now 0x0..0x3FFFFF
 +with no gap; code points 0x0..0x10FFFF are Unicode characters of the
 +same code points, while code points 0x3FFF80..0x3FFFFF are raw 8-bit
 +bytes.
 +
 +*** Generic characters no longer exist.
 +
 +*** The concept of a charset has changed.  A single character may
 +belong to multiple charsets (e.g. a-grave, U+00E0, belongs to charsets
 +unicode, iso-8859-1, iso-8859-3, etc).
 +
 +**** The dimension of a charset is now 1, 2, 3, or 4, and the size of
 +each dimension is no longer limited to 94 or 96.
 +
 +**** A dynamic charset priority list is used to infer the charset of
 +characters for display.
 +
 +*** The functions `split-char' and `make-char' now accept up to 4
 +positional codes instead of just 2.
 +
 +*** The functions `encode-char' and `decode-char' now accept any character sets.
 +
 +*** The function `define-charset' now accepts a completely different
 +form of arguments (old-style arguments still work).
 +
 +*** The value of the function `char-charset' depends on the current
 +priorities of charsets.
 +
 +*** The function get-char-code-property now accepts many Unicode base
 +character properties.  They are `name', `general-category',
 +`canonical-combining-class', `bidi-class', `decomposition',
 +`decimal-digit-value', `digit-value', `numeric-value', `mirrored',
 +`old-name', `iso-10646-comment', `uppercase', `lowercase', and
 +`titlecase'.
 +
 +*** The functions `modify-syntax-entry' and `modify-category-entry' now
 +accept a cons of characters as the first argument, and modify all
 +entries in that range of characters.
 +
 +*** Use of `translation-table-for-input' for character code unification
 +is now obsolete, since Emacs 23.1 and later uses Unicode as basis for
 +internal representation of characters.
 +
 +*** New functions:
 +
 +**** `characterp' returns t if and only if the argument is a character.
 +This replaces `char-valid-p', which is now obsolete.
 +
 +**** `max-char' returns the maximum character code (currently #x3FFFFF).
 +
 +**** `define-charset-alias' defines an alias of a charset.
 +
 +**** `set-charset-priority' sets priorities of charsets.
 +
 +**** `charset-priority-list' returns a prioritized list of charsets.
 +
 +**** `unibyte-string' makes a unibyte string from bytes.
 +
 +**** `define-char-code-property' defines a character code property.
 +
 +**** `char-code-property-description' returns the description string of
 +a character code property.
 +
 +*** New variables:
 +
 +**** `find-word-boundary-function-table' is a char-table of functions to
 +search for a word boundary.
 +
 +**** `char-script-table' is a char-table of script names.
 +
 +**** `char-width-table' is a char-table of character widths.
 +
 +**** `print-charset-text-property' controls how to handle `charset' text
 +property on printing a string.
 +
 +**** `printable-chars' is a char-table of printable characters.
 +
 +** Code conversion changes
 +
 +*** The new function `define-coding-system' should be used to define a
 +coding system instead of `make-coding-system' (which is now obsolete).
 +
 +*** The functions `encode-coding-region' and `decode-coding-region'
 +have an optional 4th argument to specify where the result of
 +conversion should go.
 +
 +*** The functions `encode-coding-string' and `decode-coding-string'
 +have an optional 4th argument specifying a buffer to store the result
 +of conversion.
 +
 +*** The new variable `inhibit-null-byte-detection' controls whether to
 +consider text with null bytes as binary data.  By default, it is
 +`nil', and Emacs uses `no-conversion' for any text containing null
 +bytes.
 +
 +*** The functions `set-coding-priority' and `make-coding-system' are obsolete.
 +
 +*** New functions:
 +
 +**** `with-coding-priority' executes Lisp code using the specified
 +coding system priority order.
 +
 +**** `check-coding-systems-region' checks if the text in the region is
 +encodable by the specified coding systems.
 +
 +**** `coding-system-aliases' returns a list of aliases of a coding system.
 +
 +**** `coding-system-charset-list' returns a list of charsets supported
 +by a coding system.
 +
 +**** `coding-system-priority-list' returns a list of coding systems
 +ordered by their priorities.
 +
 +**** `set-coding-system-priority' sets priorities of coding systems.
 +
 +**** `coding-system-from-name' returns a coding system matching with
 +the argument name.
 +
 +** There is a new input method, Robin, different from Quail.
 +It has three functionalities:
 + i) a simple input method (converts an ASCII sequence into a string).
 +ii) converts an existing buffer substring into another string
 +iii) reverse conversion (each character produced by a
 +robin rule can hold the original ASCII sequence as a char-code-property)
 +
 +*** The new function `robin-define-package' defines a Robin package.
 +
 +*** The new function `robin-modify-package' modifies an existing Robin package.
 +
 +*** The new function `robin-use-package' starts using a Robin package
 +as an input method.
 +
 +*** The new function `string-to-unibyte' is like `string-as-unibyte'
 +but signals an error if STRING contains a non-ASCII, non-eight-bit
 +character.
 +
 +** Changes related to the new font backend
 +
 +*** Which font backends to use can be specified by the X resource
 +"FontBackend".  For instance, to use both X core fonts and Xft fonts:
 +
 +Emacs.FontBackend: x,xft
 +
 +If this resource is not set, Emacs tries to use all font backends
 +available on your graphic device.
 +
 +*** New frame parameter `font-backend' specifies a list of
 +font-backends supported by the frame's graphic device.  On X, they are
 +currently `x' and `xft'.
 +
 +*** The function `set-fontset-font' now accepts a script name as the
 +second argument, and has an optional 5th argument to control how to
 +set the font.
 +
 +*** New functions:
 +
 +**** `fontp' checks if the argument is a font-spec or font-entity.
 +
 +**** `font-spec' creates a new font-spec object.
 +
 +**** `font-get' returns a font property value.
 +
 +**** `font-put' sets a font property value.
 +
 +**** `font-face-attributes' returns a plist of face attributes set by a font.
 +
 +**** `list-fonts' returns a list of font-entities matching a font spec.
 +
 +**** `find-font' returns the font-entity best matching the given font spec.
 +
 +**** `font-family-list' returns a list of family names of available fonts.
 +
 +**** `font-xlfd-name' returns an XLFD name of a given font spec, font
 +entity, or font object.
 +
 +**** `clear-font-cache' clears all font caches.
 +
 +** Changes related to multiple-terminal (multi-tty) support
 +
 +*** $TERM is now set to `dumb' for subprocesses.  If you want to know the
 +$TERM inherited by Emacs you will have to look inside initial-environment.
 +
 +*** $DISPLAY is now dynamically inherited from the frame's `display'.
 +
 +*** The `window-system' variable is now frame-local.  The new
 +`initial-window-system' variable contains the `window-system' value
 +for the first frame.  `window-system' is also now a function that
 +takes a frame argument.
 +
 +*** The `keyboard-translate-table' variable and the terminal and
 +keyboard coding systems are now terminal-local.
 +
 +*** You can specify a terminal device (`tty' parameter) and a terminal
 +type (`tty-type' parameter) to `make-terminal-frame'.
 +
 +*** The function `make-frame-on-display' now works during a tty
 +session.
 +
 +*** A new `terminal' data type.
 +The functions `get-device-terminal', `terminal-parameters',
 +`terminal-parameter', `set-terminal-parameter' use this data type.
 +
 +*** Function key sequences are now mapped using `local-function-key-map',
 +a new variable.  This inherits from the global variable function-key-map,
 +which is not used directly any more.
 +
 +*** New hooks:
 +
 +**** before-hack-local-variables-hook is called after setting new
 +variable file-local-variables-alist, and before actually applying the
 +file-local variables.
 +
 +**** `suspend-tty-functions' and `resume-tty-functions' are called
 +after a tty frame has been suspended or resumed, respectively.  The
 +functions are called with the terminal id of the frame being
 +suspended/resumed as a parameter.
 +
 +**** The special hook `delete-terminal-functions' is called before
 +deleting a terminal.
 +
 +*** New functions:
 +
 +**** `delete-terminal'
 +
 +**** `suspend-tty'
 +
 +**** `resume-tty'.
 +
 +*** `initial-environment' holds the environment inherited from Emacs's parent.
 +
 +** Redisplay changes
 +
 +*** For underlined characters, the distance between the underline and
 +the baseline is controlled by a new variable, `underline-minimum-offset'.
 +
 +*** You can now pass the value of the `invisible' property to
 +invisible-p to check whether it would cause the text to be invisible.
 +This is convenient when checking invisibility of text with no buffer
 +position (e.g. in before/after-strings).
 +
 +*** `clear-image-cache' can be told to flush only images of a specific file.
 +
 +*** `vertical-motion' can now be given a goal column.
 +It now accepts a cons cell (COLS . LINES) in its first argument, which
 +says to stop, where possible, at a pixel x-position equal to COLS
 +times the default column width.
 +
 +*** redisplay-end-trigger-functions, set-window-redisplay-end-trigger,
 +and window-redisplay-end-trigger are obsolete.  Use `jit-lock-register'
 +instead.
 +
 +*** The new variables `wrap-prefix' and `line-prefix' specify display
 +specs which are appended at display-time to every continuation line
 +and non-continuation line, respectively.  In addition, Emacs
 +recognizes the `wrap-prefix' and `line-prefix' text or overlay
 +properties; these have the same effects as the variables of the same
 +name, but take precedence.
 +
 +** The Lisp interpreter now treats non-breaking space as whitespace.
 +
 +** Miscellaneous new functions
 +
 +*** `apply-partially' performs a "curried" application of a function.
 +
 +*** `buffer-swap-text' swaps text between two buffers.  This can be
 +useful for modes such as tar-mode, archive-mode, RMAIL.
 +
 +*** `combine-and-quote-strings' produces a single string from a list of strings
 +sticking a separator string in between each pair, and quoting those
 +strings that include the separator as their substring.  Useful for
 +consing shell command lines from the individual arguments.
 +
 +*** `custom-note-var-changed' tells Custom to treat the change in a
 +certain variable as having been made within Custom.
 +
 +*** `face-all-attributes' returns an alist describing all the basic
 +attributes of a given face.
 +
 +*** `format-seconds' converts a number of seconds into a readable
 +string of days, hours, etc.
 +
 +*** `image-refresh' refreshes all images associated with a given image
 +specification.
 +
 +*** `locate-user-emacs-file' helps packages to select the appropriate
 +place to save user-specific files.  It defaults to `user-emacs-directory'
 +unless the file already exists at $HOME.
 +
 +*** `read-color' reads a color name using the minibuffer.
 +
 +*** `read-shell-command' does what its name says, with completion.  It
 +uses the minibuffer-local-shell-command-map for that.
 +
 +*** `split-string-and-unquote' splits a string into a list of substrings
 +on the boundaries of a given delimiter, and unquotes the substrings that
 +are quoted.  Useful for taking apart shell commands.
 +
 +*** The two new functions `looking-at-p' and `string-match-p' can do
 +the same matching as `looking-at' and `string-match' without changing
 +the match data.
 +
 +*** The two new functions `make-serial-process' and
 +`serial-process-configure' provide a Lisp interface to the new serial
 +port support (see Emacs changes, above).
 +
 +** Miscellaneous new variables
 +
 +*** `auto-save-include-big-deletions', if non-nil, means auto-save is
 +not turned off automatically after a big deletion.
 +
 +*** `read-circle', if nil, disables the reading of recursive Lisp
 +structures using the #N= and #N# syntax.
 +
 +*** `this-command-keys-shift-translated' is non-nil if the key
 +sequence invoking the current command was found by shift-translation.
 +
 +*** `window-point-insertion-type' determines the insertion-type of the
 +marker used for window-point.
 +
 +*** bookmark provides `bookmark-make-record-function' so special major
 +modes like Info can teach bookmark.el how to save and restore the
 +relevant data.
 +
 +*** `fill-forward-paragraph-function' specifies which function the
 +filling code should use to find paragraph boundaries.
 +
 +\f
 +* New Packages for Lisp Programming in Emacs 23.1
 +
 +** The new package avl-tree.el deals with the AVL tree data structure.
 +
 +** The new package check-declare.el verifies the accuracy of
 +declare-function macros (see Lisp Changes, above).
 +
 +** find-cmd.el can build `find' commands using lisp syntax.
 +
 +** The package misearch.el has been added.  It allows Isearch to search
 +through multiple buffers.  A variable `multi-isearch-next-buffer-function'
 +defines the function to call to get the next buffer to search in the series
 +of multiple buffers.  Top-level functions `multi-isearch-buffers',
 +`multi-isearch-buffers-regexp', `multi-isearch-files' and
 +`multi-isearch-files-regexp' accept a single argument that specifies
 +a list of buffers/files to search for a string/regexp.
 +
 +** The new major mode `special-mode' is intended as a parent for
 +major modes such as those that set the "'mode-class 'special" property.
 +
 +\f
 +----------------------------------------------------------------------
 +This file is part of GNU Emacs.
 +
 +GNU Emacs 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.
 +
 +GNU Emacs 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.  If not, see <http://www.gnu.org/licenses/>.
 +
 +\f
 +Local variables:
 +mode: outline
 +paragraph-separate: "[        \f]*$"
 +end:
 +
 +arch-tag: e759449d-88b3-4de4-9900-3a6c3dfa23e2
diff --cc etc/TODO
Simple merge
Simple merge
index 7adb3c7eb8578b2168b18397b9c777f5f0797a84,30ef4ec89e7b2aa51d1153f64bd63653fb71c160..080c7d240287fd5b907ec21745d28b75fea0283a
@@@ -33,12 -33,8 +33,12 @@@ Files: splash.pbm, splash.xpm, gnus.pb
  
  Files: splash.png, splash.svg
    Author: Francesc Rocher <rocher@member.fsf.org>
-   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
 +Files: checked.xpm, unchecked.xpm
 +  Author: Chong Yidong <cyd@stupidchicken.com>
 +  Copyright (C) 2010 Free Software Foundation, Inc.
 +
  
  * The following icons are from GTK+ 2.x. They are not part of Emacs, but
  are distributed and used by Emacs.  They are licensed under the
Simple merge
index c55c55dcf99c5de448c1934fff8e8869b24fd595,28fb565dc84f1810f601b466d523d9d28911dafe..d470448490576445855ace13e6bd3080276b0034
@@@ -1,7 -1,7 +1,7 @@@
  % Reference Card for Org Mode
 -\def\orgversionnumber{6.33x}
 -\def\versionyear{2009}          % latest update
 +\def\orgversionnumber{7.4}
 +\def\versionyear{2010}          % latest update
- \def\year{2010}                 % latest copyright year
+ \def\year{2011}                 % latest copyright year
  
  %**start of header
  \newcount\columnsperpage
Simple merge
Simple merge
diff --cc leim/ChangeLog
Simple merge
Simple merge
Simple merge
diff --cc lib-src/hexl.c
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lib-src/ntlib.c
Simple merge
diff --cc lib-src/ntlib.h
Simple merge
diff --cc lib-src/pop.c
Simple merge
diff --cc lib-src/pop.h
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/ChangeLog
index 95b99750e3e6186a5e619d1a7527cce3e8e196b7,504ebf5970801883097b3d730f570879cf9b6dac..813746ca6df396089ebb24a846cebb3149d3d388
 -2011-01-03  Brent Goodrick  <bgoodr@gmail.com>  (tiny change)
++2011-01-14  Brent Goodrick  <bgoodr@gmail.com>  (tiny change)
+       * abbrev.el (prepare-abbrev-list-buffer): If listing local abbrev
+       table, get the value before switching to the output buffer.  (Bug#7733)
 -2011-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
++2011-01-14  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * progmodes/python.el (python-mode): Don't impose font-lock (bug#3628).
 -2011-01-02  Stefan Monnier  <monnier@iro.umontreal.ca>
++2011-01-14  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * files.el (file-local-variables-alist):
+       Make permanent-local (bug#7767).
 -2011-01-02  Glenn Morris  <rgm@gnu.org>
++2011-01-14  Glenn Morris  <rgm@gnu.org>
+       * version.el (emacs-copyright): Set short copyright year to 2011.
 -2011-01-02  Mark Lillibridge  <mark.lillibridge@hp.com>  (tiny change)
++2011-01-14  Mark Lillibridge  <mark.lillibridge@hp.com>  (tiny change)
+       * mail/mail-utils.el (mail-strip-quoted-names): Avoid clobbering
+       an existing temp buffer.  (Bug#7746)
 -2011-01-02  Glenn Morris  <rgm@gnu.org>
++2011-01-14  Glenn Morris  <rgm@gnu.org>
+       * mail/mail-utils.el (mail-mbox-from): Handle From: headers with
+       multiple addresses.  (Bug#7760)
 -2010-12-31  Michael Albinus  <michael.albinus@gmx.de>
++2011-01-14  Michael Albinus  <michael.albinus@gmx.de>
+       * net/tramp.el (tramp-methods): Add recursive options to "scpc",
+       "scpx", "pscp" and "psftp".
 -2010-12-31  Eli Zaretskii  <eliz@gnu.org>
++2011-01-14  Eli Zaretskii  <eliz@gnu.org>
+       * term/w32-win.el (image-library-alist): Set up correctly for
 +2011-01-14  Kim F. Storm  <storm@cua.dk>
 +
 +      * emulation/cua-base.el (cua--init-keymaps):
 +      Remap exchange-point-and-mark in cua-global-keymap.
 +
 +2011-01-14  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * progmodes/sh-script.el (sh-other-keywords): Add ZSH's foreach
 +      loop keyword.
 +
 +2011-01-14  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * emacs-lisp/easymenu.el: Add :enable (bug#7754), and obey :label.
 +      Require CL.
 +      (easy-menu-create-menu, easy-menu-convert-item-1):
 +      Use :label rather than nil for labels.  Use `case'.
 +      Add :enable as alias for :active.
 +      (easy-menu-binding): Obey :label.
 +
 +2011-01-13  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      Use run-mode-hooks for major mode hooks (bug#513).
 +      * textmodes/reftex-toc.el (reftex-toc-mode-map):
 +      Rename from reftex-toc-map.
 +      (reftex-toc-mode): Use define-derived-mode.
 +      * textmodes/reftex-sel.el (reftex-select-shared-map): New map.
 +      (reftex-select-label-mode-map, reftex-select-bib-mode-map):
 +      Rename from reftex-select-(label|bib)-map.  Move init into declaration.
 +      (reftex-select-label-mode, reftex-select-bib-mode):
 +      Use define-derived-mode.
 +      * textmodes/reftex-index.el (reftex-index-phrases-mode-map)
 +      (reftex-index-mode-map): Rename from reftex-index(-phrases)-map.
 +      Move init into delcaration.
 +      (reftex-index-mode, reftex-index-phrases-mode):
 +      Use define-derived-mode.
 +      * speedbar.el (speedbar-mode-syntax-table): Renaqme from
 +      speedbar-syntax-table.  Move init into declaration.
 +      (speedbar-mode-map): Rename from speedbar-key-map.
 +      Move init into declaration.
 +      (speedbar-file-key-map): Move init into declaration.
 +      (speedbar-mode): Use define-derived-mode.
 +      * recentf.el (recentf-mode): Don't run hook (or message) redundantly.
 +      * net/rcirc.el (rcirc-mode): Use run-mode-hooks.
 +      * emacs-lisp/chart.el (chart-mode-map): Rename from chart-map.
 +      (chart-face-list): Move initialization into declaration.
 +      (chart-mode): Use define-derived-mode.
 +      * calculator.el (calculator-mode-map): Move init into declaration.
 +      (calculator-mode): Use define-derived-mode.
 +
 +      * mail/mail-utils.el (mail-strip-quoted-names): Make the regexp code
 +      work for nested comments.
 +
 +      * progmodes/prolog.el: Use syntax-propertize.  Further code cleanup.
 +      (prolog-use-prolog-tokenizer-flag): Change default when
 +      syntax-propertize can be used.
 +      (prolog-syntax-propertize-function): New var.
 +      (prolog-mode-variables): Move make-local-variable into `set'.
 +      Don't make comment-column local since we don't set it.
 +      Set comment-add (as it was in previous prolog.el).  Use dolist.
 +      Set syntax-propertize-function.
 +      (prolog-mode, prolog-inferior-mode):
 +      Call prolog(-inferior)-menu directly, not through the mode-hook.
 +      (prolog-buffer-module, prolog-indent-level)
 +      (prolog-paren-is-the-first-on-line-p, prolog-paren-balance)
 +      (prolog-comment-limits, prolog-goto-comment-column):
 +      Use line-(end|beginning)-position.
 +      (prolog-build-prolog-command): Tighten up regexp.
 +      (prolog-consult-compile): Move make-local-variable into `set'.
 +      (prolog-consult-compile-filter, prolog-goto-next-paren)
 +      (prolog-help-on-predicate, prolog-clause-info)
 +      (prolog-mark-predicate): Don't let+setq.
 +      (prolog-indent-line): Use indent-line-to.
 +      Only call prolog-goto-comment-column if necessary.
 +      (prolog-indent-level): Use bobp.
 +      (prolog-first-pos-on-line): Remove, not used any more.
 +      (prolog-in-string-or-comment): Use syntax-ppss if available.
 +      (prolog-help-on-predicate): Use read-string.
 +      (prolog-goto-predicate-info): Simplify.
 +      (prolog-read-predicate): Use `default' rather than `initial'.
 +      (prolog-temporary-file): Use make-temp-file to close a security hole.
 +      (prolog-toggle-sicstus-sd): New command.
 +      (prolog-electric-underscore, prolog-variables-to-anonymous):
 +      Use dynamic-scoping as it was meant.
 +      (prolog-menu): Move menu definitions to top-level.
 +      Use a toggle-button for Sicstus's source debugger.
 +      Change "Code" to the more usual "Prolog", and hence change "Prolog"
 +      to "System".
 +      (prolog-inferior-menu): Reuse prolog-menu's help menu.
 +      Move other menu definition to top-level.
 +
 +2011-01-13  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * doc-view.el (doc-view-open-text): Use meaningful text buffer
 +      name.  Keep original document's directory as default-directory
 +      (bug#6446).
 +      (doc-view-initiate-display): Fall back to normal mode when
 +      doc-view-mode cannot be enabled, also when extracting the document
 +      text into a separate buffer (bug#6446).
 +
 +      * simple.el (shell-command): Don't error out if shell command
 +      buffer contains text with non-nil read-only property when erasing
 +      the buffer.
 +
 +2011-01-13  Kim F. Storm  <storm@cua.dk>
 +
 +      * ido.el (ido-may-cache-directory): Move "too-big" check later.
 +      (ido-next-match, ido-prev-match): Fix stray reordering of matching
 +      items when cycling through the matches.
 +
 +2011-01-13  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * dired-x.el (dired-omit-verbose): New defcustom that allows
 +      disabling the omit messages.
 +      (dired-omit-expunge): Use it.
 +
 +2011-01-13  Christian Ohler  <ohler@gnu.org>
 +
 +      * emacs-lisp/ert.el, emacs-lisp/ert-x.el: New files.
 +
 +2011-01-13  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * font-lock.el (font-lock-verbose): Default to nil.
 +
 +2011-01-13  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * simple.el (sendmail-user-agent-compose): Move to sendmail.el.
 +      (compose-mail): New arg RETURN-ACTION.
 +      (compose-mail-other-window, compose-mail-other-frame): Likewise.
 +
 +      * mail/sendmail.el (mail-return-action): New var.
 +      (mail-mode): Make it buffer-local.
 +      (mail-bury): Obey it.  Move special Rmail window handling to
 +      rmail-mail-return.
 +      (mail, mail-setup): New arg RETURN-ACTION.
 +      (sendmail-user-agent-compose): Move from simple.el.
 +
 +      * mail/rmail.el (rmail-mail-return): New function.
 +      (rmail-start-mail): Pass it to compose-mail.
 +
 +2011-01-12  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * menu-bar.el (menu-bar-custom-menu): Tweak Mule and Customize
 +      menus.  Add menu item for customize-themes.
 +
 +      * cus-theme.el (customize-themes):
 +      * emacs-lisp/package.el (package--list-packages): Use
 +      switch-to-buffer.
 +
 +2011-01-11  Johan BockgÃ¥rd  <bojohan@gnu.org>
 +
 +      * emacs-lisp/unsafep.el (unsafep): Handle backquoted forms.
 +
 +2011-01-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * progmodes/prolog.el: Fix up coding convention and such.
 +      (prolog-indent-width): Use the same default as in
 +      previous prolog.el rather than tab-width which depends on which buffer
 +      is current when the file is loaded.
 +      (prolog-electric-newline-flag): Only enable if electric-indent-mode
 +      is not available.
 +      (prolog-emacs): Remove.  Use (featurep 'xemacs) instead.
 +      (prolog-known-systems): Remove.
 +      (prolog-mode-syntax-table, prolog-inferior-mode-map):
 +      Move initialization into declaration.
 +      (prolog-mode-map): Move initialization into declaration.
 +      Remove system-specific mode-map vars, since they referred to the same
 +      keymap anyway.
 +      (prolog-mode-variables): Obey the user's preference w.r.t
 +      adaptive-fill-mode.  Prefer symbol-value to `eval'.
 +      (prolog-mode-keybindings-edit): Add compatibility bindings.
 +      (prolog-mode): Use define-derived-mode.  Don't handle mercury here.
 +      (mercury-mode-map): New var.
 +      (mercury-mode, prolog-inferior-mode): Use define-derived-mode.
 +      (prolog-ensure-process, prolog-process-insert-string)
 +      (prolog-consult-compile): Use with-current-buffer.
 +      (prolog-guess-fill-prefix): Simplify data flow.
 +      (prolog-replace-in-string): New function to use instead of
 +      replace-in-string.
 +      (prolog-enable-sicstus-sd): Don't abuse `eval'.
 +      (prolog-uncomment-region): Use `uncomment-region' when available.
 +      (prolog-electric-colon, prolog-electric-dash): Use `eolp'.
 +      (prolog-int-to-char, prolog-char-to-int): New functions to use instead
 +      of int-to-char and char-to-int.
 +      (prolog-mode-hook, prolog-inferior-mode-hook): Don't force font-lock.
 +
 +2011-01-11  Stefan Bruda  <stefan@bruda.ca>
 +
 +      * progmodes/prolog.el: Replace by a whole new file.
 +
 +2011-01-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * subr.el (eval-after-load): Fix timing for features (bug#7769).
 +      (declare-function, undefined, insert-for-yank)
 +      (replace-regexp-in-string): Follow checkdoc's recommendations.
 +
 +2011-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * calendar/diary-lib.el (diary-mode): Refresh *Calendar* after
 +      refreshing the diary buffer.
 +
 +2011-01-10  Ken Manheimer  <ken.manheimer@gmail.com>
 +
 +      * allout.el: Add 2011 to the file copyright.
 +      (allout-encrypt-string): Prevent encryption from adding an extra
 +      newline at the end of the topic body.
 +      (allout-version): Increment to 2.3.
 +
 +2011-01-10  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/dbus.el (dbus-unregister-service): Complete doc.
 +      Fix call of dbus-error signal.
 +      (dbus-register-property): Use `dont-register' keyword.
 +
 +2011-01-10  Jan Moringen  <jan.moringen@uni-bielefeld.de>
 +
 +      * net/dbus.el (dbus-unregister-service): Translate returned
 +      integer into a symbol.
 +      (dbus-register-property): Use `dbus-register-service' to do the
 +      name registration.
 +
 +2011-01-09  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * progmodes/idlw-help.el (idlwave-help-link): Inherit from link face.
 +      Suggested by Joakim Verona.
 +
 +      * comint.el (comint-highlight-prompt): Inherit minibuffer-prompt.
 +
 +      * wid-edit.el (visibility): Replace :on-image and :off-image
 +      widget properties with :on-glyph and :off-glyph, for consistency
 +      with the `visibility' widget.
 +      (widget-toggle-value-create, widget-visibility-value-create):
 +      Merge into a single function `widget-toggle-value-create'.
 +
 +      * cus-edit.el (custom-variable-value-create, custom-visibility)
 +      (custom-face-edit-value-create, custom-face-value-create):
 +      Replace :on-image and :off-image widget properties with :on-glyph and
 +      :off-glyph, for consistency with the `visibility' widget.
 +
 +2011-01-09  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * net/ldap.el (ldap-search-internal): Don't use eval.
 +
 +2011-01-09  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * subr.el (read-char-choice): Use read-key.
 +
 +      * custom.el (custom-safe-themes): Rename from
 +      custom-safe-theme-files.  Add :risky tag.
 +      (load-theme, custom-theme-load-confirm): Save sha1 hashes to
 +      custom-safe-themes, not filenames.  Suggested by Stefan Monnier.
 +
 +2011-01-09  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * tool-bar.el (tool-bar-setup): Remove Help button.  Remove label
 +      from Search and add a label to Undo.
 +
 +      * vc/vc-dir.el (vc-dir-tool-bar-map): Rearrange, removing
 +      inappropriate buttons and adding :vert-only tags.
 +
 +      * progmodes/compile.el (compilation-mode-tool-bar-map): Adjust to
 +      removal of Help tool-bar button.  Remove Undo button for space.
 +
 +      * info.el (info-tool-bar-map): Add :vert-only tags.
 +
 +2011-01-08  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * doc-view.el (doc-view-mode-p): Check for png or imagemagick
 +      image backend support.  Either of them is fine.
 +
 +2011-01-08  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * subr.el (y-or-n-p): Doc fix.
 +
 +      * custom.el (custom-safe-theme-files): New defcustom.
 +      (custom-theme-load-confirm): New function.
 +      (load-theme): Load theme using `load', confirming with
 +      custom-theme-load-confirm if necessary.
 +
 +      * subr.el (read-char-choice): New function, factored out from
 +      dired-query and hack-local-variables-confirm.
 +
 +      * dired-aux.el (dired-query):
 +      * files.el (hack-local-variables-confirm): Use it.
 +
 +      * dired-aux.el (dired-compress-file):
 +      * files.el (abort-if-file-too-large, find-alternate-file)
 +      (set-visited-file-name, write-file, backup-buffer)
 +      (basic-save-buffer, basic-save-buffer-2, save-some-buffers)
 +      (delete-directory, revert-buffer, recover-file, kill-buffer-ask):
 +      Use new format string args for y-or-n-p and yes-or-no-p.
 +
 +2011-01-08  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * progmodes/compile.el (compilation-error-regexp-alist-alist)
 +      [gcc-include]: Tighten file name match, add match for column
 +      number.  (Bug#7806)
 +      [gnu]: Remove unused group.
 +
 +2011-01-08  Glenn Morris  <rgm@gnu.org>
 +
 +      * makefile.w32-in (EMACSOPT): Add --no-site-lisp.
 +
 +      * makefile.w32-in (EMACSOPT): -batch implies --no-init-file.
 +
 +2011-01-07  Sam Steingold  <sds@gnu.org>
 +
 +      * w32-fns.el (w32-shell-name): Use `shell-file-name' instead of
 +      the `explicit-shell-file-name' because that is the
 +      non-interactive shell.
 +
 +2011-01-07  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * subr.el (y-or-n-p): Accept format string args.
 +
 +2011-01-07  Glenn Morris  <rgm@gnu.org>
 +
 +      * Makefile.in (EMACSOPT): Add --no-site-lisp.
 +
 +2011-01-06  Ken Manheimer  <ken.manheimer@gmail.com>
 +
 +      * allout.el (allout-back-to-current-heading): Ensure return to
 +      the visible containing topic, rather than a collapsed one.
 +      (allout-view-change-hook): Remove hook that was deprecated long ago.
 +      (allout-exposure-change-hook): Remove documentation remarks
 +      concerning removed allout-view-change-hook.
 +      (allout-flag-region): Remove invocation of and documentation
 +      remarks concerning allout-view-change-hook.
 +
 +2011-01-06  Glenn Morris  <rgm@gnu.org>
 +
 +      * vc/vc-bzr.el (vc-bzr-annotate-command, vc-bzr-annotate-time)
 +      (vc-bzr-annotate-extract-revision-at-line):
 +      Handle authors with embedded spaces.  (Bug#7792)
 +
 +2011-01-05  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * doc-view.el (doc-view-image-width): New variable.
 +      (doc-view-enlarge, doc-view-insert-image): Prefer imagemagick
 +      backend for PNG images, and do dynamic rescaling instead of
 +      reconverting the whole doc.
 +
 +2011-01-05  Glenn Morris  <rgm@gnu.org>
 +
 +      * emacs-lisp/rx.el (rx-repeat): Replace CL function.
 +
 +2011-01-04  Ken Manheimer  <ken.manheimer@gmail.com>
 +
 +      * allout.el: Reconcile with changes in line movement behavior for
 +      long text lines that cross more than a single physical window
 +      line, ie when truncate-lines is nil.
 +      (allout-next-visible-heading): Provide for change in line-move
 +      behavior on long lines when truncate-lines is nil.  In that case,
 +      line-move can wind up on the same textual line when it moves to
 +      the next window line, and moving to the bullet position after the
 +      move yields zero advancement.  Add logic to detect and compensate
 +      for the lack of progress.
 +      (allout-current-topic-collapsed-p): move-end-of-line respect for
 +      field boundaries is different when operating with body lines
 +      shorter than window width versus ones greater than window width,
 +      which can yield false negatives in this function.  Avoid
 +      difference by applying move-end-of-line while field-text-motion is
 +      inhibited.
 +
 +2011-01-04  Glenn Morris  <rgm@gnu.org>
 +
 +      * textmodes/rst.el (rst-compile-toolsets):
 +      Add pdf and s5 to option alist.
 +
 +2011-01-04  Jan Moringen  <jan.moringen@uni-bielefeld.de>
 +
 +      * net/dbus.el (dbus-register-property): Add optional parameter
 +      dont-register-service.  Updated docstring accordingly.
 +
 +2011-01-04  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * textmodes/rst.el (rst-compile-pdf-preview)
 +      (rst-compile-slides-preview): Remove extra line.
 +
 +2011-01-04  Glenn Morris  <rgm@gnu.org>
 +
 +      * textmodes/rst.el (rst-compile-toolsets): Make it a defcustom.
 +      Add `pdf' and `s5' entries.  Use `prog.py' if found, otherwise
 +      default to `prog' without a .py extension.
 +      (rst-compile-pdf-preview, rst-compile-slides-preview):
 +      Use program names from rst-compile-toolsets, rather than hard-coding.
 +      (rst-portable-mark-active-p): Fix presumed typo.
 +
 +2011-01-02  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * term/w32-win.el (dynamic-library-alist): Set up correctly for
        libpng versions both before and after 1.4.0.  (Bug#7716)
  
 -2010-12-25  Eli Zaretskii  <eliz@gnu.org>
 +2011-01-02  Eli Zaretskii  <eliz@gnu.org>
  
        * time.el (display-time-mode): Mention display-time-interval in
        the doc string.  (Bug#7713)
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/abbrev.el
Simple merge
Simple merge
diff --cc lisp/allout.el
Simple merge
Simple merge
diff --cc lisp/apropos.el
Simple merge
Simple merge
diff --cc lisp/array.el
Simple merge
Simple merge
diff --cc lisp/avoid.el
Simple merge
Simple merge
Simple merge
diff --cc lisp/bs.el
Simple merge
Simple merge
diff --cc lisp/button.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 211c7fb4b018b67f4f4a90807ff7b61f0967adb1,90b2277012ada8b7c0e87305c82c4ac0be4a5bfc..afb06044f2275eae835bb588af971f1486c12f4d
@@@ -1,9 -1,8 +1,9 @@@
  ;;; cedet-cscope.el --- CScope support for CEDET
  
- ;;; Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+ ;;; Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Eric M. Ludlam <zappo@gnu.org>
 +;; Package: cedet
  
  ;; This file is part of GNU Emacs.
  
index bb7137ddad2219070d47abd856c98f80e6ae2153,65112bdab929e7762047dd596d2ccf113f211624..b20cb3a172a94a8f183b4b14628a3392a4c8b613
@@@ -1,9 -1,8 +1,9 @@@
  ;;; cedet-files.el --- Common routines dealing with file names.
  
- ;; Copyright (C) 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;; Copyright (C) 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Author: Eric M. Ludlam <eric@siege-engine.com>
 +;; Package: cedet
  
  ;; This file is part of GNU Emacs.
  
index da4e618a749b5cf09ac6fa4b6102208d4a3699a0,9b270415dc1b67144cbe9eac2fdbe31269eec10d..8ac4ba1d0baa48c85532d1f8a691268f3791292c
@@@ -1,9 -1,8 +1,9 @@@
  ;;; cedet-global.el --- GNU Global support for CEDET.
  
- ;; Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;; Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Eric M. Ludlam <eric@siege-engine.com>
 +;; Package: cedet
  
  ;; This file is part of GNU Emacs.
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index b8e7c5f61a65abaeaef191333bbfe010554d5861,45660566234d26b69ad0b0a123b1d4c3d5ebfc89..a9575b692499dcfa0be649ab1e0cd0a7eb4fdede
@@@ -1,7 -1,7 +1,7 @@@
  ;;; ede-pmake.el --- EDE Generic Project Makefile code generator.
  
- ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007,
- ;;   2008, 2009, 2010  Free Software Foundation, Inc.
 -;;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 -;;; 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
++;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
++;; 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Eric M. Ludlam <zappo@gnu.org>
  ;; Keywords: project, make
Simple merge
Simple merge
index 8658a654b167543f82705f969fe264d04b9cb9ca,11c3bd8b7e56b5cb35559b61f156e118bcd62f91..c7ea005e6cb983e006168713febbe4e10ce91a5a
@@@ -1,7 -1,7 +1,7 @@@
  ;;; ede/speedbar.el --- Speedbar viewing of EDE projects
  
- ;; Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2008,
- ;;   2009, 2010  Free Software Foundation, Inc.
 -;;; Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2008, 2009, 2010, 2011
 -;;; Free Software Foundation, Inc.
++;; Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2007, 2008, 2009, 2010, 2011
++;; Free Software Foundation, Inc.
  
  ;; Author: Eric M. Ludlam <zappo@gnu.org>
  ;; Keywords: project, make, tags
Simple merge
Simple merge
index 90c72990ca93a826f38fac8a59a680c7cbcfa1fb,8623998cc30bf8c66bc7805a869fb63cefe453a3..a3d901a6146b959a632b27a101fe35751c7e9973
@@@ -1,7 -1,6 +1,6 @@@
  ;;; semantic/ede-grammar.el --- EDE support for Semantic Grammar Files
  
- ;; Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010
- ;;   Free Software Foundation, Inc.
 -;;;  Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
++;;  Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Eric M. Ludlam <zappo@gnu.org>
  ;; Keywords: project, make
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/comint.el
Simple merge
Simple merge
diff --cc lisp/cus-dep.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/custom.el
Simple merge
Simple merge
diff --cc lisp/desktop.el
Simple merge
diff --cc lisp/dframe.el
index 9ca0a260f6d2ca1840c2f274c763d4971211cea1,ffcffc22c10a27663161fa95d6dfbb703a42f5b7..c2744d00252199f6d188e0b47a7c322201e74de4
@@@ -1,8 -1,7 +1,8 @@@
  ;;; dframe --- dedicate frame support modes
  
 -;;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 -;;    2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 +;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010
++;;   2005, 2006, 2007, 2008, 2009, 2010, 2011
 +;;   Free Software Foundation, Inc.
  
  ;; Author: Eric M. Ludlam <zappo@gnu.org>
  ;; Keywords: file, tags, tools
Simple merge
diff --cc lisp/dired-x.el
Simple merge
diff --cc lisp/dired.el
Simple merge
Simple merge
Simple merge
diff --cc lisp/dnd.el
Simple merge
Simple merge
diff --cc lisp/dos-fns.el
Simple merge
Simple merge
diff --cc lisp/dos-w32.el
Simple merge
index cfa1053c44d11a24a7166b36ac7652ef3ddfeef5,25c02f86c64d308266fe475af63e6f56ad7d593b..3597e8338ed4635cda3b844db1071f685de24288
@@@ -1,6 -1,6 +1,6 @@@
 -;;; font-setting.el --- Support dynamic font changes   -*- coding: utf-8 -*-
 +;;; dynamic-setting.el --- Support dynamic changes
  
- ;; Copyright (C) 2009, 2010 Free Software Foundation, Inc.
+ ;; Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Jan Djärv <jan.h.d@swipnet.se>
  ;; Maintainer: FSF
Simple merge
diff --cc lisp/edmacro.el
Simple merge
diff --cc lisp/ehelp.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 776ce5e9ca1ead949d1214e4e3e75c5435d1a166,c21fbb1a17cab7fbc8e6d7cd280fc9e5c7dcd475..9dab72fae483a56691514f45d88b2589646f4188
@@@ -1,10 -1,9 +1,10 @@@
  ;;; cl-specs.el --- Edebug specs for cl.el -*- no-byte-compile: t -*-
  
  ;; Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005,
- ;;   2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  ;; Author: Daniel LaLiberte <liberte@holonexus.org>
  ;; Keywords: lisp, tools, maint
 +;; Package: emacs
  
  ;; LCD Archive Entry:
  ;; cl-specs.el|Daniel LaLiberte|liberte@holonexus.org
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index b12d9068676ca080f8d02975285a962685fcfdf7,16d1af331fabc55e1435286c23f3931087095b94..130b1ae23ebe2ce184bb0723e089eae56b231715
@@@ -1,10 -1,9 +1,10 @@@
  ;;; timer.el --- run a function with args at some time in future
  
  ;; Copyright (C) 1996, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
- ;;   2009, 2010  Free Software Foundation, Inc.
+ ;;   2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Maintainer: FSF
 +;; Package: emacs
  
  ;; This file is part of GNU Emacs.
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index bfed09e0df3b53d418c3aedad4ed67f2978bc689,3e746cb0346ea68cbcb313d950658a8134cc9a70..52b083da6a1e634cfefc0f69e00ec17fab3fcefd
@@@ -1,8 -1,7 +1,7 @@@
 -;;; edt.el --- enhanced EDT keypad mode emulation for GNU Emacs 19
 +;;; edt.el --- enhanced EDT keypad mode emulation for GNU Emacs
  
  ;; Copyright (C) 1986, 1992, 1993, 1994, 1995, 2000, 2001, 2002, 2003,
- ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010
- ;;   Free Software Foundation, Inc.
+ ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com>
  ;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com>
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 4e90889ddd0d8daf66b79329e4cd4d849d5014c1,317b5760caacd205d29a6e0cf6fa5bdc4b10df4e..a4df2941b1c9409e7336b7459fef62ab0f540a5c
@@@ -1,10 -1,9 +1,10 @@@
  ;;; viper-cmd.el --- Vi command support for Viper
  
- ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- ;;   2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: viper
  
  ;; This file is part of GNU Emacs.
  
index be387d7724b2afef60ab7e220397df64759ffac0,b068bd5ca25576ce5bd5e0ac436b27156e387054..e4cfbe8857254621dc865333bcc7249ece3581f0
@@@ -1,10 -1,9 +1,10 @@@
  ;;; viper-ex.el --- functions implementing the Ex commands for Viper
  
  ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003,
- ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: viper
  
  ;; This file is part of GNU Emacs.
  
index 5af9692217186ba2e67c6dd8d84b144d89143aa9,1ecff657d2ae0e882211a2bfee32f941f841fbbf..f18cd55d7f8da6d3b76d466ea04cb22d9edf4a3a
@@@ -1,10 -1,9 +1,10 @@@
  ;;; viper-init.el --- some common definitions for Viper
  
- ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- ;;   2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: viper
  
  ;; This file is part of GNU Emacs.
  
index d75573673d7eb266fc0d166e33b5d98d2998a33b,a3dda4e0cebf97cda12a4eec2245ac93cdef1cb1..79d7505f512ae4330456a9c8148cd2546c4fd5fd
@@@ -1,10 -1,9 +1,10 @@@
  ;;; viper-keym.el --- Viper keymaps
  
  ;; Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: viper
  
  ;; This file is part of GNU Emacs.
  
index 71d565632eba8c8763efd8c584fd34f2fe3aca2c,d39589f44d78e91e9bf275352b3e6c94fe384699..3af24a46f9b05445c434a4f115b82a31bab5f72b
@@@ -1,10 -1,9 +1,10 @@@
  ;;; viper-macs.el --- functions implementing keyboard macros for Viper
  
  ;; Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: viper
  
  ;; This file is part of GNU Emacs.
  
index 9bea921e167bced1d6b8d50109c061365f66fd3f,31acf40028a040a1d265d25642907ff5fcee8cc8..69ad062fc28bace58609164ea9317f6493d1048a
@@@ -1,10 -1,9 +1,10 @@@
  ;;; viper-mous.el --- mouse support for Viper
  
  ;; Copyright (C) 1994, 1995, 1996, 1997, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: viper
  
  ;; This file is part of GNU Emacs.
  
index 6868a9600878855c7c5e62175642ab14716d7fb0,81485a0390d2f1ff836a1d9d599fead00283de48..70e5466346d8907ba8d22fd7295ffb3c0fd5236d
@@@ -1,11 -1,9 +1,10 @@@
  ;;; viper-util.el --- Utilities used by viper.el
  
  ;; Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
- ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010
- ;;   Free Software Foundation, Inc.
+ ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: viper
  
  ;; This file is part of GNU Emacs.
  
Simple merge
Simple merge
diff --cc lisp/env.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/epa.el
Simple merge
Simple merge
diff --cc lisp/epg.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/expand.el
Simple merge
index f7f469b0ccc692cd4e5563ebb865d7a23552c8d8,6bb84acb16c9b802d6d6359bd296d4095d94255a..3420eea29e03ff6136beffbfddf14177394e901b
@@@ -1,9 -1,9 +1,9 @@@
  ;;; face-remap.el --- Functions for managing `face-remapping-alist'
  ;;
- ;; Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;; Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  ;;
  ;; Author: Miles Bader <miles@gnu.org>
 -;; Keywords: faces face remapping display user commands
 +;; Keywords: faces, face remapping, display, user commands
  ;;
  ;; This file is part of GNU Emacs.
  ;;
Simple merge
diff --cc lisp/faces.el
Simple merge
Simple merge
diff --cc lisp/files-x.el
Simple merge
Simple merge
Simple merge
diff --cc lisp/finder.el
Simple merge
diff --cc lisp/foldout.el
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/format.el
index b4277ef6df0d4bb36b6dd775458c4c19f36dc1c5,f9b00414c990811f8d40190c236c195e31c4d1fc..59cb1a2b139ed0ecb0b668116bb212a266a70e9b
@@@ -1,10 -1,9 +1,10 @@@
  ;;; format.el --- read and save files in multiple formats
  
  ;; Copyright (C) 1994, 1995, 1997, 1999, 2001, 2002, 2003, 2004, 2005,
- ;;   2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;;   2006, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Author: Boris Goldowsky <boris@gnu.org>
 +;; Package: emacs
  
  ;; This file is part of GNU Emacs.
  
diff --cc lisp/forms.el
Simple merge
diff --cc lisp/frame.el
Simple merge
diff --cc lisp/fringe.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/gnus/qp.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/help.el
Simple merge
Simple merge
diff --cc lisp/hexl.el
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/hl-line.el
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/ibuffer.el
Simple merge
Simple merge
diff --cc lisp/ido.el
Simple merge
diff --cc lisp/iimage.el
Simple merge
Simple merge
Simple merge
diff --cc lisp/image.el
Simple merge
diff --cc lisp/imenu.el
Simple merge
diff --cc lisp/indent.el
index e57d6068ef568721353f305f02b2ec150055abce,8adb5a9bd6a69f7dcc77a698b483477b4b928e3b..6d0100489d12f684d80b711c3673523d8111fb38
@@@ -1,10 -1,9 +1,10 @@@
  ;;; indent.el --- indentation commands for Emacs
  
  ;; Copyright (C) 1985, 1995, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- ;;   2008, 2009, 2010  Free Software Foundation, Inc.
+ ;;   2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Maintainer: FSF
 +;; Package: emacs
  
  ;; This file is part of GNU Emacs.
  
diff --cc lisp/info.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/isearch.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/kmacro.el
Simple merge
Simple merge
index bcc3d625d6827bb354a127af4ed389bd37403bba,3ff2538469d1477634eb14d3f65e0415a2e27c47..ad079c2d70b0dcf0417f09140d78c0dfa7691839
@@@ -1,9 -1,9 +1,9 @@@
 -;;; hebrew.el --- support for Hebrew -*- coding: iso-2022-7bit; no-byte-compile: t -*-
 +;;; hebrew.el --- support for Hebrew -*- coding: utf-8 -*-
  
- ;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ ;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
  ;;   Free Software Foundation, Inc.
  ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011
  ;;   National Institute of Advanced Industrial Science and Technology (AIST)
  ;;   Registration Number H14PRO021
  
Simple merge
Simple merge
Simple merge
diff --cc lisp/linum.el
Simple merge
diff --cc lisp/loadup.el
Simple merge
diff --cc lisp/locate.el
Simple merge
diff --cc lisp/lpr.el
Simple merge
diff --cc lisp/ls-lisp.el
Simple merge
diff --cc lisp/macros.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/makesum.el
Simple merge
diff --cc lisp/man.el
Simple merge
diff --cc lisp/md4.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 5ff1ecc9b070e4e171c9d0c3df6df369cc82b39d,ef4d0dd113664912a672e00da09287ed61a3aeee..b4b0528677f2a5ddeea50b7d2161264a9c3f36ff
@@@ -1,10 -1,10 +1,10 @@@
  ;;; midnight.el --- run something every midnight, e.g., kill old buffers
  
  ;; Copyright (C) 1998, 2001, 2002, 2003, 2004, 2005,
- ;;   2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
 -;; Author: Sam Steingold <sds@usa.net>
 -;; Maintainer: Sam Steingold <sds@usa.net>
 +;; Author: Sam Steingold <sds@gnu.org>
 +;; Maintainer: Sam Steingold <sds@gnu.org>
  ;; Created: 1998-05-18
  ;; Keywords: utilities
  
index 8d09d5d3f6d6afc985c7c3cb887d14b30a91a8cb,338ab4e281ebc4001ae328142d82010c5b507d12..284cbdc2182a987a6e32688cdc21be1a0b8a15f4
@@@ -1,9 -1,8 +1,9 @@@
  ;;; minibuffer.el --- Minibuffer completion functions
  
- ;; Copyright (C) 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;; Copyright (C) 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
 +;; Package: emacs
  
  ;; This file is part of GNU Emacs.
  
diff --cc lisp/misc.el
Simple merge
Simple merge
Simple merge
diff --cc lisp/mouse.el
Simple merge
diff --cc lisp/mpc.el
Simple merge
diff --cc lisp/mwheel.el
index 2fc84c062458f826f5d8aad6a6e96bb6183bef36,03aefcaf4418f10fdcad8d9a3133b5fab9dc8d6d..d16c20cd585f243e962be554b2f19b7b8b6da004
@@@ -1,10 -1,9 +1,10 @@@
  ;;; mwheel.el --- Wheel mouse support
  
  ;; Copyright (C) 1998, 2000, 2001, 2002, 2002, 2004, 2005, 2006, 2007,
- ;;   2008, 2009, 2010  Free Software Foundation, Inc.
+ ;;   2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  ;; Maintainer: William M. Perry <wmperry@gnu.org>
  ;; Keywords: mouse
 +;; Package: emacs
  
  ;; This file is part of GNU Emacs.
  
Simple merge
Simple merge
diff --cc lisp/net/dig.el
Simple merge
diff --cc lisp/net/dns.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index c16fffc8de45482f592bd2cb1c7b78116d14a255,459d0b817793dc8d5d830cd05c5728f20fd87e44..a7a408e853bffcd0a5098604c47dc6db06880c01
@@@ -1,9 -1,9 +1,9 @@@
  ;;; hmac-def.el --- A macro for defining HMAC functions.
  
- ;; Copyright (C) 1999, 2001, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;; Copyright (C) 1999, 2001, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Author: Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
 -;; Keywords: HMAC, RFC-2104
 +;; Keywords: HMAC, RFC2104
  
  ;; This file is part of GNU Emacs.
  
index a0bfd36ea69d9c50745f217310adbc68ff72063e,c433d7004d89dc4a2bed48522b33c6404e4cccad..e61ea80456fd459fc5010f3bff85aff7080ff652
@@@ -1,9 -1,9 +1,9 @@@
  ;;; hmac-md5.el --- Compute HMAC-MD5.
  
- ;; Copyright (C) 1999, 2001, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;; Copyright (C) 1999, 2001, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Author: Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
 -;; Keywords: HMAC, RFC-2104, HMAC-MD5, MD5, KEYED-MD5, CRAM-MD5
 +;; Keywords: HMAC, RFC2104, HMAC-MD5, MD5, KEYED-MD5, CRAM-MD5
  
  ;; This file is part of GNU Emacs.
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/net/tls.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 9950709bd7a08a3eba1debe3d92d333553e0aa56,0000000000000000000000000000000000000000..ae7deeeb953d0cc382f0938ed4d44d09bbf7dd38
mode 100644,000000..100644
--- /dev/null
@@@ -1,5061 -1,0 +1,5061 @@@
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 +;;; tramp-sh.el --- Tramp access functions for (s)sh-like connections
 +
 +;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
++;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 +
 +;; (copyright statements below in code to be updated with the above notice)
 +
 +;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
 +;;         Michael Albinus <michael.albinus@gmx.de>
 +;; Keywords: comm, processes
 +;; Package: tramp
 +
 +;; This file is part of GNU Emacs.
 +
 +;; GNU Emacs 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.
 +
 +;; GNU Emacs 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.  If not, see <http://www.gnu.org/licenses/>.
 +
 +;;; Code:
 +
 +(eval-when-compile (require 'cl))     ; ignore-errors
 +(require 'tramp)
 +(require 'shell)
 +
 +;; Pacify byte-compiler.  The function is needed on XEmacs only.  I'm
 +;; not sure at all that this is the right way to do it, but let's hope
 +;; it works for now, and wait for a guru to point out the Right Way to
 +;; achieve this.
 +;;(eval-when-compile
 +;;  (unless (fboundp 'dired-insert-set-properties)
 +;;    (fset 'dired-insert-set-properties 'ignore)))
 +;; Gerd suggests this:
 +(eval-when-compile (require 'dired))
 +;; Note that dired is required at run-time, too, when it is needed.
 +;; It is only needed on XEmacs for the function
 +;; `dired-insert-set-properties'.
 +
 +(defcustom tramp-inline-compress-start-size 4096
 +  "*The minimum size of compressing where inline transfer.
 +When inline transfer, compress transfered data of file
 +whose size is this value or above (up to `tramp-copy-size-limit').
 +If it is nil, no compression at all will be applied."
 +  :group 'tramp
 +  :type '(choice (const nil) integer))
 +
 +(defcustom tramp-copy-size-limit 10240
 +  "*The maximum file size where inline copying is preferred over an out-of-the-band copy.
 +If it is nil, inline out-of-the-band copy will be used without a check."
 +  :group 'tramp
 +  :type '(choice (const nil) integer))
 +
 +;;;###tramp-autoload
 +(defcustom tramp-terminal-type "dumb"
 +  "*Value of TERM environment variable for logging in to remote host.
 +Because Tramp wants to parse the output of the remote shell, it is easily
 +confused by ANSI color escape sequences and suchlike.  Often, shell init
 +files conditionalize this setup based on the TERM environment variable."
 +  :group 'tramp
 +  :type 'string)
 +
 +;; ksh on OpenBSD 4.5 requires, that $PS1 contains a `#' character for
 +;; root users.  It uses the `$' character for other users.  In order
 +;; to guarantee a proper prompt, we use "#$" for the prompt.
 +
 +(defvar tramp-end-of-output
 +  (format
 +   "///%s#$"
 +   (md5 (concat (prin1-to-string process-environment) (current-time-string))))
 +  "String used to recognize end of output.
 +The '$' character at the end is quoted; the string cannot be
 +detected as prompt when being sent on echoing hosts, therefore.")
 +
 +;;;###tramp-autoload
 +(defconst tramp-initial-end-of-output "#$ "
 +  "Prompt when establishing a connection.")
 +
 +;; Initialize `tramp-methods' with the supported methods.
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("rcp"
 +    (tramp-login-program        "rsh")
 +    (tramp-login-args           (("%h") ("-l" "%u")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "rcp")
 +    (tramp-copy-args            (("%k" "-p") ("-r")))
 +    (tramp-copy-keep-date       t)
 +    (tramp-copy-recursive       t)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("remcp"
 +    (tramp-login-program        "remsh")
 +    (tramp-login-args           (("%h") ("-l" "%u")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "rcp")
 +    (tramp-copy-args            (("%k" "-p")))
 +    (tramp-copy-keep-date       t)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 + '("scp"
 +   (tramp-login-program        "ssh")
 +   (tramp-login-args           (("-l" "%u") ("-p" "%p")       ("-e" "none") ("%h")))
 +   (tramp-async-args           (("-q")))
 +   (tramp-remote-sh            "/bin/sh")
 +   (tramp-copy-program         "scp")
 +   (tramp-copy-args            (("-P" "%p") ("%k" "-p")       ("-q") ("-r")))
 +   (tramp-copy-keep-date       t)
 +   (tramp-copy-recursive       t)
 +   (tramp-gw-args              (("-o" "GlobalKnownHostsFile=/dev/null")
 +                              ("-o" "UserKnownHostsFile=/dev/null")
 +                              ("-o" "StrictHostKeyChecking=no")))
 +   (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("scp1"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p")
 +                               ("-1") ("-e" "none") ("%h")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "scp")
 +    (tramp-copy-args            (("-1") ("-P" "%p") ("%k" "-p") ("-q") ("-r")))
 +    (tramp-copy-keep-date       t)
 +    (tramp-copy-recursive       t)
 +    (tramp-gw-args              (("-o" "GlobalKnownHostsFile=/dev/null")
 +                               ("-o" "UserKnownHostsFile=/dev/null")
 +                               ("-o" "StrictHostKeyChecking=no")))
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("scp2"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p")
 +                               ("-2") ("-e" "none") ("%h")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "scp")
 +    (tramp-copy-args            (("-2") ("-P" "%p") ("%k" "-p") ("-q") ("-r")))
 +    (tramp-copy-keep-date       t)
 +    (tramp-copy-recursive       t)
 +    (tramp-gw-args              (("-o" "GlobalKnownHostsFile=/dev/null")
 +                               ("-o" "UserKnownHostsFile=/dev/null")
 +                               ("-o" "StrictHostKeyChecking=no")))
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("scpc"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p")
 +                               ("-o" "ControlPath=%t.%%r@%%h:%%p")
 +                               ("-o" "ControlMaster=yes")
 +                               ("-e" "none") ("%h")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "scp")
 +    (tramp-copy-args            (("-P" "%p") ("%k" "-p") ("-q") ("-r")
 +                               ("-o" "ControlPath=%t.%%r@%%h:%%p")
 +                               ("-o" "ControlMaster=auto")))
 +    (tramp-copy-keep-date       t)
 +    (tramp-copy-recursive       t)
 +    (tramp-gw-args              (("-o" "GlobalKnownHostsFile=/dev/null")
 +                               ("-o" "UserKnownHostsFile=/dev/null")
 +                               ("-o" "StrictHostKeyChecking=no")))
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("scpx"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p")
 +                               ("-e" "none") ("-t" "-t")
 +                               ("%h") ("/bin/sh")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "scp")
 +    (tramp-copy-args            (("-P" "%p") ("%k" "-p") ("-q") ("-r")))
 +    (tramp-copy-keep-date       t)
 +    (tramp-copy-recursive       t)
 +    (tramp-gw-args              (("-o" "GlobalKnownHostsFile=/dev/null")
 +                               ("-o" "UserKnownHostsFile=/dev/null")
 +                               ("-o" "StrictHostKeyChecking=no")))
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("sftp"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p") ("-e" "none") ("%h")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "sftp")))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("rsync"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p") ("-e" "none") ("%h")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "rsync")
 +    (tramp-copy-args            (("-e" "ssh") ("%k" "-t") ("-r")))
 +    (tramp-copy-keep-date       t)
 +    (tramp-copy-keep-tmpfile    t)
 +    (tramp-copy-recursive       t)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  `("rsyncc"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p")
 +                               ("-o" "ControlPath=%t.%%r@%%h:%%p")
 +                               ("-o" "ControlMaster=yes")
 +                               ("-e" "none") ("%h")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "rsync")
 +    (tramp-copy-args            (("%k" "-t") ("-r")))
 +    (tramp-copy-env             (("RSYNC_RSH")
 +                               (,(concat
 +                                  "ssh"
 +                                  " -o ControlPath=%t.%%r@%%h:%%p"
 +                                  " -o ControlMaster=auto"))))
 +    (tramp-copy-keep-date       t)
 +    (tramp-copy-keep-tmpfile    t)
 +    (tramp-copy-recursive       t)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("rsh"
 +    (tramp-login-program        "rsh")
 +    (tramp-login-args           (("%h") ("-l" "%u")))
 +    (tramp-remote-sh            "/bin/sh")))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("remsh"
 +    (tramp-login-program        "remsh")
 +    (tramp-login-args           (("%h") ("-l" "%u")))
 +    (tramp-remote-sh            "/bin/sh")))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("ssh"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p") ("-e" "none") ("%h")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-gw-args              (("-o" "GlobalKnownHostsFile=/dev/null")
 +                               ("-o" "UserKnownHostsFile=/dev/null")
 +                               ("-o" "StrictHostKeyChecking=no")))
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("ssh1"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p")
 +                               ("-1") ("-e" "none") ("%h")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-gw-args              (("-o" "GlobalKnownHostsFile=/dev/null")
 +                               ("-o" "UserKnownHostsFile=/dev/null")
 +                               ("-o" "StrictHostKeyChecking=no")))
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("ssh2"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p")
 +                               ("-2") ("-e" "none") ("%h")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-gw-args              (("-o" "GlobalKnownHostsFile=/dev/null")
 +                               ("-o" "UserKnownHostsFile=/dev/null")
 +                               ("-o" "StrictHostKeyChecking=no")))
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("sshx"
 +    (tramp-login-program        "ssh")
 +    (tramp-login-args           (("-l" "%u") ("-p" "%p")
 +                               ("-e" "none") ("-t" "-t")
 +                               ("%h") ("/bin/sh")))
 +    (tramp-async-args           (("-q")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-gw-args              (("-o" "GlobalKnownHostsFile=/dev/null")
 +                               ("-o" "UserKnownHostsFile=/dev/null")
 +                               ("-o" "StrictHostKeyChecking=no")))
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("telnet"
 +    (tramp-login-program        "telnet")
 +    (tramp-login-args           (("%h") ("%p")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-default-port         23)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("su"
 +    (tramp-login-program        "su")
 +    (tramp-login-args           (("-") ("%u")))
 +    (tramp-remote-sh            "/bin/sh")))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("sudo"
 +    (tramp-login-program        "sudo")
 +    (tramp-login-args           (("-u" "%u") ("-s") ("-H") ("-p" "Password:")))
 +    (tramp-remote-sh            "/bin/sh")))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("ksu"
 +    (tramp-login-program        "ksu")
 +    (tramp-login-args           (("%u") ("-q")))
 +    (tramp-remote-sh            "/bin/sh")))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("krlogin"
 +    (tramp-login-program        "krlogin")
 +    (tramp-login-args           (("%h") ("-l" "%u") ("-x")))
 +    (tramp-remote-sh            "/bin/sh")))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("plink"
 +    (tramp-login-program        "plink")
 +    (tramp-login-args           (("-l" "%u") ("-P" "%p") ("-ssh") ("%h")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-password-end-of-line "xy") ;see docstring for "xy"
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("plink1"
 +    (tramp-login-program        "plink")
 +    (tramp-login-args           (("-l" "%u") ("-P" "%p") ("-1" "-ssh") ("%h")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-password-end-of-line "xy") ;see docstring for "xy"
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  `("plinkx"
 +    (tramp-login-program        "plink")
 +    ;; ("%h") must be a single element, see
 +    ;; `tramp-compute-multi-hops'.
 +    (tramp-login-args           (("-load") ("%h") ("-t")
 +                               (,(format
 +                                  "env 'TERM=%s' 'PROMPT_COMMAND=' 'PS1=%s'"
 +                                  tramp-terminal-type
 +                                  tramp-initial-end-of-output))
 +                               ("/bin/sh")))
 +    (tramp-remote-sh            "/bin/sh")))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("pscp"
 +    (tramp-login-program        "plink")
 +    (tramp-login-args           (("-l" "%u") ("-P" "%p") ("-ssh") ("%h")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "pscp")
 +    (tramp-copy-args            (("-P" "%p") ("-scp") ("%k" "-p")
 +                               ("-q") ("-r")))
 +    (tramp-copy-keep-date       t)
 +    (tramp-copy-recursive       t)
 +    (tramp-password-end-of-line "xy") ;see docstring for "xy"
 +    (tramp-default-port         22)))
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("psftp"
 +    (tramp-login-program        "plink")
 +    (tramp-login-args           (("-l" "%u") ("-P" "%p") ("-ssh") ("%h")))
 +    (tramp-remote-sh            "/bin/sh")
 +    (tramp-copy-program         "pscp")
 +    (tramp-copy-args            (("-P" "%p") ("-sftp") ("%k" "-p")
 +                               ("-q") ("-r")))
 +    (tramp-copy-keep-date       t)
 +    (tramp-copy-recursive       t)
 +    (tramp-password-end-of-line "xy"))) ;see docstring for "xy"
 +;;;###tramp-autoload
 +(add-to-list 'tramp-methods
 +  '("fcp"
 +    (tramp-login-program        "fsh")
 +    (tramp-login-args           (("%h") ("-l" "%u") ("sh" "-i")))
 +    (tramp-remote-sh            "/bin/sh -i")
 +    (tramp-copy-program         "fcp")
 +    (tramp-copy-args            (("%k" "-p")))
 +    (tramp-copy-keep-date       t)))
 +
 +;;;###tramp-autoload
 +(add-to-list 'tramp-default-method-alist
 +           `(,tramp-local-host-regexp "\\`root\\'" "su"))
 +
 +;;;###tramp-autoload
 +(add-to-list 'tramp-default-user-alist
 +           `(,(concat "\\`" (regexp-opt '("su" "sudo" "ksu")) "\\'")
 +             nil "root"))
 +;; Do not add "ssh" based methods, otherwise ~/.ssh/config would be ignored.
 +;;;###tramp-autoload
 +(add-to-list 'tramp-default-user-alist
 +           `(,(concat
 +               "\\`"
 +               (regexp-opt
 +                '("rcp" "remcp" "rsh" "telnet" "krlogin"
 +                  "plink" "plink1" "pscp" "psftp" "fcp"))
 +               "\\'")
 +             nil ,(user-login-name)))
 +
 +(defconst tramp-completion-function-alist-rsh
 +  '((tramp-parse-rhosts "/etc/hosts.equiv")
 +    (tramp-parse-rhosts "~/.rhosts"))
 +  "Default list of (FUNCTION FILE) pairs to be examined for rsh methods.")
 +
 +(defconst tramp-completion-function-alist-ssh
 +  '((tramp-parse-rhosts      "/etc/hosts.equiv")
 +    (tramp-parse-rhosts      "/etc/shosts.equiv")
 +    (tramp-parse-shosts      "/etc/ssh_known_hosts")
 +    (tramp-parse-sconfig     "/etc/ssh_config")
 +    (tramp-parse-shostkeys   "/etc/ssh2/hostkeys")
 +    (tramp-parse-sknownhosts "/etc/ssh2/knownhosts")
 +    (tramp-parse-rhosts      "~/.rhosts")
 +    (tramp-parse-rhosts      "~/.shosts")
 +    (tramp-parse-shosts      "~/.ssh/known_hosts")
 +    (tramp-parse-sconfig     "~/.ssh/config")
 +    (tramp-parse-shostkeys   "~/.ssh2/hostkeys")
 +    (tramp-parse-sknownhosts "~/.ssh2/knownhosts"))
 +  "Default list of (FUNCTION FILE) pairs to be examined for ssh methods.")
 +
 +(defconst tramp-completion-function-alist-telnet
 +  '((tramp-parse-hosts "/etc/hosts"))
 +  "Default list of (FUNCTION FILE) pairs to be examined for telnet methods.")
 +
 +(defconst tramp-completion-function-alist-su
 +  '((tramp-parse-passwd "/etc/passwd"))
 +  "Default list of (FUNCTION FILE) pairs to be examined for su methods.")
 +
 +(defconst tramp-completion-function-alist-putty
 +  '((tramp-parse-putty
 +     "HKEY_CURRENT_USER\\Software\\SimonTatham\\PuTTY\\Sessions"))
 +  "Default list of (FUNCTION REGISTRY) pairs to be examined for putty methods.")
 +
 +(tramp-set-completion-function "rcp" tramp-completion-function-alist-rsh)
 +(tramp-set-completion-function "remcp" tramp-completion-function-alist-rsh)
 +(tramp-set-completion-function "scp" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "scp1" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "scp2" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "scpc" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "scpx" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "sftp" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "rsync" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "rsyncc" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "rsh" tramp-completion-function-alist-rsh)
 +(tramp-set-completion-function "remsh" tramp-completion-function-alist-rsh)
 +(tramp-set-completion-function "ssh" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "ssh1" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "ssh2" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "ssh1_old" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "ssh2_old" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "sshx" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "telnet" tramp-completion-function-alist-telnet)
 +(tramp-set-completion-function "su" tramp-completion-function-alist-su)
 +(tramp-set-completion-function "sudo" tramp-completion-function-alist-su)
 +(tramp-set-completion-function "ksu" tramp-completion-function-alist-su)
 +(tramp-set-completion-function "krlogin" tramp-completion-function-alist-rsh)
 +(tramp-set-completion-function "plink" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "plink1" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "plinkx" tramp-completion-function-alist-putty)
 +(tramp-set-completion-function "pscp" tramp-completion-function-alist-ssh)
 +(tramp-set-completion-function "fcp" tramp-completion-function-alist-ssh)
 +
 +;; "getconf PATH" yields:
 +;; HP-UX: /usr/bin:/usr/ccs/bin:/opt/ansic/bin:/opt/langtools/bin:/opt/fortran/bin
 +;; Solaris: /usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin
 +;; GNU/Linux (Debian, Suse): /bin:/usr/bin
 +;; FreeBSD: /usr/bin:/bin:/usr/sbin:/sbin: - beware trailing ":"!
 +;; IRIX64: /usr/bin
 +(defcustom tramp-remote-path
 +  '(tramp-default-remote-path "/usr/sbin" "/usr/local/bin"
 +    "/local/bin" "/local/freeware/bin" "/local/gnu/bin"
 +    "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin")
 +  "*List of directories to search for executables on remote host.
 +For every remote host, this variable will be set buffer local,
 +keeping the list of existing directories on that host.
 +
 +You can use `~' in this list, but when searching for a shell which groks
 +tilde expansion, all directory names starting with `~' will be ignored.
 +
 +`Default Directories' represent the list of directories given by
 +the command \"getconf PATH\".  It is recommended to use this
 +entry on top of this list, because these are the default
 +directories for POSIX compatible commands.
 +
 +`Private Directories' are the settings of the $PATH environment,
 +as given in your `~/.profile'."
 +  :group 'tramp
 +  :type '(repeat (choice
 +                (const :tag "Default Directories" tramp-default-remote-path)
 +                (const :tag "Private Directories" tramp-own-remote-path)
 +                (string :tag "Directory"))))
 +
 +(defcustom tramp-remote-process-environment
 +  `("HISTFILE=$HOME/.tramp_history" "HISTSIZE=1" "LC_ALL=C"
 +    ,(format "TERM=%s" tramp-terminal-type)
 +    "EMACS=t" ;; Deprecated.
 +    ,(format "INSIDE_EMACS='%s,tramp:%s'" emacs-version tramp-version)
 +    "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH="
 +    "autocorrect=" "correct=")
 +
 +  "*List of environment variables to be set on the remote host.
 +
 +Each element should be a string of the form ENVVARNAME=VALUE.  An
 +entry ENVVARNAME= diables the corresponding environment variable,
 +which might have been set in the init files like ~/.profile.
 +
 +Special handling is applied to the PATH environment, which should
 +not be set here. Instead of, it should be set via `tramp-remote-path'."
 +  :group 'tramp
 +  :type '(repeat string))
 +
 +(defcustom tramp-sh-extra-args '(("/bash\\'" . "-norc -noprofile"))
 +  "*Alist specifying extra arguments to pass to the remote shell.
 +Entries are (REGEXP . ARGS) where REGEXP is a regular expression
 +matching the shell file name and ARGS is a string specifying the
 +arguments.
 +
 +This variable is only used when Tramp needs to start up another shell
 +for tilde expansion.  The extra arguments should typically prevent the
 +shell from reading its init file."
 +  :group 'tramp
 +  ;; This might be the wrong way to test whether the widget type
 +  ;; `alist' is available.  Who knows the right way to test it?
 +  :type (if (get 'alist 'widget-type)
 +          '(alist :key-type string :value-type string)
 +        '(repeat (cons string string))))
 +
 +(defconst tramp-actions-before-shell
 +  '((tramp-login-prompt-regexp tramp-action-login)
 +    (tramp-password-prompt-regexp tramp-action-password)
 +    (tramp-wrong-passwd-regexp tramp-action-permission-denied)
 +    (shell-prompt-pattern tramp-action-succeed)
 +    (tramp-shell-prompt-pattern tramp-action-succeed)
 +    (tramp-yesno-prompt-regexp tramp-action-yesno)
 +    (tramp-yn-prompt-regexp tramp-action-yn)
 +    (tramp-terminal-prompt-regexp tramp-action-terminal)
 +    (tramp-process-alive-regexp tramp-action-process-alive))
 +  "List of pattern/action pairs.
 +Whenever a pattern matches, the corresponding action is performed.
 +Each item looks like (PATTERN ACTION).
 +
 +The PATTERN should be a symbol, a variable.  The value of this
 +variable gives the regular expression to search for.  Note that the
 +regexp must match at the end of the buffer, \"\\'\" is implicitly
 +appended to it.
 +
 +The ACTION should also be a symbol, but a function.  When the
 +corresponding PATTERN matches, the ACTION function is called.")
 +
 +(defconst tramp-actions-copy-out-of-band
 +  '((tramp-password-prompt-regexp tramp-action-password)
 +    (tramp-wrong-passwd-regexp tramp-action-permission-denied)
 +    (tramp-copy-failed-regexp tramp-action-permission-denied)
 +    (tramp-process-alive-regexp tramp-action-out-of-band))
 +  "List of pattern/action pairs.
 +This list is used for copying/renaming with out-of-band methods.
 +
 +See `tramp-actions-before-shell' for more info.")
 +
 +(defconst tramp-uudecode
 +  "(echo begin 600 /tmp/tramp.$$; tail +2) | uudecode
 +cat /tmp/tramp.$$
 +rm -f /tmp/tramp.$$"
 +  "Shell function to implement `uudecode' to standard output.
 +Many systems support `uudecode -o /dev/stdout' or `uudecode -o -'
 +for this or `uudecode -p', but some systems don't, and for them
 +we have this shell function.")
 +
 +(defconst tramp-perl-file-truename
 +  "%s -e '
 +use File::Spec;
 +use Cwd \"realpath\";
 +
 +sub recursive {
 +    my ($volume, @dirs) = @_;
 +    my $real = realpath(File::Spec->catpath(
 +                   $volume, File::Spec->catdir(@dirs), \"\"));
 +    if ($real) {
 +        my ($vol, $dir) = File::Spec->splitpath($real, 1);
 +        return ($vol, File::Spec->splitdir($dir));
 +    }
 +    else {
 +        my $last = pop(@dirs);
 +        ($volume, @dirs) = recursive($volume, @dirs);
 +        push(@dirs, $last);
 +        return ($volume, @dirs);
 +    }
 +}
 +
 +$result = realpath($ARGV[0]);
 +if (!$result) {
 +    my ($vol, $dir) = File::Spec->splitpath($ARGV[0], 1);
 +    ($vol, @dirs) = recursive($vol, File::Spec->splitdir($dir));
 +
 +    $result = File::Spec->catpath($vol, File::Spec->catdir(@dirs), \"\");
 +}
 +
 +if ($ARGV[0] =~ /\\/$/) {
 +    $result = $result . \"/\";
 +}
 +
 +print \"\\\"$result\\\"\\n\";
 +' \"$1\" 2>/dev/null"
 +  "Perl script to produce output suitable for use with `file-truename'
 +on the remote file system.
 +Escape sequence %s is replaced with name of Perl binary.
 +This string is passed to `format', so percent characters need to be doubled.")
 +
 +(defconst tramp-perl-file-name-all-completions
 +  "%s -e 'sub case {
 + my $str = shift;
 + if ($ARGV[2]) {
 +  return lc($str);
 + }
 + else {
 +  return $str;
 + }
 +}
 +opendir(d, $ARGV[0]) || die(\"$ARGV[0]: $!\\nfail\\n\");
 +@files = readdir(d); closedir(d);
 +foreach $f (@files) {
 + if (case(substr($f, 0, length($ARGV[1]))) eq case($ARGV[1])) {
 +  if (-d \"$ARGV[0]/$f\") {
 +   print \"$f/\\n\";
 +  }
 +  else {
 +   print \"$f\\n\";
 +  }
 + }
 +}
 +print \"ok\\n\"
 +' \"$1\" \"$2\" \"$3\" 2>/dev/null"
 +  "Perl script to produce output suitable for use with
 +`file-name-all-completions' on the remote file system.  Escape
 +sequence %s is replaced with name of Perl binary.  This string is
 +passed to `format', so percent characters need to be doubled.")
 +
 +;; Perl script to implement `file-attributes' in a Lisp `read'able
 +;; output.  If you are hacking on this, note that you get *no* output
 +;; unless this spits out a complete line, including the '\n' at the
 +;; end.
 +;; The device number is returned as "-1", because there will be a virtual
 +;; device number set in `tramp-sh-handle-file-attributes'.
 +(defconst tramp-perl-file-attributes
 +  "%s -e '
 +@stat = lstat($ARGV[0]);
 +if (!@stat) {
 +    print \"nil\\n\";
 +    exit 0;
 +}
 +if (($stat[2] & 0170000) == 0120000)
 +{
 +    $type = readlink($ARGV[0]);
 +    $type = \"\\\"$type\\\"\";
 +}
 +elsif (($stat[2] & 0170000) == 040000)
 +{
 +    $type = \"t\";
 +}
 +else
 +{
 +    $type = \"nil\"
 +};
 +$uid = ($ARGV[1] eq \"integer\") ? $stat[4] : \"\\\"\" . getpwuid($stat[4]) . \"\\\"\";
 +$gid = ($ARGV[1] eq \"integer\") ? $stat[5] : \"\\\"\" . getgrgid($stat[5]) . \"\\\"\";
 +printf(
 +    \"(%%s %%u %%s %%s (%%u %%u) (%%u %%u) (%%u %%u) %%u.0 %%u t (%%u . %%u) -1)\\n\",
 +    $type,
 +    $stat[3],
 +    $uid,
 +    $gid,
 +    $stat[8] >> 16 & 0xffff,
 +    $stat[8] & 0xffff,
 +    $stat[9] >> 16 & 0xffff,
 +    $stat[9] & 0xffff,
 +    $stat[10] >> 16 & 0xffff,
 +    $stat[10] & 0xffff,
 +    $stat[7],
 +    $stat[2],
 +    $stat[1] >> 16 & 0xffff,
 +    $stat[1] & 0xffff
 +);' \"$1\" \"$2\" 2>/dev/null"
 +  "Perl script to produce output suitable for use with `file-attributes'
 +on the remote file system.
 +Escape sequence %s is replaced with name of Perl binary.
 +This string is passed to `format', so percent characters need to be doubled.")
 +
 +(defconst tramp-perl-directory-files-and-attributes
 +  "%s -e '
 +chdir($ARGV[0]) or printf(\"\\\"Cannot change to $ARGV[0]: $''!''\\\"\\n\"), exit();
 +opendir(DIR,\".\") or printf(\"\\\"Cannot open directory $ARGV[0]: $''!''\\\"\\n\"), exit();
 +@list = readdir(DIR);
 +closedir(DIR);
 +$n = scalar(@list);
 +printf(\"(\\n\");
 +for($i = 0; $i < $n; $i++)
 +{
 +    $filename = $list[$i];
 +    @stat = lstat($filename);
 +    if (($stat[2] & 0170000) == 0120000)
 +    {
 +        $type = readlink($filename);
 +        $type = \"\\\"$type\\\"\";
 +    }
 +    elsif (($stat[2] & 0170000) == 040000)
 +    {
 +        $type = \"t\";
 +    }
 +    else
 +    {
 +        $type = \"nil\"
 +    };
 +    $uid = ($ARGV[1] eq \"integer\") ? $stat[4] : \"\\\"\" . getpwuid($stat[4]) . \"\\\"\";
 +    $gid = ($ARGV[1] eq \"integer\") ? $stat[5] : \"\\\"\" . getgrgid($stat[5]) . \"\\\"\";
 +    printf(
 +        \"(\\\"%%s\\\" %%s %%u %%s %%s (%%u %%u) (%%u %%u) (%%u %%u) %%u.0 %%u t (%%u . %%u) (%%u . %%u))\\n\",
 +        $filename,
 +        $type,
 +        $stat[3],
 +        $uid,
 +        $gid,
 +        $stat[8] >> 16 & 0xffff,
 +        $stat[8] & 0xffff,
 +        $stat[9] >> 16 & 0xffff,
 +        $stat[9] & 0xffff,
 +        $stat[10] >> 16 & 0xffff,
 +        $stat[10] & 0xffff,
 +        $stat[7],
 +        $stat[2],
 +        $stat[1] >> 16 & 0xffff,
 +        $stat[1] & 0xffff,
 +        $stat[0] >> 16 & 0xffff,
 +        $stat[0] & 0xffff);
 +}
 +printf(\")\\n\");' \"$1\" \"$2\" 2>/dev/null"
 +  "Perl script implementing `directory-files-attributes' as Lisp `read'able
 +output.
 +Escape sequence %s is replaced with name of Perl binary.
 +This string is passed to `format', so percent characters need to be doubled.")
 +
 +;; These two use base64 encoding.
 +(defconst tramp-perl-encode-with-module
 +  "%s -MMIME::Base64 -0777 -ne 'print encode_base64($_)' 2>/dev/null"
 +  "Perl program to use for encoding a file.
 +Escape sequence %s is replaced with name of Perl binary.
 +This string is passed to `format', so percent characters need to be doubled.
 +This implementation requires the MIME::Base64 Perl module to be installed
 +on the remote host.")
 +
 +(defconst tramp-perl-decode-with-module
 +  "%s -MMIME::Base64 -0777 -ne 'print decode_base64($_)' 2>/dev/null"
 +  "Perl program to use for decoding a file.
 +Escape sequence %s is replaced with name of Perl binary.
 +This string is passed to `format', so percent characters need to be doubled.
 +This implementation requires the MIME::Base64 Perl module to be installed
 +on the remote host.")
 +
 +(defconst tramp-perl-encode
 +  "%s -e '
 +# This script contributed by Juanma Barranquero <lektu@terra.es>.
++# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
 +#   Free Software Foundation, Inc.
 +use strict;
 +
 +my %%trans = do {
 +    my $i = 0;
 +    map {(substr(unpack(q(B8), chr $i++), 2, 6), $_)}
 +      split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/);
 +};
 +
 +binmode(\\*STDIN);
 +
 +# We read in chunks of 54 bytes, to generate output lines
 +# of 72 chars (plus end of line)
 +$/ = \\54;
 +
 +while (my $data = <STDIN>) {
 +    my $pad = q();
 +
 +    # Only for the last chunk, and only if did not fill the last three-byte packet
 +    if (eof) {
 +        my $mod = length($data) %% 3;
 +        $pad = q(=) x (3 - $mod) if $mod;
 +    }
 +
 +    # Not the fastest method, but it is simple: unpack to binary string, split
 +    # by groups of 6 bits and convert back from binary to byte; then map into
 +    # the translation table
 +    print
 +      join q(),
 +        map($trans{$_},
 +            (substr(unpack(q(B*), $data) . q(00000), 0, 432) =~ /....../g)),
 +              $pad,
 +                qq(\\n);
 +}' 2>/dev/null"
 +  "Perl program to use for encoding a file.
 +Escape sequence %s is replaced with name of Perl binary.
 +This string is passed to `format', so percent characters need to be doubled.")
 +
 +(defconst tramp-perl-decode
 +  "%s -e '
 +# This script contributed by Juanma Barranquero <lektu@terra.es>.
 +# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 +#   Free Software Foundation, Inc.
 +use strict;
 +
 +my %%trans = do {
 +    my $i = 0;
 +    map {($_, substr(unpack(q(B8), chr $i++), 2, 6))}
 +      split //, q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/)
 +};
 +
 +my %%bytes = map {(unpack(q(B8), chr $_), chr $_)} 0 .. 255;
 +
 +binmode(\\*STDOUT);
 +
 +# We are going to accumulate into $pending to accept any line length
 +# (we do not check they are <= 76 chars as the RFC says)
 +my $pending = q();
 +
 +while (my $data = <STDIN>) {
 +    chomp $data;
 +
 +    # If we find one or two =, we have reached the end and
 +    # any following data is to be discarded
 +    my $finished = $data =~ s/(==?).*/$1/;
 +    $pending .= $data;
 +
 +    my $len = length($pending);
 +    my $chunk = substr($pending, 0, $len & ~3);
 +    $pending = substr($pending, $len & ~3 + 1);
 +
 +    # Easy method: translate from chars to (pregenerated) six-bit packets, join,
 +    # split in 8-bit chunks and convert back to char.
 +    print join q(),
 +      map $bytes{$_},
 +        ((join q(), map {$trans{$_} || q()} split //, $chunk) =~ /......../g);
 +
 +    last if $finished;
 +}' 2>/dev/null"
 +  "Perl program to use for decoding a file.
 +Escape sequence %s is replaced with name of Perl binary.
 +This string is passed to `format', so percent characters need to be doubled.")
 +
 +(defconst tramp-vc-registered-read-file-names
 +  "echo \"(\"
 +while read file; do
 +    if %s \"$file\"; then
 +      echo \"(\\\"$file\\\" \\\"file-exists-p\\\" t)\"
 +    else
 +      echo \"(\\\"$file\\\" \\\"file-exists-p\\\" nil)\"
 +    fi
 +    if %s \"$file\"; then
 +      echo \"(\\\"$file\\\" \\\"file-readable-p\\\" t)\"
 +    else
 +      echo \"(\\\"$file\\\" \\\"file-readable-p\\\" nil)\"
 +    fi
 +done
 +echo \")\""
 +  "Script to check existence of VC related files.
 +It must be send formatted with two strings; the tests for file
 +existence, and file readability.  Input shall be read via
 +here-document, otherwise the command could exceed maximum length
 +of command line.")
 +
 +(defconst tramp-file-mode-type-map
 +  '((0  . "-")  ; Normal file (SVID-v2 and XPG2)
 +    (1  . "p")  ; fifo
 +    (2  . "c")  ; character device
 +    (3  . "m")  ; multiplexed character device (v7)
 +    (4  . "d")  ; directory
 +    (5  . "?")  ; Named special file (XENIX)
 +    (6  . "b")  ; block device
 +    (7  . "?")  ; multiplexed block device (v7)
 +    (8  . "-")  ; regular file
 +    (9  . "n")  ; network special file (HP-UX)
 +    (10 . "l")  ; symlink
 +    (11 . "?")  ; ACL shadow inode (Solaris, not userspace)
 +    (12 . "s")  ; socket
 +    (13 . "D")  ; door special (Solaris)
 +    (14 . "w")) ; whiteout (BSD)
 +  "A list of file types returned from the `stat' system call.
 +This is used to map a mode number to a permission string.")
 +
 +;; New handlers should be added here.  The following operations can be
 +;; handled using the normal primitives: file-name-sans-versions,
 +;; get-file-buffer.
 +(defconst tramp-sh-file-name-handler-alist
 +  '((load . tramp-handle-load)
 +    (make-symbolic-link . tramp-sh-handle-make-symbolic-link)
 +    (file-name-as-directory . tramp-handle-file-name-as-directory)
 +    (file-name-directory . tramp-handle-file-name-directory)
 +    (file-name-nondirectory . tramp-handle-file-name-nondirectory)
 +    (file-truename . tramp-sh-handle-file-truename)
 +    (file-exists-p . tramp-sh-handle-file-exists-p)
 +    (file-directory-p . tramp-sh-handle-file-directory-p)
 +    (file-executable-p . tramp-sh-handle-file-executable-p)
 +    (file-readable-p . tramp-sh-handle-file-readable-p)
 +    (file-regular-p . tramp-handle-file-regular-p)
 +    (file-symlink-p . tramp-handle-file-symlink-p)
 +    (file-writable-p . tramp-sh-handle-file-writable-p)
 +    (file-ownership-preserved-p . tramp-sh-handle-file-ownership-preserved-p)
 +    (file-newer-than-file-p . tramp-sh-handle-file-newer-than-file-p)
 +    (file-attributes . tramp-sh-handle-file-attributes)
 +    (file-modes . tramp-handle-file-modes)
 +    (directory-files . tramp-handle-directory-files)
 +    (directory-files-and-attributes
 +     . tramp-sh-handle-directory-files-and-attributes)
 +    (file-name-all-completions . tramp-sh-handle-file-name-all-completions)
 +    (file-name-completion . tramp-handle-file-name-completion)
 +    (add-name-to-file . tramp-sh-handle-add-name-to-file)
 +    (copy-file . tramp-sh-handle-copy-file)
 +    (copy-directory . tramp-sh-handle-copy-directory)
 +    (rename-file . tramp-sh-handle-rename-file)
 +    (set-file-modes . tramp-sh-handle-set-file-modes)
 +    (set-file-times . tramp-sh-handle-set-file-times)
 +    (make-directory . tramp-sh-handle-make-directory)
 +    (delete-directory . tramp-sh-handle-delete-directory)
 +    (delete-file . tramp-sh-handle-delete-file)
 +    (directory-file-name . tramp-handle-directory-file-name)
 +    ;; `executable-find' is not official yet.
 +    (executable-find . tramp-sh-handle-executable-find)
 +    (start-file-process . tramp-sh-handle-start-file-process)
 +    (process-file . tramp-sh-handle-process-file)
 +    (shell-command . tramp-sh-handle-shell-command)
 +    (insert-directory . tramp-sh-handle-insert-directory)
 +    (expand-file-name . tramp-sh-handle-expand-file-name)
 +    (substitute-in-file-name . tramp-handle-substitute-in-file-name)
 +    (file-local-copy . tramp-sh-handle-file-local-copy)
 +    (file-remote-p . tramp-handle-file-remote-p)
 +    (insert-file-contents . tramp-handle-insert-file-contents)
 +    (insert-file-contents-literally
 +     . tramp-sh-handle-insert-file-contents-literally)
 +    (write-region . tramp-sh-handle-write-region)
 +    (find-backup-file-name . tramp-handle-find-backup-file-name)
 +    (make-auto-save-file-name . tramp-sh-handle-make-auto-save-file-name)
 +    (unhandled-file-name-directory . tramp-handle-unhandled-file-name-directory)
 +    (dired-compress-file . tramp-sh-handle-dired-compress-file)
 +    (dired-recursive-delete-directory
 +     . tramp-sh-handle-dired-recursive-delete-directory)
 +    (dired-uncache . tramp-handle-dired-uncache)
 +    (set-visited-file-modtime . tramp-sh-handle-set-visited-file-modtime)
 +    (verify-visited-file-modtime . tramp-sh-handle-verify-visited-file-modtime)
 +    (file-selinux-context . tramp-sh-handle-file-selinux-context)
 +    (set-file-selinux-context . tramp-sh-handle-set-file-selinux-context)
 +    (vc-registered . tramp-sh-handle-vc-registered))
 +  "Alist of handler functions.
 +Operations not mentioned here will be handled by the normal Emacs functions.")
 +
 +;; This must be the last entry, because `identity' always matches.
 +;;;###tramp-autoload
 +(add-to-list 'tramp-foreign-file-name-handler-alist
 +           '(identity . tramp-sh-file-name-handler) 'append)
 +
 +;;; File Name Handler Functions:
 +
 +(defun tramp-sh-handle-make-symbolic-link
 +  (filename linkname &optional ok-if-already-exists)
 +  "Like `make-symbolic-link' for Tramp files.
 +If LINKNAME is a non-Tramp file, it is used verbatim as the target of
 +the symlink.  If LINKNAME is a Tramp file, only the localname component is
 +used as the target of the symlink.
 +
 +If LINKNAME is a Tramp file and the localname component is relative, then
 +it is expanded first, before the localname component is taken.  Note that
 +this can give surprising results if the user/host for the source and
 +target of the symlink differ."
 +  (with-parsed-tramp-file-name linkname l
 +    (let ((ln (tramp-get-remote-ln l))
 +        (cwd (tramp-run-real-handler
 +              'file-name-directory (list l-localname))))
 +      (unless ln
 +      (tramp-error
 +       l 'file-error
 +       "Making a symbolic link.  ln(1) does not exist on the remote host."))
 +
 +      ;; Do the 'confirm if exists' thing.
 +      (when (file-exists-p linkname)
 +      ;; What to do?
 +      (if (or (null ok-if-already-exists) ; not allowed to exist
 +              (and (numberp ok-if-already-exists)
 +                   (not (yes-or-no-p
 +                         (format
 +                          "File %s already exists; make it a link anyway? "
 +                          l-localname)))))
 +          (tramp-error
 +           l 'file-already-exists "File %s already exists" l-localname)
 +        (delete-file linkname)))
 +
 +      ;; If FILENAME is a Tramp name, use just the localname component.
 +      (when (tramp-tramp-file-p filename)
 +      (setq filename
 +            (tramp-file-name-localname
 +             (tramp-dissect-file-name (expand-file-name filename)))))
 +
 +      (tramp-flush-file-property l (file-name-directory l-localname))
 +      (tramp-flush-file-property l l-localname)
 +
 +      ;; Right, they are on the same host, regardless of user, method, etc.
 +      ;; We now make the link on the remote machine. This will occur as the user
 +      ;; that FILENAME belongs to.
 +      (tramp-send-command-and-check
 +       l
 +       (format
 +      "cd %s && %s -sf %s %s"
 +      (tramp-shell-quote-argument cwd)
 +      ln
 +      (tramp-shell-quote-argument filename)
 +      (tramp-shell-quote-argument l-localname))
 +       t))))
 +
 +(defun tramp-sh-handle-file-truename (filename &optional counter prev-dirs)
 +  "Like `file-truename' for Tramp files."
 +  (with-parsed-tramp-file-name (expand-file-name filename) nil
 +    (with-file-property v localname "file-truename"
 +      (let ((result nil))                     ; result steps in reverse order
 +      (tramp-message v 4 "Finding true name for `%s'" filename)
 +      (cond
 +       ;; Use GNU readlink --canonicalize-missing where available.
 +       ((tramp-get-remote-readlink v)
 +        (setq result
 +              (tramp-send-command-and-read
 +               v
 +               (format "echo \"\\\"`%s --canonicalize-missing %s`\\\"\""
 +                       (tramp-get-remote-readlink v)
 +                       (tramp-shell-quote-argument localname)))))
 +
 +       ;; Use Perl implementation.
 +       ((and (tramp-get-remote-perl v)
 +             (tramp-get-connection-property v "perl-file-spec" nil)
 +             (tramp-get-connection-property v "perl-cwd-realpath" nil))
 +        (tramp-maybe-send-script
 +         v tramp-perl-file-truename "tramp_perl_file_truename")
 +        (setq result
 +              (tramp-send-command-and-read
 +               v
 +               (format "tramp_perl_file_truename %s"
 +                       (tramp-shell-quote-argument localname)))))
 +
 +       ;; Do it yourself.  We bind `directory-sep-char' here for
 +       ;; XEmacs on Windows, which would otherwise use backslash.
 +       (t (let* ((directory-sep-char ?/)
 +                 (steps (tramp-compat-split-string localname "/"))
 +                 (localnamedir (tramp-run-real-handler
 +                                'file-name-as-directory (list localname)))
 +                 (is-dir (string= localname localnamedir))
 +                 (thisstep nil)
 +                 (numchase 0)
 +                 ;; Don't make the following value larger than
 +                 ;; necessary.  People expect an error message in a
 +                 ;; timely fashion when something is wrong;
 +                 ;; otherwise they might think that Emacs is hung.
 +                 ;; Of course, correctness has to come first.
 +                 (numchase-limit 20)
 +                 symlink-target)
 +            (while (and steps (< numchase numchase-limit))
 +              (setq thisstep (pop steps))
 +              (tramp-message
 +               v 5 "Check %s"
 +               (mapconcat 'identity
 +                          (append '("") (reverse result) (list thisstep))
 +                          "/"))
 +              (setq symlink-target
 +                    (nth 0 (file-attributes
 +                            (tramp-make-tramp-file-name
 +                             method user host
 +                             (mapconcat 'identity
 +                                        (append '("")
 +                                                (reverse result)
 +                                                (list thisstep))
 +                                        "/")))))
 +              (cond ((string= "." thisstep)
 +                     (tramp-message v 5 "Ignoring step `.'"))
 +                    ((string= ".." thisstep)
 +                     (tramp-message v 5 "Processing step `..'")
 +                     (pop result))
 +                    ((stringp symlink-target)
 +                     ;; It's a symlink, follow it.
 +                     (tramp-message v 5 "Follow symlink to %s" symlink-target)
 +                     (setq numchase (1+ numchase))
 +                     (when (file-name-absolute-p symlink-target)
 +                       (setq result nil))
 +                     ;; If the symlink was absolute, we'll get a string like
 +                     ;; "/user@host:/some/target"; extract the
 +                     ;; "/some/target" part from it.
 +                     (when (tramp-tramp-file-p symlink-target)
 +                       (unless (tramp-equal-remote filename symlink-target)
 +                         (tramp-error
 +                          v 'file-error
 +                          "Symlink target `%s' on wrong host" symlink-target))
 +                       (setq symlink-target localname))
 +                     (setq steps
 +                           (append (tramp-compat-split-string
 +                                    symlink-target "/")
 +                                   steps)))
 +                    (t
 +                     ;; It's a file.
 +                     (setq result (cons thisstep result)))))
 +            (when (>= numchase numchase-limit)
 +              (tramp-error
 +               v 'file-error
 +               "Maximum number (%d) of symlinks exceeded" numchase-limit))
 +            (setq result (reverse result))
 +            ;; Combine list to form string.
 +            (setq result
 +                  (if result
 +                      (mapconcat 'identity (cons "" result) "/")
 +                    "/"))
 +            (when (and is-dir (or (string= "" result)
 +                                  (not (string= (substring result -1) "/"))))
 +              (setq result (concat result "/"))))))
 +
 +        (tramp-message v 4 "True name of `%s' is `%s'" filename result)
 +        (tramp-make-tramp-file-name method user host result)))))
 +
 +;; Basic functions.
 +
 +(defun tramp-sh-handle-file-exists-p (filename)
 +  "Like `file-exists-p' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    (with-file-property v localname "file-exists-p"
 +      (or (not (null (tramp-get-file-property
 +                      v localname "file-attributes-integer" nil)))
 +          (not (null (tramp-get-file-property
 +                      v localname "file-attributes-string" nil)))
 +        (tramp-send-command-and-check
 +         v
 +         (format
 +          "%s %s"
 +          (tramp-get-file-exists-command v)
 +          (tramp-shell-quote-argument localname)))))))
 +
 +;; CCC: This should check for an error condition and signal failure
 +;;      when something goes wrong.
 +;; Daniel Pittman <daniel@danann.net>
 +(defun tramp-sh-handle-file-attributes (filename &optional id-format)
 +  "Like `file-attributes' for Tramp files."
 +  (unless id-format (setq id-format 'integer))
 +  ;; Don't modify `last-coding-system-used' by accident.
 +  (let ((last-coding-system-used last-coding-system-used))
 +    (with-parsed-tramp-file-name (expand-file-name filename) nil
 +      (with-file-property v localname (format "file-attributes-%s" id-format)
 +      (save-excursion
 +        (tramp-convert-file-attributes
 +         v
 +         (cond
 +          ((tramp-get-remote-stat v)
 +           (tramp-do-file-attributes-with-stat v localname id-format))
 +          ((tramp-get-remote-perl v)
 +           (tramp-do-file-attributes-with-perl v localname id-format))
 +          (t
 +           (tramp-do-file-attributes-with-ls v localname id-format)))))))))
 +
 +(defun tramp-do-file-attributes-with-ls (vec localname &optional id-format)
 +  "Implement `file-attributes' for Tramp files using the ls(1) command."
 +  (let (symlinkp dirp
 +               res-inode res-filemodes res-numlinks
 +               res-uid res-gid res-size res-symlink-target)
 +    (tramp-message vec 5 "file attributes with ls: %s" localname)
 +    (tramp-send-command
 +     vec
 +     (format "(%s %s || %s -h %s) && %s %s %s"
 +           (tramp-get-file-exists-command vec)
 +           (tramp-shell-quote-argument localname)
 +           (tramp-get-test-command vec)
 +           (tramp-shell-quote-argument localname)
 +           (tramp-get-ls-command vec)
 +           (if (eq id-format 'integer) "-ildn" "-ild")
 +           (tramp-shell-quote-argument localname)))
 +    ;; parse `ls -l' output ...
 +    (with-current-buffer (tramp-get-buffer vec)
 +      (when (> (buffer-size) 0)
 +        (goto-char (point-min))
 +        ;; ... inode
 +        (setq res-inode
 +              (condition-case err
 +                  (read (current-buffer))
 +                (invalid-read-syntax
 +                 (when (and (equal (cadr err)
 +                                   "Integer constant overflow in reader")
 +                            (string-match
 +                             "^[0-9]+\\([0-9][0-9][0-9][0-9][0-9]\\)\\'"
 +                             (car (cddr err))))
 +                   (let* ((big (read (substring (car (cddr err)) 0
 +                                                (match-beginning 1))))
 +                          (small (read (match-string 1 (car (cddr err)))))
 +                          (twiddle (/ small 65536)))
 +                     (cons (+ big twiddle)
 +                           (- small (* twiddle 65536))))))))
 +        ;; ... file mode flags
 +        (setq res-filemodes (symbol-name (read (current-buffer))))
 +        ;; ... number links
 +        (setq res-numlinks (read (current-buffer)))
 +        ;; ... uid and gid
 +        (setq res-uid (read (current-buffer)))
 +        (setq res-gid (read (current-buffer)))
 +        (if (eq id-format 'integer)
 +            (progn
 +              (unless (numberp res-uid) (setq res-uid -1))
 +              (unless (numberp res-gid) (setq res-gid -1)))
 +          (progn
 +            (unless (stringp res-uid) (setq res-uid (symbol-name res-uid)))
 +            (unless (stringp res-gid) (setq res-gid (symbol-name res-gid)))))
 +        ;; ... size
 +        (setq res-size (read (current-buffer)))
 +        ;; From the file modes, figure out other stuff.
 +        (setq symlinkp (eq ?l (aref res-filemodes 0)))
 +        (setq dirp (eq ?d (aref res-filemodes 0)))
 +        ;; if symlink, find out file name pointed to
 +        (when symlinkp
 +          (search-forward "-> ")
 +          (setq res-symlink-target (buffer-substring (point) (point-at-eol))))
 +        ;; return data gathered
 +        (list
 +         ;; 0. t for directory, string (name linked to) for symbolic
 +         ;; link, or nil.
 +         (or dirp res-symlink-target)
 +         ;; 1. Number of links to file.
 +         res-numlinks
 +         ;; 2. File uid.
 +         res-uid
 +         ;; 3. File gid.
 +         res-gid
 +         ;; 4. Last access time, as a list of two integers. First
 +         ;; integer has high-order 16 bits of time, second has low 16
 +         ;; bits.
 +         ;; 5. Last modification time, likewise.
 +         ;; 6. Last status change time, likewise.
 +         '(0 0) '(0 0) '(0 0)         ;CCC how to find out?
 +         ;; 7. Size in bytes (-1, if number is out of range).
 +         res-size
 +         ;; 8. File modes, as a string of ten letters or dashes as in ls -l.
 +         res-filemodes
 +         ;; 9. t if file's gid would change if file were deleted and
 +         ;; recreated.  Will be set in `tramp-convert-file-attributes'
 +         t
 +         ;; 10. inode number.
 +         res-inode
 +         ;; 11. Device number.  Will be replaced by a virtual device number.
 +         -1
 +         )))))
 +
 +(defun tramp-do-file-attributes-with-perl
 +  (vec localname &optional id-format)
 +  "Implement `file-attributes' for Tramp files using a Perl script."
 +  (tramp-message vec 5 "file attributes with perl: %s" localname)
 +  (tramp-maybe-send-script
 +   vec tramp-perl-file-attributes "tramp_perl_file_attributes")
 +  (tramp-send-command-and-read
 +   vec
 +   (format "tramp_perl_file_attributes %s %s"
 +         (tramp-shell-quote-argument localname) id-format)))
 +
 +(defun tramp-do-file-attributes-with-stat
 +  (vec localname &optional id-format)
 +  "Implement `file-attributes' for Tramp files using stat(1) command."
 +  (tramp-message vec 5 "file attributes with stat: %s" localname)
 +  (tramp-send-command-and-read
 +   vec
 +   (format
 +    ;; On Opsware, pdksh (which is the true name of ksh there) doesn't
 +    ;; parse correctly the sequence "((".  Therefore, we add a space.
 +    "( (%s %s || %s -h %s) && %s -c '((\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)' %s || echo nil)"
 +    (tramp-get-file-exists-command vec)
 +    (tramp-shell-quote-argument localname)
 +    (tramp-get-test-command vec)
 +    (tramp-shell-quote-argument localname)
 +    (tramp-get-remote-stat vec)
 +    (if (eq id-format 'integer) "%u" "\"%U\"")
 +    (if (eq id-format 'integer) "%g" "\"%G\"")
 +    (tramp-shell-quote-argument localname))))
 +
 +(defun tramp-sh-handle-set-visited-file-modtime (&optional time-list)
 +  "Like `set-visited-file-modtime' for Tramp files."
 +  (unless (buffer-file-name)
 +    (error "Can't set-visited-file-modtime: buffer `%s' not visiting a file"
 +         (buffer-name)))
 +  (if time-list
 +      (tramp-run-real-handler 'set-visited-file-modtime (list time-list))
 +    (let ((f (buffer-file-name))
 +        coding-system-used)
 +      (with-parsed-tramp-file-name f nil
 +      (let* ((attr (file-attributes f))
 +             ;; '(-1 65535) means file doesn't exists yet.
 +             (modtime (or (nth 5 attr) '(-1 65535))))
 +        (when (boundp 'last-coding-system-used)
 +          (setq coding-system-used (symbol-value 'last-coding-system-used)))
 +        ;; We use '(0 0) as a don't-know value.  See also
 +        ;; `tramp-do-file-attributes-with-ls'.
 +        (if (not (equal modtime '(0 0)))
 +            (tramp-run-real-handler 'set-visited-file-modtime (list modtime))
 +          (progn
 +            (tramp-send-command
 +             v
 +             (format "%s -ild %s"
 +                     (tramp-get-ls-command v)
 +                     (tramp-shell-quote-argument localname)))
 +            (setq attr (buffer-substring (point)
 +                                         (progn (end-of-line) (point)))))
 +          (tramp-set-file-property
 +           v localname "visited-file-modtime-ild" attr))
 +        (when (boundp 'last-coding-system-used)
 +          (set 'last-coding-system-used coding-system-used))
 +        nil)))))
 +
 +;; This function makes the same assumption as
 +;; `tramp-sh-handle-set-visited-file-modtime'.
 +(defun tramp-sh-handle-verify-visited-file-modtime (buf)
 +  "Like `verify-visited-file-modtime' for Tramp files.
 +At the time `verify-visited-file-modtime' calls this function, we
 +already know that the buffer is visiting a file and that
 +`visited-file-modtime' does not return 0.  Do not call this
 +function directly, unless those two cases are already taken care
 +of."
 +  (with-current-buffer buf
 +    (let ((f (buffer-file-name)))
 +      ;; There is no file visiting the buffer, or the buffer has no
 +      ;; recorded last modification time, or there is no established
 +      ;; connection.
 +      (if (or (not f)
 +            (eq (visited-file-modtime) 0)
 +            (not (tramp-file-name-handler 'file-remote-p f nil 'connected)))
 +        t
 +      (with-parsed-tramp-file-name f nil
 +        (let* ((remote-file-name-inhibit-cache t)
 +               (attr (file-attributes f))
 +               (modtime (nth 5 attr))
 +               (mt (visited-file-modtime)))
 +
 +          (cond
 +           ;; File exists, and has a known modtime.
 +           ((and attr (not (equal modtime '(0 0))))
 +            (< (abs (tramp-time-diff
 +                     modtime
 +                     ;; For compatibility, deal with both the old
 +                     ;; (HIGH . LOW) and the new (HIGH LOW) return
 +                     ;; values of `visited-file-modtime'.
 +                     (if (atom (cdr mt))
 +                         (list (car mt) (cdr mt))
 +                       mt)))
 +               2))
 +           ;; Modtime has the don't know value.
 +           (attr
 +            (tramp-send-command
 +             v
 +             (format "%s -ild %s"
 +                     (tramp-get-ls-command v)
 +                     (tramp-shell-quote-argument localname)))
 +            (with-current-buffer (tramp-get-buffer v)
 +              (setq attr (buffer-substring
 +                          (point) (progn (end-of-line) (point)))))
 +            (equal
 +             attr
 +             (tramp-get-file-property
 +              v localname "visited-file-modtime-ild" "")))
 +           ;; If file does not exist, say it is not modified if and
 +           ;; only if that agrees with the buffer's record.
 +           (t (equal mt '(-1 65535))))))))))
 +
 +(defun tramp-sh-handle-set-file-modes (filename mode)
 +  "Like `set-file-modes' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    (tramp-flush-file-property v localname)
 +    ;; FIXME: extract the proper text from chmod's stderr.
 +    (tramp-barf-unless-okay
 +     v
 +     (format "chmod %s %s"
 +           (tramp-compat-decimal-to-octal mode)
 +           (tramp-shell-quote-argument localname))
 +     "Error while changing file's mode %s" filename)))
 +
 +(defun tramp-sh-handle-set-file-times (filename &optional time)
 +  "Like `set-file-times' for Tramp files."
 +  (if (file-remote-p filename)
 +      (with-parsed-tramp-file-name filename nil
 +      (tramp-flush-file-property v localname)
 +      (let ((time (if (or (null time) (equal time '(0 0)))
 +                      (current-time)
 +                    time))
 +            ;; With GNU Emacs, `format-time-string' has an optional
 +            ;; parameter UNIVERSAL.  This is preferred, because we
 +            ;; could handle the case when the remote host is located
 +            ;; in a different time zone as the local host.
 +            (utc (not (featurep 'xemacs))))
 +        (tramp-send-command-and-check
 +         v (format "%s touch -t %s %s"
 +                   (if utc "TZ=UTC; export TZ;" "")
 +                   (if utc
 +                       (format-time-string "%Y%m%d%H%M.%S" time t)
 +                     (format-time-string "%Y%m%d%H%M.%S" time))
 +                   (tramp-shell-quote-argument localname)))))
 +
 +    ;; We handle also the local part, because in older Emacsen,
 +    ;; without `set-file-times', this function is an alias for this.
 +    ;; We are local, so we don't need the UTC settings.
 +    (zerop
 +     (tramp-compat-call-process
 +      "touch" nil nil nil "-t"
 +      (format-time-string "%Y%m%d%H%M.%S" time)
 +      (tramp-shell-quote-argument filename)))))
 +
 +(defun tramp-set-file-uid-gid (filename &optional uid gid)
 +  "Set the ownership for FILENAME.
 +If UID and GID are provided, these values are used; otherwise uid
 +and gid of the corresponding user is taken.  Both parameters must be integers."
 +  ;; Modern Unices allow chown only for root.  So we might need
 +  ;; another implementation, see `dired-do-chown'.  OTOH, it is mostly
 +  ;; working with su(do)? when it is needed, so it shall succeed in
 +  ;; the majority of cases.
 +  ;; Don't modify `last-coding-system-used' by accident.
 +  (let ((last-coding-system-used last-coding-system-used))
 +    (if (file-remote-p filename)
 +      (with-parsed-tramp-file-name filename nil
 +        (if (and (zerop (user-uid)) (tramp-local-host-p v))
 +            ;; If we are root on the local host, we can do it directly.
 +            (tramp-set-file-uid-gid localname uid gid)
 +          (let ((uid (or (and (integerp uid) uid)
 +                         (tramp-get-remote-uid v 'integer)))
 +                (gid (or (and (integerp gid) gid)
 +                         (tramp-get-remote-gid v 'integer))))
 +            (tramp-send-command
 +             v (format
 +                "chown %d:%d %s" uid gid
 +                (tramp-shell-quote-argument localname))))))
 +
 +      ;; We handle also the local part, because there doesn't exist
 +      ;; `set-file-uid-gid'.  On W32 "chown" might not work.
 +      (let ((uid (or (and (integerp uid) uid) (tramp-get-local-uid 'integer)))
 +          (gid (or (and (integerp gid) gid) (tramp-get-local-gid 'integer))))
 +      (tramp-compat-call-process
 +       "chown" nil nil nil
 +         (format "%d:%d" uid gid) (tramp-shell-quote-argument filename))))))
 +
 +(defun tramp-remote-selinux-p (vec)
 +  "Check, whether SELINUX is enabled on the remote host."
 +  (with-connection-property (tramp-get-connection-process vec) "selinux-p"
 +    (let ((result (tramp-find-executable
 +                 vec "getenforce" (tramp-get-remote-path vec) t t)))
 +      (and result
 +         (string-equal
 +          (tramp-send-command-and-read
 +           vec (format "echo \\\"`%S`\\\"" result))
 +          "Enforcing")))))
 +
 +(defun tramp-sh-handle-file-selinux-context (filename)
 +  "Like `file-selinux-context' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    (with-file-property v localname "file-selinux-context"
 +      (let ((context '(nil nil nil nil))
 +          (regexp (concat "\\([a-z0-9_]+\\):" "\\([a-z0-9_]+\\):"
 +                          "\\([a-z0-9_]+\\):" "\\([a-z0-9_]+\\)")))
 +      (when (and (tramp-remote-selinux-p v)
 +                 (tramp-send-command-and-check
 +                  v (format
 +                     "%s -d -Z %s"
 +                     (tramp-get-ls-command v)
 +                     (tramp-shell-quote-argument localname))))
 +        (with-current-buffer (tramp-get-connection-buffer v)
 +          (goto-char (point-min))
 +          (when (re-search-forward regexp (point-at-eol) t)
 +            (setq context (list (match-string 1) (match-string 2)
 +                                (match-string 3) (match-string 4))))))
 +      ;; Return the context.
 +      context))))
 +
 +(defun tramp-sh-handle-set-file-selinux-context (filename context)
 +  "Like `set-file-selinux-context' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    (if (and (consp context)
 +           (tramp-remote-selinux-p v)
 +           (tramp-send-command-and-check
 +            v (format "chcon %s %s %s %s %s"
 +                      (if (stringp (nth 0 context))
 +                          (format "--user=%s" (nth 0 context)) "")
 +                      (if (stringp (nth 1 context))
 +                          (format "--role=%s" (nth 1 context)) "")
 +                      (if (stringp (nth 2 context))
 +                          (format "--type=%s" (nth 2 context)) "")
 +                      (if (stringp (nth 3 context))
 +                          (format "--range=%s" (nth 3 context)) "")
 +                      (tramp-shell-quote-argument localname))))
 +      (tramp-set-file-property v localname "file-selinux-context" context)
 +      (tramp-set-file-property v localname "file-selinux-context" 'undef)))
 +  ;; We always return nil.
 +  nil)
 +
 +;; Simple functions using the `test' command.
 +
 +(defun tramp-sh-handle-file-executable-p (filename)
 +  "Like `file-executable-p' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    (with-file-property v localname "file-executable-p"
 +      ;; Examine `file-attributes' cache to see if request can be
 +      ;; satisfied without remote operation.
 +      (or (tramp-check-cached-permissions v ?x)
 +        (tramp-run-test "-x" filename)))))
 +
 +(defun tramp-sh-handle-file-readable-p (filename)
 +  "Like `file-readable-p' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    (with-file-property v localname "file-readable-p"
 +      ;; Examine `file-attributes' cache to see if request can be
 +      ;; satisfied without remote operation.
 +      (or (tramp-check-cached-permissions v ?r)
 +        (tramp-run-test "-r" filename)))))
 +
 +;; When the remote shell is started, it looks for a shell which groks
 +;; tilde expansion.  Here, we assume that all shells which grok tilde
 +;; expansion will also provide a `test' command which groks `-nt' (for
 +;; newer than).  If this breaks, tell me about it and I'll try to do
 +;; something smarter about it.
 +(defun tramp-sh-handle-file-newer-than-file-p (file1 file2)
 +  "Like `file-newer-than-file-p' for Tramp files."
 +  (cond ((not (file-exists-p file1))
 +         nil)
 +        ((not (file-exists-p file2))
 +         t)
 +        ;; We are sure both files exist at this point.
 +        (t
 +         (save-excursion
 +         ;; We try to get the mtime of both files.  If they are not
 +         ;; equal to the "dont-know" value, then we subtract the times
 +         ;; and obtain the result.
 +         (let ((fa1 (file-attributes file1))
 +               (fa2 (file-attributes file2)))
 +           (if (and (not (equal (nth 5 fa1) '(0 0)))
 +                    (not (equal (nth 5 fa2) '(0 0))))
 +               (> 0 (tramp-time-diff (nth 5 fa2) (nth 5 fa1)))
 +             ;; If one of them is the dont-know value, then we can
 +             ;; still try to run a shell command on the remote host.
 +             ;; However, this only works if both files are Tramp
 +             ;; files and both have the same method, same user, same
 +             ;; host.
 +             (unless (tramp-equal-remote file1 file2)
 +               (with-parsed-tramp-file-name
 +                   (if (tramp-tramp-file-p file1) file1 file2) nil
 +                 (tramp-error
 +                  v 'file-error
 +                  "Files %s and %s must have same method, user, host"
 +                  file1 file2)))
 +             (with-parsed-tramp-file-name file1 nil
 +               (tramp-run-test2
 +                (tramp-get-test-nt-command v) file1 file2))))))))
 +
 +;; Functions implemented using the basic functions above.
 +
 +(defun tramp-sh-handle-file-directory-p (filename)
 +  "Like `file-directory-p' for Tramp files."
 +  ;; Care must be taken that this function returns `t' for symlinks
 +  ;; pointing to directories.  Surely the most obvious implementation
 +  ;; would be `test -d', but that returns false for such symlinks.
 +  ;; CCC: Stefan Monnier says that `test -d' follows symlinks.  And
 +  ;; I now think he's right.  So we could be using `test -d', couldn't
 +  ;; we?
 +  ;;
 +  ;; Alternatives: `cd %s', `test -d %s'
 +  (with-parsed-tramp-file-name filename nil
 +    (with-file-property v localname "file-directory-p"
 +      (tramp-run-test "-d" filename))))
 +
 +(defun tramp-sh-handle-file-writable-p (filename)
 +  "Like `file-writable-p' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    (with-file-property v localname "file-writable-p"
 +      (if (file-exists-p filename)
 +        ;; Examine `file-attributes' cache to see if request can be
 +        ;; satisfied without remote operation.
 +          (or (tramp-check-cached-permissions v ?w)
 +            (tramp-run-test "-w" filename))
 +      ;; If file doesn't exist, check if directory is writable.
 +      (and (tramp-run-test "-d" (file-name-directory filename))
 +           (tramp-run-test "-w" (file-name-directory filename)))))))
 +
 +(defun tramp-sh-handle-file-ownership-preserved-p (filename)
 +  "Like `file-ownership-preserved-p' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    (with-file-property v localname "file-ownership-preserved-p"
 +      (let ((attributes (file-attributes filename)))
 +      ;; Return t if the file doesn't exist, since it's true that no
 +      ;; information would be lost by an (attempted) delete and create.
 +      (or (null attributes)
 +          (= (nth 2 attributes) (tramp-get-remote-uid v 'integer)))))))
 +
 +;; Directory listings.
 +
 +(defun tramp-sh-handle-directory-files-and-attributes
 +  (directory &optional full match nosort id-format)
 +  "Like `directory-files-and-attributes' for Tramp files."
 +  (unless id-format (setq id-format 'integer))
 +  (when (file-directory-p directory)
 +    (setq directory (expand-file-name directory))
 +    (let* ((temp
 +          (copy-tree
 +           (with-parsed-tramp-file-name directory nil
 +             (with-file-property
 +                 v localname
 +                 (format "directory-files-and-attributes-%s" id-format)
 +               (save-excursion
 +                 (mapcar
 +                  (lambda (x)
 +                    (cons (car x)
 +                          (tramp-convert-file-attributes v (cdr x))))
 +                  (cond
 +                   ((tramp-get-remote-stat v)
 +                    (tramp-do-directory-files-and-attributes-with-stat
 +                     v localname id-format))
 +                   ((tramp-get-remote-perl v)
 +                    (tramp-do-directory-files-and-attributes-with-perl
 +                     v localname id-format)))))))))
 +         result item)
 +
 +      (while temp
 +      (setq item (pop temp))
 +      (when (or (null match) (string-match match (car item)))
 +        (when full
 +          (setcar item (expand-file-name (car item) directory)))
 +        (push item result)))
 +
 +      (if nosort
 +        result
 +      (sort result (lambda (x y) (string< (car x) (car y))))))))
 +
 +(defun tramp-do-directory-files-and-attributes-with-perl
 +  (vec localname &optional id-format)
 +  "Implement `directory-files-and-attributes' for Tramp files using a Perl script."
 +  (tramp-message vec 5 "directory-files-and-attributes with perl: %s" localname)
 +  (tramp-maybe-send-script
 +   vec tramp-perl-directory-files-and-attributes
 +   "tramp_perl_directory_files_and_attributes")
 +  (let ((object
 +       (tramp-send-command-and-read
 +        vec
 +        (format "tramp_perl_directory_files_and_attributes %s %s"
 +                (tramp-shell-quote-argument localname) id-format))))
 +    (when (stringp object) (tramp-error vec 'file-error object))
 +    object))
 +
 +(defun tramp-do-directory-files-and-attributes-with-stat
 +  (vec localname &optional id-format)
 +  "Implement `directory-files-and-attributes' for Tramp files using stat(1) command."
 +  (tramp-message vec 5 "directory-files-and-attributes with stat: %s" localname)
 +  (tramp-send-command-and-read
 +   vec
 +   (format
 +    (concat
 +     ;; We must care about filenames with spaces, or starting with
 +     ;; "-"; this would confuse xargs.  "ls -aQ" might be a solution,
 +     ;; but it does not work on all remote systems.  Therefore, we
 +     ;; quote the filenames via sed.
 +     "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs "
 +     "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)'); "
 +     "echo \")\"")
 +    (tramp-shell-quote-argument localname)
 +    (tramp-get-ls-command vec)
 +    (tramp-get-remote-stat vec)
 +    (if (eq id-format 'integer) "%u" "\"%U\"")
 +    (if (eq id-format 'integer) "%g" "\"%G\""))))
 +
 +;; This function should return "foo/" for directories and "bar" for
 +;; files.
 +(defun tramp-sh-handle-file-name-all-completions (filename directory)
 +  "Like `file-name-all-completions' for Tramp files."
 +  (unless (save-match-data (string-match "/" filename))
 +    (with-parsed-tramp-file-name (expand-file-name directory) nil
 +
 +      (all-completions
 +       filename
 +       (mapcar
 +      'list
 +        (or
 +       ;; Try cache entries for filename, filename with last
 +       ;; character removed, filename with last two characters
 +       ;; removed, ..., and finally the empty string - all
 +       ;; concatenated to the local directory name.
 +         (let ((remote-file-name-inhibit-cache
 +              (or remote-file-name-inhibit-cache
 +                  tramp-completion-reread-directory-timeout)))
 +
 +         ;; This is inefficient for very long filenames, pity
 +         ;; `reduce' is not available...
 +         (car
 +          (apply
 +           'append
 +           (mapcar
 +            (lambda (x)
 +              (let ((cache-hit
 +                     (tramp-get-file-property
 +                      v
 +                      (concat localname (substring filename 0 x))
 +                      "file-name-all-completions"
 +                      nil)))
 +                (when cache-hit (list cache-hit))))
 +            (tramp-compat-number-sequence (length filename) 0 -1)))))
 +
 +         ;; Cache expired or no matching cache entry found so we need
 +         ;; to perform a remote operation.
 +         (let (result)
 +           ;; Get a list of directories and files, including reliably
 +           ;; tagging the directories with a trailing '/'.  Because I
 +           ;; rock.  --daniel@danann.net
 +
 +           ;; Changed to perform `cd' in the same remote op and only
 +           ;; get entries starting with `filename'.  Capture any `cd'
 +           ;; error messages.  Ensure any `cd' and `echo' aliases are
 +           ;; ignored.
 +           (tramp-send-command
 +            v
 +            (if (tramp-get-remote-perl v)
 +                (progn
 +                  (tramp-maybe-send-script
 +                   v tramp-perl-file-name-all-completions
 +                   "tramp_perl_file_name_all_completions")
 +                  (format "tramp_perl_file_name_all_completions %s %s %d"
 +                          (tramp-shell-quote-argument localname)
 +                          (tramp-shell-quote-argument filename)
 +                          (if (symbol-value
 +                             ;; `read-file-name-completion-ignore-case'
 +                             ;; is introduced with Emacs 22.1.
 +                             (if (boundp
 +                                  'read-file-name-completion-ignore-case)
 +                                 'read-file-name-completion-ignore-case
 +                               'completion-ignore-case))
 +                            1 0)))
 +
 +              (format (concat
 +                       "(\\cd %s 2>&1 && (%s %s -a 2>/dev/null"
 +                       ;; `ls' with wildcard might fail with `Argument
 +                       ;; list too long' error in some corner cases; if
 +                       ;; `ls' fails after `cd' succeeded, chances are
 +                       ;; that's the case, so let's retry without
 +                       ;; wildcard.  This will return "too many" entries
 +                       ;; but that isn't harmful.
 +                       " || %s -a 2>/dev/null)"
 +                       " | while read f; do"
 +                       " if %s -d \"$f\" 2>/dev/null;"
 +                       " then \\echo \"$f/\"; else \\echo \"$f\"; fi; done"
 +                       " && \\echo ok) || \\echo fail")
 +                      (tramp-shell-quote-argument localname)
 +                      (tramp-get-ls-command v)
 +                      ;; When `filename' is empty, just `ls' without
 +                      ;; filename argument is more efficient than `ls *'
 +                      ;; for very large directories and might avoid the
 +                      ;; `Argument list too long' error.
 +                      ;;
 +                      ;; With and only with wildcard, we need to add
 +                      ;; `-d' to prevent `ls' from descending into
 +                      ;; sub-directories.
 +                      (if (zerop (length filename))
 +                          "."
 +                        (concat (tramp-shell-quote-argument filename) "* -d"))
 +                      (tramp-get-ls-command v)
 +                      (tramp-get-test-command v))))
 +
 +           ;; Now grab the output.
 +           (with-current-buffer (tramp-get-buffer v)
 +             (goto-char (point-max))
 +
 +             ;; Check result code, found in last line of output
 +             (forward-line -1)
 +             (if (looking-at "^fail$")
 +                 (progn
 +                   ;; Grab error message from line before last line
 +                   ;; (it was put there by `cd 2>&1')
 +                   (forward-line -1)
 +                   (tramp-error
 +                    v 'file-error
 +                    "tramp-sh-handle-file-name-all-completions: %s"
 +                    (buffer-substring (point) (point-at-eol))))
 +               ;; For peace of mind, if buffer doesn't end in `fail'
 +               ;; then it should end in `ok'.  If neither are in the
 +               ;; buffer something went seriously wrong on the remote
 +               ;; side.
 +               (unless (looking-at "^ok$")
 +                 (tramp-error
 +                  v 'file-error
 +                  "\
 +tramp-sh-handle-file-name-all-completions: internal error accessing `%s': `%s'"
 +                  (tramp-shell-quote-argument localname) (buffer-string))))
 +
 +             (while (zerop (forward-line -1))
 +               (push (buffer-substring (point) (point-at-eol)) result)))
 +
 +           ;; Because the remote op went through OK we know the
 +           ;; directory we `cd'-ed to exists
 +           (tramp-set-file-property
 +            v localname "file-exists-p" t)
 +
 +           ;; Because the remote op went through OK we know every
 +           ;; file listed by `ls' exists.
 +           (mapc (lambda (entry)
 +                 (tramp-set-file-property
 +                  v (concat localname entry) "file-exists-p" t))
 +               result)
 +
 +           ;; Store result in the cache
 +           (tramp-set-file-property
 +            v (concat localname filename)
 +            "file-name-all-completions"
 +            result))))))))
 +
 +;; cp, mv and ln
 +
 +(defun tramp-sh-handle-add-name-to-file
 +  (filename newname &optional ok-if-already-exists)
 +  "Like `add-name-to-file' for Tramp files."
 +  (unless (tramp-equal-remote filename newname)
 +    (with-parsed-tramp-file-name
 +      (if (tramp-tramp-file-p filename) filename newname) nil
 +      (tramp-error
 +       v 'file-error
 +       "add-name-to-file: %s"
 +       "only implemented for same method, same user, same host")))
 +  (with-parsed-tramp-file-name filename v1
 +    (with-parsed-tramp-file-name newname v2
 +      (let ((ln (when v1 (tramp-get-remote-ln v1))))
 +      (when (and (not ok-if-already-exists)
 +                 (file-exists-p newname)
 +                 (not (numberp ok-if-already-exists))
 +                 (y-or-n-p
 +                  (format
 +                   "File %s already exists; make it a new name anyway? "
 +                   newname)))
 +        (tramp-error
 +         v2 'file-error
 +         "add-name-to-file: file %s already exists" newname))
 +      (tramp-flush-file-property v2 (file-name-directory v2-localname))
 +      (tramp-flush-file-property v2 v2-localname)
 +      (tramp-barf-unless-okay
 +       v1
 +       (format "%s %s %s" ln (tramp-shell-quote-argument v1-localname)
 +               (tramp-shell-quote-argument v2-localname))
 +       "error with add-name-to-file, see buffer `%s' for details"
 +       (buffer-name))))))
 +
 +(defun tramp-sh-handle-copy-file
 +  (filename newname &optional ok-if-already-exists keep-date
 +          preserve-uid-gid preserve-selinux-context)
 +  "Like `copy-file' for Tramp files."
 +  (setq filename (expand-file-name filename))
 +  (setq newname (expand-file-name newname))
 +  (cond
 +   ;; At least one file a Tramp file?
 +   ((or (tramp-tramp-file-p filename)
 +      (tramp-tramp-file-p newname))
 +    (tramp-do-copy-or-rename-file
 +     'copy filename newname ok-if-already-exists keep-date
 +     preserve-uid-gid preserve-selinux-context))
 +   ;; Compat section.
 +   (preserve-selinux-context
 +    (tramp-run-real-handler
 +     'copy-file
 +     (list filename newname ok-if-already-exists keep-date
 +         preserve-uid-gid preserve-selinux-context)))
 +   (preserve-uid-gid
 +    (tramp-run-real-handler
 +     'copy-file
 +     (list filename newname ok-if-already-exists keep-date preserve-uid-gid)))
 +   (t
 +    (tramp-run-real-handler
 +     'copy-file (list filename newname ok-if-already-exists keep-date)))))
 +
 +(defun tramp-sh-handle-copy-directory
 +  (dirname newname &optional keep-date parents)
 +  "Like `copy-directory' for Tramp files."
 +  (let ((t1 (tramp-tramp-file-p dirname))
 +      (t2 (tramp-tramp-file-p newname)))
 +    (with-parsed-tramp-file-name (if t1 dirname newname) nil
 +      (if (and (tramp-get-method-parameter method 'tramp-copy-recursive)
 +             ;; When DIRNAME and NEWNAME are remote, they must have
 +             ;; the same method.
 +             (or (null t1) (null t2)
 +                 (string-equal
 +                  (tramp-file-name-method (tramp-dissect-file-name dirname))
 +                  (tramp-file-name-method (tramp-dissect-file-name newname)))))
 +        ;; scp or rsync DTRT.
 +        (progn
 +          (setq dirname (directory-file-name (expand-file-name dirname))
 +                newname (directory-file-name (expand-file-name newname)))
 +          (if (and (file-directory-p newname)
 +                   (not (string-equal (file-name-nondirectory dirname)
 +                                      (file-name-nondirectory newname))))
 +              (setq newname
 +                    (expand-file-name
 +                     (file-name-nondirectory dirname) newname)))
 +          (if (not (file-directory-p (file-name-directory newname)))
 +              (make-directory (file-name-directory newname) parents))
 +          (tramp-do-copy-or-rename-file-out-of-band
 +           'copy dirname newname keep-date))
 +      ;; We must do it file-wise.
 +      (tramp-run-real-handler
 +       'copy-directory (list dirname newname keep-date parents)))
 +
 +      ;; When newname did exist, we have wrong cached values.
 +      (when t2
 +      (with-parsed-tramp-file-name newname nil
 +        (tramp-flush-file-property v (file-name-directory localname))
 +        (tramp-flush-file-property v localname))))))
 +
 +(defun tramp-sh-handle-rename-file
 +  (filename newname &optional ok-if-already-exists)
 +  "Like `rename-file' for Tramp files."
 +  ;; Check if both files are local -- invoke normal rename-file.
 +  ;; Otherwise, use Tramp from local system.
 +  (setq filename (expand-file-name filename))
 +  (setq newname (expand-file-name newname))
 +  ;; At least one file a Tramp file?
 +  (if (or (tramp-tramp-file-p filename)
 +          (tramp-tramp-file-p newname))
 +      (tramp-do-copy-or-rename-file
 +       'rename filename newname ok-if-already-exists t t)
 +    (tramp-run-real-handler
 +     'rename-file (list filename newname ok-if-already-exists))))
 +
 +(defun tramp-do-copy-or-rename-file
 +  (op filename newname &optional ok-if-already-exists keep-date
 +      preserve-uid-gid preserve-selinux-context)
 +  "Copy or rename a remote file.
 +OP must be `copy' or `rename' and indicates the operation to perform.
 +FILENAME specifies the file to copy or rename, NEWNAME is the name of
 +the new file (for copy) or the new name of the file (for rename).
 +OK-IF-ALREADY-EXISTS means don't barf if NEWNAME exists already.
 +KEEP-DATE means to make sure that NEWNAME has the same timestamp
 +as FILENAME.  PRESERVE-UID-GID, when non-nil, instructs to keep
 +the uid and gid if both files are on the same host.
 +PRESERVE-SELINUX-CONTEXT activates selinux commands.
 +
 +This function is invoked by `tramp-sh-handle-copy-file' and
 +`tramp-sh-handle-rename-file'.  It is an error if OP is neither
 +of `copy' and `rename'.  FILENAME and NEWNAME must be absolute
 +file names."
 +  (unless (memq op '(copy rename))
 +    (error "Unknown operation `%s', must be `copy' or `rename'" op))
 +  (let ((t1 (tramp-tramp-file-p filename))
 +      (t2 (tramp-tramp-file-p newname))
 +      (context (and preserve-selinux-context
 +                    (apply 'file-selinux-context (list filename))))
 +      pr tm)
 +
 +    (with-parsed-tramp-file-name (if t1 filename newname) nil
 +      (when (and (not ok-if-already-exists) (file-exists-p newname))
 +      (tramp-error
 +       v 'file-already-exists "File %s already exists" newname))
 +
 +      (with-progress-reporter
 +        v 0 (format "%s %s to %s"
 +                    (if (eq op 'copy) "Copying" "Renaming")
 +                    filename newname)
 +
 +      (cond
 +       ;; Both are Tramp files.
 +       ((and t1 t2)
 +        (with-parsed-tramp-file-name filename v1
 +          (with-parsed-tramp-file-name newname v2
 +            (cond
 +             ;; Shortcut: if method, host, user are the same for
 +             ;; both files, we invoke `cp' or `mv' on the remote
 +             ;; host directly.
 +             ((tramp-equal-remote filename newname)
 +              (tramp-do-copy-or-rename-file-directly
 +               op filename newname
 +               ok-if-already-exists keep-date preserve-uid-gid))
 +
 +             ;; Try out-of-band operation.
 +             ((tramp-method-out-of-band-p
 +               v1 (nth 7 (file-attributes (file-truename filename))))
 +              (tramp-do-copy-or-rename-file-out-of-band
 +               op filename newname keep-date))
 +
 +             ;; No shortcut was possible.  So we copy the file
 +             ;; first.  If the operation was `rename', we go back
 +             ;; and delete the original file (if the copy was
 +             ;; successful).  The approach is simple-minded: we
 +             ;; create a new buffer, insert the contents of the
 +             ;; source file into it, then write out the buffer to
 +             ;; the target file.  The advantage is that it doesn't
 +             ;; matter which filename handlers are used for the
 +             ;; source and target file.
 +             (t
 +              (tramp-do-copy-or-rename-file-via-buffer
 +               op filename newname keep-date))))))
 +
 +       ;; One file is a Tramp file, the other one is local.
 +       ((or t1 t2)
 +        (cond
 +         ;; Fast track on local machine.
 +         ((tramp-local-host-p v)
 +          (tramp-do-copy-or-rename-file-directly
 +           op filename newname
 +           ok-if-already-exists keep-date preserve-uid-gid))
 +
 +         ;; If the Tramp file has an out-of-band method, the
 +         ;; corresponding copy-program can be invoked.
 +         ((tramp-method-out-of-band-p
 +           v (nth 7 (file-attributes (file-truename filename))))
 +          (tramp-do-copy-or-rename-file-out-of-band
 +           op filename newname keep-date))
 +
 +         ;; Use the inline method via a Tramp buffer.
 +         (t (tramp-do-copy-or-rename-file-via-buffer
 +             op filename newname keep-date))))
 +
 +       (t
 +        ;; One of them must be a Tramp file.
 +        (error "Tramp implementation says this cannot happen")))
 +
 +      ;; Handle `preserve-selinux-context'.
 +      (when context (apply 'set-file-selinux-context (list newname context)))
 +
 +      ;; In case of `rename', we must flush the cache of the source file.
 +      (when (and t1 (eq op 'rename))
 +        (with-parsed-tramp-file-name filename v1
 +          (tramp-flush-file-property v1 (file-name-directory localname))
 +          (tramp-flush-file-property v1 localname)))
 +
 +      ;; When newname did exist, we have wrong cached values.
 +      (when t2
 +        (with-parsed-tramp-file-name newname v2
 +          (tramp-flush-file-property v2 (file-name-directory localname))
 +          (tramp-flush-file-property v2 localname)))))))
 +
 +(defun tramp-do-copy-or-rename-file-via-buffer (op filename newname keep-date)
 +  "Use an Emacs buffer to copy or rename a file.
 +First arg OP is either `copy' or `rename' and indicates the operation.
 +FILENAME is the source file, NEWNAME the target file.
 +KEEP-DATE is non-nil if NEWNAME should have the same timestamp as FILENAME."
 +  (with-temp-buffer
 +    ;; We must disable multibyte, because binary data shall not be
 +    ;; converted.
 +    (set-buffer-multibyte nil)
 +    (let ((coding-system-for-read 'binary)
 +        (jka-compr-inhibit t))
 +      (insert-file-contents-literally filename))
 +    ;; We don't want the target file to be compressed, so we let-bind
 +    ;; `jka-compr-inhibit' to t.
 +    (let ((coding-system-for-write 'binary)
 +        (jka-compr-inhibit t))
 +      (write-region (point-min) (point-max) newname)))
 +  ;; KEEP-DATE handling.
 +  (when keep-date (set-file-times newname (nth 5 (file-attributes filename))))
 +  ;; Set the mode.
 +  (set-file-modes newname (tramp-default-file-modes filename))
 +  ;; If the operation was `rename', delete the original file.
 +  (unless (eq op 'copy) (delete-file filename)))
 +
 +(defun tramp-do-copy-or-rename-file-directly
 + (op filename newname ok-if-already-exists keep-date preserve-uid-gid)
 +  "Invokes `cp' or `mv' on the remote system.
 +OP must be one of `copy' or `rename', indicating `cp' or `mv',
 +respectively.  FILENAME specifies the file to copy or rename,
 +NEWNAME is the name of the new file (for copy) or the new name of
 +the file (for rename).  Both files must reside on the same host.
 +KEEP-DATE means to make sure that NEWNAME has the same timestamp
 +as FILENAME.  PRESERVE-UID-GID, when non-nil, instructs to keep
 +the uid and gid from FILENAME."
 +  (let ((t1 (tramp-tramp-file-p filename))
 +      (t2 (tramp-tramp-file-p newname))
 +      (file-times (nth 5 (file-attributes filename)))
 +      (file-modes (tramp-default-file-modes filename)))
 +    (with-parsed-tramp-file-name (if t1 filename newname) nil
 +      (let* ((cmd (cond ((and (eq op 'copy) preserve-uid-gid) "cp -f -p")
 +                      ((eq op 'copy) "cp -f")
 +                      ((eq op 'rename) "mv -f")
 +                      (t (tramp-error
 +                          v 'file-error
 +                          "Unknown operation `%s', must be `copy' or `rename'"
 +                          op))))
 +           (localname1
 +            (if t1
 +                (tramp-file-name-handler 'file-remote-p filename 'localname)
 +              filename))
 +           (localname2
 +            (if t2
 +                (tramp-file-name-handler 'file-remote-p newname 'localname)
 +              newname))
 +           (prefix (file-remote-p (if t1 filename newname)))
 +             cmd-result)
 +
 +      (cond
 +       ;; Both files are on a remote host, with same user.
 +       ((and t1 t2)
 +          (setq cmd-result
 +                (tramp-send-command-and-check
 +                 v (format "%s %s %s" cmd
 +                         (tramp-shell-quote-argument localname1)
 +                         (tramp-shell-quote-argument localname2))))
 +        (with-current-buffer (tramp-get-buffer v)
 +          (goto-char (point-min))
 +          (unless
 +              (or
 +               (and keep-date
 +                    ;; Mask cp -f error.
 +                    (re-search-forward
 +                     tramp-operation-not-permitted-regexp nil t))
 +               cmd-result)
 +            (tramp-error-with-buffer
 +             nil v 'file-error
 +             "Copying directly failed, see buffer `%s' for details."
 +             (buffer-name)))))
 +
 +       ;; We are on the local host.
 +       ((or t1 t2)
 +        (cond
 +         ;; We can do it directly.
 +         ((let (file-name-handler-alist)
 +            (and (file-readable-p localname1)
 +                 (file-writable-p (file-name-directory localname2))
 +                 (or (file-directory-p localname2)
 +                     (file-writable-p localname2))))
 +          (if (eq op 'copy)
 +              (tramp-compat-copy-file
 +               localname1 localname2 ok-if-already-exists
 +               keep-date preserve-uid-gid)
 +            (tramp-run-real-handler
 +             'rename-file (list localname1 localname2 ok-if-already-exists))))
 +
 +         ;; We can do it directly with `tramp-send-command'
 +         ((and (file-readable-p (concat prefix localname1))
 +               (file-writable-p
 +                (file-name-directory (concat prefix localname2)))
 +               (or (file-directory-p (concat prefix localname2))
 +                   (file-writable-p (concat prefix localname2))))
 +          (tramp-do-copy-or-rename-file-directly
 +           op (concat prefix localname1) (concat prefix localname2)
 +           ok-if-already-exists keep-date t)
 +          ;; We must change the ownership to the local user.
 +          (tramp-set-file-uid-gid
 +           (concat prefix localname2)
 +           (tramp-get-local-uid 'integer)
 +           (tramp-get-local-gid 'integer)))
 +
 +         ;; We need a temporary file in between.
 +         (t
 +          ;; Create the temporary file.
 +          (let ((tmpfile (tramp-compat-make-temp-file localname1)))
 +            (unwind-protect
 +                (progn
 +                  (cond
 +                   (t1
 +                    (tramp-barf-unless-okay
 +                     v (format
 +                        "%s %s %s" cmd
 +                        (tramp-shell-quote-argument localname1)
 +                        (tramp-shell-quote-argument tmpfile))
 +                     "Copying directly failed, see buffer `%s' for details."
 +                     (tramp-get-buffer v))
 +                    ;; We must change the ownership as remote user.
 +                    ;; Since this does not work reliable, we also
 +                    ;; give read permissions.
 +                    (set-file-modes
 +                     (concat prefix tmpfile)
 +                     (tramp-compat-octal-to-decimal "0777"))
 +                    (tramp-set-file-uid-gid
 +                     (concat prefix tmpfile)
 +                     (tramp-get-local-uid 'integer)
 +                     (tramp-get-local-gid 'integer)))
 +                   (t2
 +                    (if (eq op 'copy)
 +                        (tramp-compat-copy-file
 +                         localname1 tmpfile t
 +                         keep-date preserve-uid-gid)
 +                      (tramp-run-real-handler
 +                       'rename-file
 +                       (list localname1 tmpfile t)))
 +                    ;; We must change the ownership as local user.
 +                    ;; Since this does not work reliable, we also
 +                    ;; give read permissions.
 +                    (set-file-modes
 +                     tmpfile (tramp-compat-octal-to-decimal "0777"))
 +                    (tramp-set-file-uid-gid
 +                     tmpfile
 +                     (tramp-get-remote-uid v 'integer)
 +                     (tramp-get-remote-gid v 'integer))))
 +
 +                  ;; Move the temporary file to its destination.
 +                  (cond
 +                   (t2
 +                    (tramp-barf-unless-okay
 +                     v (format
 +                        "cp -f -p %s %s"
 +                        (tramp-shell-quote-argument tmpfile)
 +                        (tramp-shell-quote-argument localname2))
 +                     "Copying directly failed, see buffer `%s' for details."
 +                     (tramp-get-buffer v)))
 +                   (t1
 +                    (tramp-run-real-handler
 +                     'rename-file
 +                     (list tmpfile localname2 ok-if-already-exists)))))
 +
 +              ;; Save exit.
 +              (ignore-errors (delete-file tmpfile)))))))))
 +
 +      ;; Set the time and mode. Mask possible errors.
 +      (ignore-errors
 +        (when keep-date
 +          (set-file-times newname file-times)
 +          (set-file-modes newname file-modes))))))
 +
 +(defun tramp-do-copy-or-rename-file-out-of-band (op filename newname keep-date)
 +  "Invoke rcp program to copy.
 +The method used must be an out-of-band method."
 +  (let* ((t1 (tramp-tramp-file-p filename))
 +       (t2 (tramp-tramp-file-p newname))
 +       (orig-vec (tramp-dissect-file-name (if t1 filename newname)))
 +       copy-program copy-args copy-env copy-keep-date port spec
 +       source target)
 +
 +    (with-parsed-tramp-file-name (if t1 filename newname) nil
 +      (if (and t1 t2)
 +
 +        ;; Both are Tramp files.  We shall optimize it, when the
 +        ;; methods for filename and newname are the same.
 +        (let* ((dir-flag (file-directory-p filename))
 +               (tmpfile (tramp-compat-make-temp-file localname dir-flag)))
 +          (if dir-flag
 +              (setq tmpfile
 +                    (expand-file-name
 +                     (file-name-nondirectory newname) tmpfile)))
 +          (unwind-protect
 +              (progn
 +                (tramp-do-copy-or-rename-file-out-of-band
 +                 op filename tmpfile keep-date)
 +                (tramp-do-copy-or-rename-file-out-of-band
 +                 'rename tmpfile newname keep-date))
 +            ;; Save exit.
 +            (ignore-errors
 +              (if dir-flag
 +                  (tramp-compat-delete-directory
 +                   (expand-file-name ".." tmpfile) 'recursive)
 +                (delete-file tmpfile)))))
 +
 +      ;; Set variables for computing the prompt for reading
 +      ;; password.
 +      (setq tramp-current-method (tramp-file-name-method v)
 +            tramp-current-user   (tramp-file-name-user v)
 +            tramp-current-host   (tramp-file-name-host v))
 +
 +      ;; Expand hops.  Might be necessary for gateway methods.
 +      (setq v (car (tramp-compute-multi-hops v)))
 +      (aset v 3 localname)
 +
 +      ;; Check which ones of source and target are Tramp files.
 +      (setq source (if t1 (tramp-make-copy-program-file-name v) filename)
 +            target (funcall
 +                    (if (and (file-directory-p filename)
 +                             (string-equal
 +                              (file-name-nondirectory filename)
 +                              (file-name-nondirectory newname)))
 +                        'file-name-directory
 +                      'identity)
 +                    (if t2 (tramp-make-copy-program-file-name v) newname)))
 +
 +      ;; Check for port number.  Until now, there's no need for handling
 +      ;; like method, user, host.
 +      (setq host (tramp-file-name-real-host v)
 +            port (tramp-file-name-port v)
 +            port (or (and port (number-to-string port)) ""))
 +
 +      ;; Compose copy command.
 +      (setq spec (format-spec-make
 +                  ?h host ?u user ?p port
 +                  ?t (tramp-get-connection-property
 +                      (tramp-get-connection-process v) "temp-file" "")
 +                  ?k (if keep-date " " ""))
 +            copy-program (tramp-get-method-parameter
 +                          method 'tramp-copy-program)
 +            copy-keep-date (tramp-get-method-parameter
 +                            method 'tramp-copy-keep-date)
 +            copy-args
 +            (delete
 +             ;; " " has either been a replacement of "%k" (when
 +             ;; keep-date argument is non-nil), or a replacemtent
 +             ;; for the whole keep-date sublist.
 +             " "
 +             (dolist
 +                 (x
 +                  (tramp-get-method-parameter method 'tramp-copy-args)
 +                  copy-args)
 +               (setq copy-args
 +                     (append
 +                      copy-args
 +                      (let ((y (mapcar (lambda (z) (format-spec z spec)) x)))
 +                        (if (zerop (length (car y))) '(" ") y))))))
 +            copy-env
 +            (delq
 +             nil
 +             (mapcar
 +              (lambda (x)
 +                (setq x (mapcar (lambda (y) (format-spec y spec)) x))
 +                (unless (member "" x) (mapconcat 'identity x " ")))
 +              (tramp-get-method-parameter method 'tramp-copy-env))))
 +
 +      ;; Check for program.
 +      (when (and (fboundp 'executable-find)
 +                 (not (let ((default-directory
 +                              (tramp-compat-temporary-file-directory)))
 +                        (executable-find copy-program))))
 +        (tramp-error
 +         v 'file-error "Cannot find copy program: %s" copy-program))
 +
 +      (with-temp-buffer
 +        (unwind-protect
 +            ;; The default directory must be remote.
 +            (let ((default-directory
 +                    (file-name-directory (if t1 filename newname)))
 +                  (process-environment (copy-sequence process-environment)))
 +              ;; Set the transfer process properties.
 +              (tramp-set-connection-property
 +               v "process-name" (buffer-name (current-buffer)))
 +              (tramp-set-connection-property
 +               v "process-buffer" (current-buffer))
 +              (while copy-env
 +                (tramp-message
 +                 orig-vec 5 "%s=\"%s\"" (car copy-env) (cadr copy-env))
 +                (setenv (pop copy-env) (pop copy-env)))
 +
 +              ;; Use an asynchronous process.  By this, password can
 +              ;; be handled.  The default directory must be local, in
 +              ;; order to apply the correct `copy-program'.  We don't
 +              ;; set a timeout, because the copying of large files can
 +              ;; last longer than 60 secs.
 +              (let ((p (let ((default-directory
 +                               (tramp-compat-temporary-file-directory)))
 +                         (apply 'start-process
 +                                (tramp-get-connection-name v)
 +                                (tramp-get-connection-buffer v)
 +                                copy-program
 +                                (append copy-args (list source target))))))
 +                (tramp-message
 +                 orig-vec 6 "%s"
 +                 (mapconcat 'identity (process-command p) " "))
 +                (tramp-compat-set-process-query-on-exit-flag p nil)
 +                (tramp-process-actions p v tramp-actions-copy-out-of-band)))
 +
 +          ;; Reset the transfer process properties.
 +          (tramp-message orig-vec 6 "%s" (buffer-string))
 +          (tramp-set-connection-property v "process-name" nil)
 +          (tramp-set-connection-property v "process-buffer" nil)))
 +
 +      ;; Handle KEEP-DATE argument.
 +      (when (and keep-date (not copy-keep-date))
 +        (set-file-times newname (nth 5 (file-attributes filename))))
 +
 +      ;; Set the mode.
 +      (unless (and keep-date copy-keep-date)
 +        (ignore-errors
 +          (set-file-modes newname (tramp-default-file-modes filename)))))
 +
 +      ;; If the operation was `rename', delete the original file.
 +      (unless (eq op 'copy)
 +      (if (file-regular-p filename)
 +          (delete-file filename)
 +        (tramp-compat-delete-directory filename 'recursive))))))
 +
 +(defun tramp-sh-handle-make-directory (dir &optional parents)
 +  "Like `make-directory' for Tramp files."
 +  (setq dir (expand-file-name dir))
 +  (with-parsed-tramp-file-name dir nil
 +    (tramp-flush-directory-property v (file-name-directory localname))
 +    (save-excursion
 +      (tramp-barf-unless-okay
 +       v (format "%s %s"
 +               (if parents "mkdir -p" "mkdir")
 +               (tramp-shell-quote-argument localname))
 +       "Couldn't make directory %s" dir))))
 +
 +(defun tramp-sh-handle-delete-directory (directory &optional recursive)
 +  "Like `delete-directory' for Tramp files."
 +  (setq directory (expand-file-name directory))
 +  (with-parsed-tramp-file-name directory nil
 +    (tramp-flush-file-property v (file-name-directory localname))
 +    (tramp-flush-directory-property v localname)
 +    (tramp-barf-unless-okay
 +     v (format "%s %s"
 +             (if recursive "rm -rf" "rmdir")
 +             (tramp-shell-quote-argument localname))
 +     "Couldn't delete %s" directory)))
 +
 +(defun tramp-sh-handle-delete-file (filename &optional trash)
 +  "Like `delete-file' for Tramp files."
 +  (setq filename (expand-file-name filename))
 +  (with-parsed-tramp-file-name filename nil
 +    (tramp-flush-file-property v (file-name-directory localname))
 +    (tramp-flush-file-property v localname)
 +    (tramp-barf-unless-okay
 +     v (format "%s %s"
 +             (or (and trash (tramp-get-remote-trash v)) "rm -f")
 +             (tramp-shell-quote-argument localname))
 +     "Couldn't delete %s" filename)))
 +
 +;; Dired.
 +
 +;; CCC: This does not seem to be enough. Something dies when
 +;;      we try and delete two directories under Tramp :/
 +(defun tramp-sh-handle-dired-recursive-delete-directory (filename)
 +  "Recursively delete the directory given.
 +This is like `dired-recursive-delete-directory' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    ;; Run a shell command 'rm -r <localname>'
 +    ;; Code shamelessly stolen from the dired implementation and, um, hacked :)
 +    (unless (file-exists-p filename)
 +      (tramp-error v 'file-error "No such directory: %s" filename))
 +    ;; Which is better, -r or -R? (-r works for me <daniel@danann.net>)
 +    (tramp-send-command
 +     v
 +     (format "rm -rf %s" (tramp-shell-quote-argument localname))
 +     ;; Don't read the output, do it explicitely.
 +     nil t)
 +    ;; Wait for the remote system to return to us...
 +    ;; This might take a while, allow it plenty of time.
 +    (tramp-wait-for-output (tramp-get-connection-process v) 120)
 +    ;; Make sure that it worked...
 +    (tramp-flush-file-property v (file-name-directory localname))
 +    (tramp-flush-directory-property v localname)
 +    (and (file-exists-p filename)
 +       (tramp-error
 +        v 'file-error "Failed to recursively delete %s" filename))))
 +
 +(defun tramp-sh-handle-dired-compress-file (file &rest ok-flag)
 +  "Like `dired-compress-file' for Tramp files."
 +  ;; OK-FLAG is valid for XEmacs only, but not implemented.
 +  ;; Code stolen mainly from dired-aux.el.
 +  (with-parsed-tramp-file-name file nil
 +    (tramp-flush-file-property v localname)
 +    (save-excursion
 +      (let ((suffixes
 +           (if (not (featurep 'xemacs))
 +               ;; Emacs case
 +               (symbol-value 'dired-compress-file-suffixes)
 +             ;; XEmacs has `dired-compression-method-alist', which is
 +             ;; transformed into `dired-compress-file-suffixes' structure.
 +             (mapcar
 +              (lambda (x)
 +                (list (concat (regexp-quote (nth 1 x)) "\\'")
 +                      nil
 +                      (mapconcat 'identity (nth 3 x) " ")))
 +              (symbol-value 'dired-compression-method-alist))))
 +          suffix)
 +      ;; See if any suffix rule matches this file name.
 +      (while suffixes
 +        (let (case-fold-search)
 +          (if (string-match (car (car suffixes)) localname)
 +              (setq suffix (car suffixes) suffixes nil))
 +          (setq suffixes (cdr suffixes))))
 +
 +      (cond ((file-symlink-p file)
 +             nil)
 +            ((and suffix (nth 2 suffix))
 +             ;; We found an uncompression rule.
 +             (with-progress-reporter v 0 (format "Uncompressing %s" file)
 +               (when (tramp-send-command-and-check
 +                      v (concat (nth 2 suffix) " "
 +                                (tramp-shell-quote-argument localname)))
 +                 ;; `dired-remove-file' is not defined in XEmacs.
 +                 (tramp-compat-funcall 'dired-remove-file file)
 +                 (string-match (car suffix) file)
 +                 (concat (substring file 0 (match-beginning 0))))))
 +            (t
 +             ;; We don't recognize the file as compressed, so compress it.
 +             ;; Try gzip.
 +             (with-progress-reporter v 0 (format "Compressing %s" file)
 +               (when (tramp-send-command-and-check
 +                      v (concat "gzip -f "
 +                                (tramp-shell-quote-argument localname)))
 +                 ;; `dired-remove-file' is not defined in XEmacs.
 +                 (tramp-compat-funcall 'dired-remove-file file)
 +                 (cond ((file-exists-p (concat file ".gz"))
 +                        (concat file ".gz"))
 +                       ((file-exists-p (concat file ".z"))
 +                        (concat file ".z"))
 +                       (t nil))))))))))
 +
 +(defun tramp-sh-handle-insert-directory
 +  (filename switches &optional wildcard full-directory-p)
 +  "Like `insert-directory' for Tramp files."
 +  (setq filename (expand-file-name filename))
 +  (with-parsed-tramp-file-name filename nil
 +    (if (and (featurep 'ls-lisp)
 +           (not (symbol-value 'ls-lisp-use-insert-directory-program)))
 +      (tramp-run-real-handler
 +       'insert-directory (list filename switches wildcard full-directory-p))
 +      (when (stringp switches)
 +        (setq switches (split-string switches)))
 +      (when (and (member "--dired" switches)
 +               (not (tramp-get-ls-command-with-dired v)))
 +      (setq switches (delete "--dired" switches)))
 +      (when wildcard
 +        (setq wildcard (tramp-run-real-handler
 +                      'file-name-nondirectory (list localname)))
 +        (setq localname (tramp-run-real-handler
 +                       'file-name-directory (list localname))))
 +      (unless full-directory-p
 +        (setq switches (add-to-list 'switches "-d" 'append)))
 +      (setq switches (mapconcat 'tramp-shell-quote-argument switches " "))
 +      (when wildcard
 +      (setq switches (concat switches " " wildcard)))
 +      (tramp-message
 +       v 4 "Inserting directory `ls %s %s', wildcard %s, fulldir %s"
 +       switches filename (if wildcard "yes" "no")
 +       (if full-directory-p "yes" "no"))
 +      ;; If `full-directory-p', we just say `ls -l FILENAME'.
 +      ;; Else we chdir to the parent directory, then say `ls -ld BASENAME'.
 +      (if full-directory-p
 +        (tramp-send-command
 +         v
 +         (format "%s %s %s 2>/dev/null"
 +                 (tramp-get-ls-command v)
 +                 switches
 +                 (if wildcard
 +                     localname
 +                   (tramp-shell-quote-argument (concat localname ".")))))
 +      (tramp-barf-unless-okay
 +       v
 +       (format "cd %s" (tramp-shell-quote-argument
 +                        (tramp-run-real-handler
 +                         'file-name-directory (list localname))))
 +       "Couldn't `cd %s'"
 +       (tramp-shell-quote-argument
 +        (tramp-run-real-handler 'file-name-directory (list localname))))
 +      (tramp-send-command
 +       v
 +       (format "%s %s %s"
 +               (tramp-get-ls-command v)
 +               switches
 +               (if (or wildcard
 +                       (zerop (length
 +                               (tramp-run-real-handler
 +                                'file-name-nondirectory (list localname)))))
 +                   ""
 +                 (tramp-shell-quote-argument
 +                  (tramp-run-real-handler
 +                   'file-name-nondirectory (list localname)))))))
 +      (let ((beg (point)))
 +      ;; We cannot use `insert-buffer-substring' because the Tramp
 +      ;; buffer changes its contents before insertion due to calling
 +      ;; `expand-file' and alike.
 +      (insert
 +       (with-current-buffer (tramp-get-buffer v)
 +         (buffer-string)))
 +
 +      ;; Check for "--dired" output.
 +      (forward-line -2)
 +      (when (looking-at "//SUBDIRED//")
 +        (forward-line -1))
 +      (when (looking-at "//DIRED//\\s-+")
 +        (let ((databeg (match-end 0))
 +              (end (point-at-eol)))
 +          ;; Now read the numeric positions of file names.
 +          (goto-char databeg)
 +          (while (< (point) end)
 +            (let ((start (+ beg (read (current-buffer))))
 +                  (end (+ beg (read (current-buffer)))))
 +              (if (memq (char-after end) '(?\n ?\ ))
 +                  ;; End is followed by \n or by " -> ".
 +                  (put-text-property start end 'dired-filename t))))))
 +      ;; Remove trailing lines.
 +      (goto-char (point-at-bol))
 +      (while (looking-at "//")
 +        (forward-line 1)
 +        (delete-region (match-beginning 0) (point)))
 +
 +      ;; The inserted file could be from somewhere else.
 +      (when (and (not wildcard) (not full-directory-p))
 +        (goto-char (point-max))
 +        (when (file-symlink-p filename)
 +          (goto-char (search-backward "->" beg 'noerror)))
 +        (search-backward
 +         (if (zerop (length (file-name-nondirectory filename)))
 +             "."
 +           (file-name-nondirectory filename))
 +         beg 'noerror)
 +        (replace-match (file-relative-name filename) t))
 +
 +      (goto-char (point-max))))))
 +
 +;; Canonicalization of file names.
 +
 +(defun tramp-sh-handle-expand-file-name (name &optional dir)
 +  "Like `expand-file-name' for Tramp files.
 +If the localname part of the given filename starts with \"/../\" then
 +the result will be a local, non-Tramp, filename."
 +  ;; If DIR is not given, use DEFAULT-DIRECTORY or "/".
 +  (setq dir (or dir default-directory "/"))
 +  ;; Unless NAME is absolute, concat DIR and NAME.
 +  (unless (file-name-absolute-p name)
 +    (setq name (concat (file-name-as-directory dir) name)))
 +  ;; If NAME is not a Tramp file, run the real handler.
 +  (if (not (tramp-connectable-p name))
 +      (tramp-run-real-handler 'expand-file-name (list name nil))
 +    ;; Dissect NAME.
 +    (with-parsed-tramp-file-name name nil
 +      (unless (tramp-run-real-handler 'file-name-absolute-p (list localname))
 +      (setq localname (concat "~/" localname)))
 +      ;; Tilde expansion if necessary.  This needs a shell which
 +      ;; groks tilde expansion!  The function `tramp-find-shell' is
 +      ;; supposed to find such a shell on the remote host.  Please
 +      ;; tell me about it when this doesn't work on your system.
 +      (when (string-match "\\`\\(~[^/]*\\)\\(.*\\)\\'" localname)
 +      (let ((uname (match-string 1 localname))
 +            (fname (match-string 2 localname)))
 +        ;; We cannot simply apply "~/", because under sudo "~/" is
 +        ;; expanded to the local user home directory but to the
 +        ;; root home directory.  On the other hand, using always
 +        ;; the default user name for tilde expansion is not
 +        ;; appropriate either, because ssh and companions might
 +        ;; use a user name from the config file.
 +        (when (and (string-equal uname "~")
 +                   (string-match "\\`su\\(do\\)?\\'" method))
 +          (setq uname (concat uname user)))
 +        (setq uname
 +              (with-connection-property v uname
 +                (tramp-send-command
 +                 v (format "cd %s; pwd" (tramp-shell-quote-argument uname)))
 +                (with-current-buffer (tramp-get-buffer v)
 +                  (goto-char (point-min))
 +                  (buffer-substring (point) (point-at-eol)))))
 +        (setq localname (concat uname fname))))
 +      ;; There might be a double slash, for example when "~/"
 +      ;; expands to "/".  Remove this.
 +      (while (string-match "//" localname)
 +      (setq localname (replace-match "/" t t localname)))
 +      ;; No tilde characters in file name, do normal
 +      ;; `expand-file-name' (this does "/./" and "/../").  We bind
 +      ;; `directory-sep-char' here for XEmacs on Windows, which would
 +      ;; otherwise use backslash.  `default-directory' is bound,
 +      ;; because on Windows there would be problems with UNC shares or
 +      ;; Cygwin mounts.
 +      (let ((directory-sep-char ?/)
 +          (default-directory (tramp-compat-temporary-file-directory)))
 +      (tramp-make-tramp-file-name
 +       method user host
 +       (tramp-drop-volume-letter
 +        (tramp-run-real-handler
 +         'expand-file-name (list localname))))))))
 +
 +;;; Remote commands:
 +
 +(defun tramp-sh-handle-executable-find (command)
 +  "Like `executable-find' for Tramp files."
 +  (with-parsed-tramp-file-name default-directory nil
 +    (tramp-find-executable v command (tramp-get-remote-path v) t)))
 +
 +(defun tramp-process-sentinel (proc event)
 +  "Flush file caches."
 +  (unless (memq (process-status proc) '(run open))
 +    (let ((vec (tramp-get-connection-property proc "vector" nil)))
 +      (when vec
 +      (tramp-message vec 5 "Sentinel called: `%s' `%s'" proc event)
 +        (tramp-flush-directory-property vec "")))))
 +
 +;; We use BUFFER also as connection buffer during setup. Because of
 +;; this, its original contents must be saved, and restored once
 +;; connection has been setup.
 +(defun tramp-sh-handle-start-file-process (name buffer program &rest args)
 +  "Like `start-file-process' for Tramp files."
 +  (with-parsed-tramp-file-name default-directory nil
 +    ;; When PROGRAM is nil, we just provide a tty.
 +    (let ((command
 +         (when (stringp program)
 +           (format "cd %s; exec %s"
 +                   (tramp-shell-quote-argument localname)
 +                   (mapconcat 'tramp-shell-quote-argument
 +                              (cons program args) " "))))
 +        (tramp-process-connection-type
 +         (or (null program) tramp-process-connection-type))
 +        (bmp (and (buffer-live-p buffer) (buffer-modified-p buffer)))
 +        (name1 name)
 +        (i 0))
 +      (unwind-protect
 +        (save-excursion
 +          (save-restriction
 +            (unless buffer
 +              ;; BUFFER can be nil.  We use a temporary buffer.
 +              (setq buffer (generate-new-buffer tramp-temp-buffer-name)))
 +            (while (get-process name1)
 +              ;; NAME must be unique as process name.
 +              (setq i (1+ i)
 +                    name1 (format "%s<%d>" name i)))
 +            (setq name name1)
 +            ;; Set the new process properties.
 +            (tramp-set-connection-property v "process-name" name)
 +            (tramp-set-connection-property v "process-buffer" buffer)
 +            ;; Activate narrowing in order to save BUFFER contents.
 +            ;; Clear also the modification time; otherwise we might
 +            ;; be interrupted by `verify-visited-file-modtime'.
 +            (with-current-buffer (tramp-get-connection-buffer v)
 +              (let ((buffer-undo-list t))
 +                (clear-visited-file-modtime)
 +                (narrow-to-region (point-max) (point-max))
 +                (if command
 +                    ;; Send the command.
 +                    (tramp-send-command v command nil t) ; nooutput
 +                  ;; Check, whether a pty is associated.
 +                  (tramp-maybe-open-connection v)
 +                  (unless (tramp-compat-process-get
 +                           (tramp-get-connection-process v) 'remote-tty)
 +                    (tramp-error
 +                     v 'file-error
 +                     "pty association is not supported for `%s'" name)))))
 +            (let ((p (tramp-get-connection-process v)))
 +              ;; Set sentinel and query flag for this process.
 +              (tramp-set-connection-property p "vector" v)
 +              (set-process-sentinel p 'tramp-process-sentinel)
 +              (tramp-compat-set-process-query-on-exit-flag p t)
 +              ;; Return process.
 +              p)))
 +      ;; Save exit.
 +      (with-current-buffer (tramp-get-connection-buffer v)
 +        (if (string-match tramp-temp-buffer-name (buffer-name))
 +            (progn
 +              (set-process-buffer (tramp-get-connection-process v) nil)
 +              (kill-buffer (current-buffer)))
 +          (set-buffer-modified-p bmp)))
 +      (tramp-set-connection-property v "process-name" nil)
 +      (tramp-set-connection-property v "process-buffer" nil)))))
 +
 +(defun tramp-sh-handle-process-file
 +  (program &optional infile destination display &rest args)
 +  "Like `process-file' for Tramp files."
 +  ;; The implementation is not complete yet.
 +  (when (and (numberp destination) (zerop destination))
 +    (error "Implementation does not handle immediate return"))
 +
 +  (with-parsed-tramp-file-name default-directory nil
 +    (let (command input tmpinput stderr tmpstderr outbuf ret)
 +      ;; Compute command.
 +      (setq command (mapconcat 'tramp-shell-quote-argument
 +                             (cons program args) " "))
 +      ;; Determine input.
 +      (if (null infile)
 +        (setq input "/dev/null")
 +      (setq infile (expand-file-name infile))
 +      (if (tramp-equal-remote default-directory infile)
 +          ;; INFILE is on the same remote host.
 +          (setq input (with-parsed-tramp-file-name infile nil localname))
 +        ;; INFILE must be copied to remote host.
 +        (setq input (tramp-make-tramp-temp-file v)
 +              tmpinput (tramp-make-tramp-file-name method user host input))
 +        (copy-file infile tmpinput t)))
 +      (when input (setq command (format "%s <%s" command input)))
 +
 +      ;; Determine output.
 +      (cond
 +       ;; Just a buffer.
 +       ((bufferp destination)
 +      (setq outbuf destination))
 +       ;; A buffer name.
 +       ((stringp destination)
 +      (setq outbuf (get-buffer-create destination)))
 +       ;; (REAL-DESTINATION ERROR-DESTINATION)
 +       ((consp destination)
 +      ;; output.
 +      (cond
 +       ((bufferp (car destination))
 +        (setq outbuf (car destination)))
 +       ((stringp (car destination))
 +        (setq outbuf (get-buffer-create (car destination))))
 +       ((car destination)
 +        (setq outbuf (current-buffer))))
 +      ;; stderr.
 +      (cond
 +       ((stringp (cadr destination))
 +        (setcar (cdr destination) (expand-file-name (cadr destination)))
 +        (if (tramp-equal-remote default-directory (cadr destination))
 +            ;; stderr is on the same remote host.
 +            (setq stderr (with-parsed-tramp-file-name
 +                             (cadr destination) nil localname))
 +          ;; stderr must be copied to remote host.  The temporary
 +          ;; file must be deleted after execution.
 +          (setq stderr (tramp-make-tramp-temp-file v)
 +                tmpstderr (tramp-make-tramp-file-name
 +                           method user host stderr))))
 +       ;; stderr to be discarded.
 +       ((null (cadr destination))
 +        (setq stderr "/dev/null"))))
 +       ;; 't
 +       (destination
 +      (setq outbuf (current-buffer))))
 +      (when stderr (setq command (format "%s 2>%s" command stderr)))
 +
 +      ;; Send the command.  It might not return in time, so we protect
 +      ;; it.  Call it in a subshell, in order to preserve working
 +      ;; directory.
 +      (condition-case nil
 +        (unwind-protect
 +              (setq ret
 +                  (if (tramp-send-command-and-check
 +                       v (format "\\cd %s; %s"
 +                                 (tramp-shell-quote-argument localname)
 +                                 command)
 +                       t t)
 +                      0 1))
 +          ;; We should show the output anyway.
 +          (when outbuf
 +            (with-current-buffer outbuf
 +                (insert
 +                 (with-current-buffer (tramp-get-connection-buffer v)
 +                   (buffer-string))))
 +            (when display (display-buffer outbuf))))
 +      ;; When the user did interrupt, we should do it also.  We use
 +      ;; return code -1 as marker.
 +      (quit
 +       (kill-buffer (tramp-get-connection-buffer v))
 +       (setq ret -1))
 +      ;; Handle errors.
 +      (error
 +       (kill-buffer (tramp-get-connection-buffer v))
 +       (setq ret 1)))
 +
 +      ;; Provide error file.
 +      (when tmpstderr (rename-file tmpstderr (cadr destination) t))
 +
 +      ;; Cleanup.  We remove all file cache values for the connection,
 +      ;; because the remote process could have changed them.
 +      (when tmpinput (delete-file tmpinput))
 +
 +      ;; `process-file-side-effects' has been introduced with GNU
 +      ;; Emacs 23.2.  If set to `nil', no remote file will be changed
 +      ;; by `program'.  If it doesn't exist, we assume its default
 +      ;; value 't'.
 +      (unless (and (boundp 'process-file-side-effects)
 +                 (not (symbol-value 'process-file-side-effects)))
 +        (tramp-flush-directory-property v ""))
 +
 +      ;; Return exit status.
 +      (if (equal ret -1)
 +        (keyboard-quit)
 +      ret))))
 +
 +(defun tramp-sh-handle-call-process-region
 +  (start end program &optional delete buffer display &rest args)
 +  "Like `call-process-region' for Tramp files."
 +  (let ((tmpfile (tramp-compat-make-temp-file "")))
 +    (write-region start end tmpfile)
 +    (when delete (delete-region start end))
 +    (unwind-protect
 +      (apply 'call-process program tmpfile buffer display args)
 +      (delete-file tmpfile))))
 +
 +(defun tramp-sh-handle-shell-command
 +  (command &optional output-buffer error-buffer)
 +  "Like `shell-command' for Tramp files."
 +  (let* ((asynchronous (string-match "[ \t]*&[ \t]*\\'" command))
 +       ;; We cannot use `shell-file-name' and `shell-command-switch',
 +       ;; they are variables of the local host.
 +       (args (list
 +              (tramp-get-method-parameter
 +               (tramp-file-name-method
 +                (tramp-dissect-file-name default-directory))
 +               'tramp-remote-sh)
 +              "-c" (substring command 0 asynchronous)))
 +       current-buffer-p
 +       (output-buffer
 +        (cond
 +         ((bufferp output-buffer) output-buffer)
 +         ((stringp output-buffer) (get-buffer-create output-buffer))
 +         (output-buffer
 +          (setq current-buffer-p t)
 +          (current-buffer))
 +         (t (get-buffer-create
 +             (if asynchronous
 +                 "*Async Shell Command*"
 +               "*Shell Command Output*")))))
 +       (error-buffer
 +        (cond
 +         ((bufferp error-buffer) error-buffer)
 +         ((stringp error-buffer) (get-buffer-create error-buffer))))
 +       (buffer
 +        (if (and (not asynchronous) error-buffer)
 +            (with-parsed-tramp-file-name default-directory nil
 +              (list output-buffer (tramp-make-tramp-temp-file v)))
 +          output-buffer))
 +       (p (get-buffer-process output-buffer)))
 +
 +    ;; Check whether there is another process running.  Tramp does not
 +    ;; support 2 (asynchronous) processes in parallel.
 +    (when p
 +      (if (yes-or-no-p "A command is running.  Kill it? ")
 +        (ignore-errors (kill-process p))
 +      (error "Shell command in progress")))
 +
 +    (if current-buffer-p
 +      (progn
 +        (barf-if-buffer-read-only)
 +        (push-mark nil t))
 +      (with-current-buffer output-buffer
 +      (setq buffer-read-only nil)
 +      (erase-buffer)))
 +
 +    (if (and (not current-buffer-p) (integerp asynchronous))
 +      (prog1
 +          ;; Run the process.
 +          (apply 'start-file-process "*Async Shell*" buffer args)
 +        ;; Display output.
 +        (pop-to-buffer output-buffer)
 +        (setq mode-line-process '(":%s"))
 +        (shell-mode))
 +
 +      (prog1
 +        ;; Run the process.
 +        (apply 'process-file (car args) nil buffer nil (cdr args))
 +      ;; Insert error messages if they were separated.
 +      (when (listp buffer)
 +        (with-current-buffer error-buffer
 +          (insert-file-contents (cadr buffer)))
 +        (delete-file (cadr buffer)))
 +      (if current-buffer-p
 +          ;; This is like exchange-point-and-mark, but doesn't
 +          ;; activate the mark.  It is cleaner to avoid activation,
 +          ;; even though the command loop would deactivate the mark
 +          ;; because we inserted text.
 +          (goto-char (prog1 (mark t)
 +                       (set-marker (mark-marker) (point)
 +                                   (current-buffer))))
 +        ;; There's some output, display it.
 +        (when (with-current-buffer output-buffer (> (point-max) (point-min)))
 +          (if (functionp 'display-message-or-buffer)
 +              (tramp-compat-funcall 'display-message-or-buffer output-buffer)
 +            (pop-to-buffer output-buffer))))))))
 +
 +(defun tramp-sh-handle-file-local-copy (filename)
 +  "Like `file-local-copy' for Tramp files."
 +  (with-parsed-tramp-file-name filename nil
 +    (unless (file-exists-p filename)
 +      (tramp-error
 +       v 'file-error
 +       "Cannot make local copy of non-existing file `%s'" filename))
 +
 +    (let* ((size (nth 7 (file-attributes (file-truename filename))))
 +         (rem-enc (tramp-get-inline-coding v "remote-encoding" size))
 +         (loc-dec (tramp-get-inline-coding v "local-decoding" size))
 +         (tmpfile (tramp-compat-make-temp-file filename)))
 +
 +      (condition-case err
 +        (cond
 +         ;; `copy-file' handles direct copy and out-of-band methods.
 +         ((or (tramp-local-host-p v)
 +              (tramp-method-out-of-band-p v size))
 +          (copy-file filename tmpfile t t))
 +
 +         ;; Use inline encoding for file transfer.
 +         (rem-enc
 +          (save-excursion
 +            (with-progress-reporter
 +             v 3 (format "Encoding remote file %s" filename)
 +             (tramp-barf-unless-okay
 +              v (format rem-enc (tramp-shell-quote-argument localname))
 +              "Encoding remote file failed"))
 +
 +            (if (functionp loc-dec)
 +                ;; If local decoding is a function, we call it.  We
 +                ;; must disable multibyte, because
 +                ;; `uudecode-decode-region' doesn't handle it
 +                ;; correctly.
 +                (with-temp-buffer
 +                  (set-buffer-multibyte nil)
 +                  (insert-buffer-substring (tramp-get-buffer v))
 +                  (with-progress-reporter
 +                      v 3 (format "Decoding remote file %s with function %s"
 +                                  filename loc-dec)
 +                    (funcall loc-dec (point-min) (point-max))
 +                    ;; Unset `file-name-handler-alist'.  Otherwise,
 +                    ;; epa-file gets confused.
 +                    (let (file-name-handler-alist
 +                          (coding-system-for-write 'binary))
 +                      (write-region (point-min) (point-max) tmpfile))))
 +
 +              ;; If tramp-decoding-function is not defined for this
 +              ;; method, we invoke tramp-decoding-command instead.
 +              (let ((tmpfile2 (tramp-compat-make-temp-file filename)))
 +                ;; Unset `file-name-handler-alist'.  Otherwise,
 +                ;; epa-file gets confused.
 +                (let (file-name-handler-alist
 +                      (coding-system-for-write 'binary))
 +                  (write-region (point-min) (point-max) tmpfile2))
 +                (with-progress-reporter
 +                    v 3 (format "Decoding remote file %s with command %s"
 +                                filename loc-dec)
 +                  (unwind-protect
 +                      (tramp-call-local-coding-command
 +                       loc-dec tmpfile2 tmpfile)
 +                    (delete-file tmpfile2)))))
 +
 +            ;; Set proper permissions.
 +            (set-file-modes tmpfile (tramp-default-file-modes filename))
 +            ;; Set local user ownership.
 +            (tramp-set-file-uid-gid tmpfile)))
 +
 +         ;; Oops, I don't know what to do.
 +         (t (tramp-error
 +             v 'file-error "Wrong method specification for `%s'" method)))
 +
 +      ;; Error handling.
 +      ((error quit)
 +       (delete-file tmpfile)
 +       (signal (car err) (cdr err))))
 +
 +      (run-hooks 'tramp-handle-file-local-copy-hook)
 +      tmpfile)))
 +
 +;; This is needed for XEmacs only.  Code stolen from files.el.
 +(defun tramp-sh-handle-insert-file-contents-literally
 +  (filename &optional visit beg end replace)
 +  "Like `insert-file-contents-literally' for Tramp files."
 +  (let ((format-alist nil)
 +      (after-insert-file-functions nil)
 +      (coding-system-for-read 'no-conversion)
 +      (coding-system-for-write 'no-conversion)
 +      (find-buffer-file-type-function
 +       (if (fboundp 'find-buffer-file-type)
 +           (symbol-function 'find-buffer-file-type)
 +         nil))
 +      (inhibit-file-name-handlers '(jka-compr-handler image-file-handler))
 +      (inhibit-file-name-operation 'insert-file-contents))
 +    (unwind-protect
 +      (progn
 +        (fset 'find-buffer-file-type (lambda (filename) t))
 +        (insert-file-contents filename visit beg end replace))
 +      ;; Save exit.
 +      (if find-buffer-file-type-function
 +        (fset 'find-buffer-file-type find-buffer-file-type-function)
 +      (fmakunbound 'find-buffer-file-type)))))
 +
 +(defun tramp-sh-handle-make-auto-save-file-name ()
 +  "Like `make-auto-save-file-name' for Tramp files.
 +Returns a file name in `tramp-auto-save-directory' for autosaving this file."
 +  (let ((tramp-auto-save-directory tramp-auto-save-directory)
 +      (buffer-file-name
 +       (tramp-subst-strs-in-string
 +        '(("_" . "|")
 +          ("/" . "_a")
 +          (":" . "_b")
 +          ("|" . "__")
 +          ("[" . "_l")
 +          ("]" . "_r"))
 +        (buffer-file-name))))
 +    ;; File name must be unique.  This is ensured with Emacs 22 (see
 +    ;; UNIQUIFY element of `auto-save-file-name-transforms'); but for
 +    ;; all other cases we must do it ourselves.
 +    (when (boundp 'auto-save-file-name-transforms)
 +      (mapc
 +       (lambda (x)
 +       (when (and (string-match (car x) buffer-file-name)
 +                  (not (car (cddr x))))
 +         (setq tramp-auto-save-directory
 +               (or tramp-auto-save-directory
 +                   (tramp-compat-temporary-file-directory)))))
 +       (symbol-value 'auto-save-file-name-transforms)))
 +    ;; Create directory.
 +    (when tramp-auto-save-directory
 +      (setq buffer-file-name
 +          (expand-file-name buffer-file-name tramp-auto-save-directory))
 +      (unless (file-exists-p tramp-auto-save-directory)
 +      (make-directory tramp-auto-save-directory t)))
 +    ;; Run plain `make-auto-save-file-name'.  There might be an advice when
 +    ;; it is not a magic file name operation (since Emacs 22).
 +    ;; We must deactivate it temporarily.
 +    (if (not (ad-is-active 'make-auto-save-file-name))
 +      (tramp-run-real-handler 'make-auto-save-file-name nil)
 +      ;; else
 +      (ad-deactivate 'make-auto-save-file-name)
 +      (prog1
 +       (tramp-run-real-handler 'make-auto-save-file-name nil)
 +       (ad-activate 'make-auto-save-file-name)))))
 +
 +;; CCC grok LOCKNAME
 +(defun tramp-sh-handle-write-region
 +  (start end filename &optional append visit lockname confirm)
 +  "Like `write-region' for Tramp files."
 +  (setq filename (expand-file-name filename))
 +  (with-parsed-tramp-file-name filename nil
 +    ;; Following part commented out because we don't know what to do about
 +    ;; file locking, and it does not appear to be a problem to ignore it.
 +    ;; Ange-ftp ignores it, too.
 +    ;;  (when (and lockname (stringp lockname))
 +    ;;    (setq lockname (expand-file-name lockname)))
 +    ;;  (unless (or (eq lockname nil)
 +    ;;              (string= lockname filename))
 +    ;;    (error
 +    ;;     "tramp-sh-handle-write-region: LOCKNAME must be nil or equal FILENAME"))
 +
 +    ;; XEmacs takes a coding system as the seventh argument, not `confirm'.
 +    (when (and (not (featurep 'xemacs)) confirm (file-exists-p filename))
 +      (unless (y-or-n-p (format "File %s exists; overwrite anyway? " filename))
 +      (tramp-error v 'file-error "File not overwritten")))
 +
 +    (let ((uid (or (nth 2 (tramp-compat-file-attributes filename 'integer))
 +                 (tramp-get-remote-uid v 'integer)))
 +        (gid (or (nth 3 (tramp-compat-file-attributes filename 'integer))
 +                 (tramp-get-remote-gid v 'integer))))
 +
 +      (if (and (tramp-local-host-p v)
 +             ;; `file-writable-p' calls `file-expand-file-name'.  We
 +             ;; cannot use `tramp-run-real-handler' therefore.
 +             (let (file-name-handler-alist)
 +               (and
 +                (file-writable-p (file-name-directory localname))
 +                (or (file-directory-p localname)
 +                    (file-writable-p localname)))))
 +        ;; Short track: if we are on the local host, we can run directly.
 +        (tramp-run-real-handler
 +         'write-region
 +         (list start end localname append 'no-message lockname confirm))
 +
 +      (let ((modes (save-excursion (tramp-default-file-modes filename)))
 +            ;; We use this to save the value of
 +            ;; `last-coding-system-used' after writing the tmp
 +            ;; file.  At the end of the function, we set
 +            ;; `last-coding-system-used' to this saved value.  This
 +            ;; way, any intermediary coding systems used while
 +            ;; talking to the remote shell or suchlike won't hose
 +            ;; this variable.  This approach was snarfed from
 +            ;; ange-ftp.el.
 +            coding-system-used
 +            ;; Write region into a tmp file.  This isn't really
 +            ;; needed if we use an encoding function, but currently
 +            ;; we use it always because this makes the logic
 +            ;; simpler.
 +            (tmpfile (or tramp-temp-buffer-file-name
 +                         (tramp-compat-make-temp-file filename))))
 +
 +        ;; If `append' is non-nil, we copy the file locally, and let
 +        ;; the native `write-region' implementation do the job.
 +        (when append (copy-file filename tmpfile 'ok))
 +
 +        ;; We say `no-message' here because we don't want the
 +        ;; visited file modtime data to be clobbered from the temp
 +        ;; file.  We call `set-visited-file-modtime' ourselves later
 +        ;; on.  We must ensure that `file-coding-system-alist'
 +        ;; matches `tmpfile'.
 +        (let (file-name-handler-alist
 +              (file-coding-system-alist
 +               (tramp-find-file-name-coding-system-alist filename tmpfile)))
 +          (condition-case err
 +              (tramp-run-real-handler
 +               'write-region
 +               (list start end tmpfile append 'no-message lockname confirm))
 +            ((error quit)
 +             (setq tramp-temp-buffer-file-name nil)
 +             (delete-file tmpfile)
 +             (signal (car err) (cdr err))))
 +
 +          ;; Now, `last-coding-system-used' has the right value.  Remember it.
 +          (when (boundp 'last-coding-system-used)
 +            (setq coding-system-used
 +                  (symbol-value 'last-coding-system-used))))
 +
 +        ;; The permissions of the temporary file should be set.  If
 +        ;; filename does not exist (eq modes nil) it has been
 +        ;; renamed to the backup file.  This case `save-buffer'
 +        ;; handles permissions.
 +        ;; Ensure, that it is still readable.
 +        (when modes
 +          (set-file-modes
 +           tmpfile
 +           (logior (or modes 0) (tramp-compat-octal-to-decimal "0400"))))
 +
 +        ;; This is a bit lengthy due to the different methods
 +        ;; possible for file transfer.  First, we check whether the
 +        ;; method uses an rcp program.  If so, we call it.
 +        ;; Otherwise, both encoding and decoding command must be
 +        ;; specified.  However, if the method _also_ specifies an
 +        ;; encoding function, then that is used for encoding the
 +        ;; contents of the tmp file.
 +        (let* ((size (nth 7 (file-attributes tmpfile)))
 +               (rem-dec (tramp-get-inline-coding v "remote-decoding" size))
 +               (loc-enc (tramp-get-inline-coding v "local-encoding" size)))
 +          (cond
 +           ;; `copy-file' handles direct copy and out-of-band methods.
 +           ((or (tramp-local-host-p v)
 +                (tramp-method-out-of-band-p v size))
 +            (if (and (not (stringp start))
 +                     (= (or end (point-max)) (point-max))
 +                     (= (or start (point-min)) (point-min))
 +                     (tramp-get-method-parameter
 +                      method 'tramp-copy-keep-tmpfile))
 +                (progn
 +                  (setq tramp-temp-buffer-file-name tmpfile)
 +                  (condition-case err
 +                      ;; We keep the local file for performance
 +                      ;; reasons, useful for "rsync".
 +                      (copy-file tmpfile filename t)
 +                    ((error quit)
 +                     (setq tramp-temp-buffer-file-name nil)
 +                     (delete-file tmpfile)
 +                     (signal (car err) (cdr err)))))
 +              (setq tramp-temp-buffer-file-name nil)
 +              ;; Don't rename, in order to keep context in SELinux.
 +              (unwind-protect
 +                  (copy-file tmpfile filename t)
 +                (delete-file tmpfile))))
 +
 +           ;; Use inline file transfer.
 +           (rem-dec
 +            ;; Encode tmpfile.
 +            (unwind-protect
 +                (with-temp-buffer
 +                  (set-buffer-multibyte nil)
 +                  ;; Use encoding function or command.
 +                  (if (functionp loc-enc)
 +                      (with-progress-reporter
 +                          v 3 (format "Encoding region using function `%s'"
 +                                      loc-enc)
 +                        (let ((coding-system-for-read 'binary))
 +                          (insert-file-contents-literally tmpfile))
 +                        ;; The following `let' is a workaround for the
 +                        ;; base64.el that comes with pgnus-0.84.  If
 +                        ;; both of the following conditions are
 +                        ;; satisfied, it tries to write to a local
 +                        ;; file in default-directory, but at this
 +                        ;; point, default-directory is remote.
 +                        ;; (`call-process-region' can't write to
 +                        ;; remote files, it seems.)  The file in
 +                        ;; question is a tmp file anyway.
 +                        (let ((default-directory
 +                                (tramp-compat-temporary-file-directory)))
 +                          (funcall loc-enc (point-min) (point-max))))
 +
 +                    (with-progress-reporter
 +                        v 3 (format "Encoding region using command `%s'"
 +                                    loc-enc)
 +                      (unless (zerop (tramp-call-local-coding-command
 +                                      loc-enc tmpfile t))
 +                        (tramp-error
 +                         v 'file-error
 +                         (concat "Cannot write to `%s', "
 +                                 "local encoding command `%s' failed")
 +                         filename loc-enc))))
 +
 +                  ;; Send buffer into remote decoding command which
 +                  ;; writes to remote file.  Because this happens on
 +                  ;; the remote host, we cannot use the function.
 +                  (with-progress-reporter
 +                      v 3
 +                      (format "Decoding region into remote file %s" filename)
 +                    (goto-char (point-max))
 +                    (unless (bolp) (newline))
 +                    (tramp-send-command
 +                     v
 +                     (format
 +                      (concat rem-dec " <<'EOF'\n%sEOF")
 +                      (tramp-shell-quote-argument localname)
 +                      (buffer-string)))
 +                    (tramp-barf-unless-okay
 +                     v nil
 +                     "Couldn't write region to `%s', decode using `%s' failed"
 +                     filename rem-dec)
 +                    ;; When `file-precious-flag' is set, the region is
 +                    ;; written to a temporary file.  Check that the
 +                    ;; checksum is equal to that from the local tmpfile.
 +                    (when file-precious-flag
 +                      (erase-buffer)
 +                      (and
 +                       ;; cksum runs locally, if possible.
 +                       (zerop (tramp-compat-call-process "cksum" tmpfile t))
 +                       ;; cksum runs remotely.
 +                       (tramp-send-command-and-check
 +                        v
 +                        (format
 +                         "cksum <%s" (tramp-shell-quote-argument localname)))
 +                       ;; ... they are different.
 +                       (not
 +                        (string-equal
 +                         (buffer-string)
 +                         (with-current-buffer (tramp-get-buffer v)
 +                           (buffer-string))))
 +                       (tramp-error
 +                        v 'file-error
 +                        (concat "Couldn't write region to `%s',"
 +                                " decode using `%s' failed")
 +                        filename rem-dec)))))
 +
 +              ;; Save exit.
 +              (delete-file tmpfile)))
 +
 +           ;; That's not expected.
 +           (t
 +            (tramp-error
 +             v 'file-error
 +             (concat "Method `%s' should specify both encoding and "
 +                     "decoding command or an rcp program")
 +             method))))
 +
 +        ;; Make `last-coding-system-used' have the right value.
 +        (when coding-system-used
 +          (set 'last-coding-system-used coding-system-used))))
 +
 +      (tramp-flush-file-property v (file-name-directory localname))
 +      (tramp-flush-file-property v localname)
 +
 +      ;; We must protect `last-coding-system-used', now we have set it
 +      ;; to its correct value.
 +      (let (last-coding-system-used (need-chown t))
 +      ;; Set file modification time.
 +      (when (or (eq visit t) (stringp visit))
 +          (let ((file-attr (file-attributes filename)))
 +            (set-visited-file-modtime
 +             ;; We must pass modtime explicitely, because filename can
 +             ;; be different from (buffer-file-name), f.e. if
 +             ;; `file-precious-flag' is set.
 +             (nth 5 file-attr))
 +            (when (and (eq (nth 2 file-attr) uid)
 +                       (eq (nth 3 file-attr) gid))
 +              (setq need-chown nil))))
 +
 +      ;; Set the ownership.
 +        (when need-chown
 +          (tramp-set-file-uid-gid filename uid gid))
 +      (when (or (eq visit t) (null visit) (stringp visit))
 +        (tramp-message v 0 "Wrote %s" filename))
 +      (run-hooks 'tramp-handle-write-region-hook)))))
 +
 +(defvar tramp-vc-registered-file-names nil
 +  "List used to collect file names, which are checked during `vc-registered'.")
 +
 +;; VC backends check for the existence of various different special
 +;; files.  This is very time consuming, because every single check
 +;; requires a remote command (the file cache must be invalidated).
 +;; Therefore, we apply a kind of optimization.  We install the file
 +;; name handler `tramp-vc-file-name-handler', which does nothing but
 +;; remembers all file names for which `file-exists-p' or
 +;; `file-readable-p' has been applied.  A first run of `vc-registered'
 +;; is performed.  Afterwards, a script is applied for all collected
 +;; file names, using just one remote command.  The result of this
 +;; script is used to fill the file cache with actual values.  Now we
 +;; can reset the file name handlers, and we make a second run of
 +;; `vc-registered', which returns the expected result without sending
 +;; any other remote command.
 +(defun tramp-sh-handle-vc-registered (file)
 +  "Like `vc-registered' for Tramp files."
 +  (tramp-compat-with-temp-message ""
 +    (with-parsed-tramp-file-name file nil
 +      (with-progress-reporter
 +        v 3 (format "Checking `vc-registered' for %s" file)
 +
 +      ;; There could be new files, created by the vc backend.  We
 +      ;; cannot reuse the old cache entries, therefore.
 +      (let (tramp-vc-registered-file-names
 +            (remote-file-name-inhibit-cache (current-time))
 +            (file-name-handler-alist
 +             `((,tramp-file-name-regexp . tramp-vc-file-name-handler))))
 +
 +        ;; Here we collect only file names, which need an operation.
 +        (tramp-run-real-handler 'vc-registered (list file))
 +        (tramp-message v 10 "\n%s" tramp-vc-registered-file-names)
 +
 +        ;; Send just one command, in order to fill the cache.
 +        (when tramp-vc-registered-file-names
 +          (tramp-maybe-send-script
 +           v
 +           (format tramp-vc-registered-read-file-names
 +                   (tramp-get-file-exists-command v)
 +                   (format "%s -r" (tramp-get-test-command v)))
 +           "tramp_vc_registered_read_file_names")
 +
 +          (dolist
 +              (elt
 +               (tramp-send-command-and-read
 +                v
 +                (format
 +                 "tramp_vc_registered_read_file_names <<'EOF'\n%s\nEOF\n"
 +                 (mapconcat 'tramp-shell-quote-argument
 +                            tramp-vc-registered-file-names
 +                            "\n"))))
 +
 +            (tramp-set-file-property
 +             v (car elt) (cadr elt) (cadr (cdr elt))))))
 +
 +      ;; Second run.  Now all `file-exists-p' or `file-readable-p'
 +      ;; calls shall be answered from the file cache.  We unset
 +      ;; `process-file-side-effects' in order to keep the cache when
 +      ;; `process-file' calls appear.
 +      (let (process-file-side-effects)
 +        (tramp-run-real-handler 'vc-registered (list file)))))))
 +
 +;;;###tramp-autoload
 +(defun tramp-sh-file-name-handler (operation &rest args)
 +  "Invoke remote-shell Tramp file name handler.
 +Fall back to normal file name handler if no Tramp handler exists."
 +  (when (and tramp-locked (not tramp-locker))
 +    (setq tramp-locked nil)
 +    (signal 'file-error (list "Forbidden reentrant call of Tramp")))
 +  (let ((tl tramp-locked))
 +    (unwind-protect
 +      (progn
 +        (setq tramp-locked t)
 +        (let ((tramp-locker t))
 +          (save-match-data
 +            (let ((fn (assoc operation tramp-sh-file-name-handler-alist)))
 +              (if fn
 +                  (apply (cdr fn) args)
 +                (tramp-run-real-handler operation args))))))
 +      (setq tramp-locked tl))))
 +
 +(defun tramp-vc-file-name-handler (operation &rest args)
 +  "Invoke special file name handler, which collects files to be handled."
 +  (save-match-data
 +    (let ((filename
 +         (tramp-replace-environment-variables
 +          (apply 'tramp-file-name-for-operation operation args)))
 +        (fn (assoc operation tramp-sh-file-name-handler-alist)))
 +      (with-parsed-tramp-file-name filename nil
 +      (cond
 +       ;; That's what we want: file names, for which checks are
 +       ;; applied.  We assume, that VC uses only `file-exists-p' and
 +       ;; `file-readable-p' checks; otherwise we must extend the
 +       ;; list.  We do not perform any action, but return nil, in
 +       ;; order to keep `vc-registered' running.
 +       ((and fn (memq operation '(file-exists-p file-readable-p)))
 +        (add-to-list 'tramp-vc-registered-file-names localname 'append)
 +        nil)
 +       ;; Tramp file name handlers like `expand-file-name'.  They
 +       ;; must still work.
 +       (fn
 +        (save-match-data (apply (cdr fn) args)))
 +       ;; Default file name handlers, we don't care.
 +       (t (tramp-run-real-handler operation args)))))))
 +
 +;;; Internal Functions:
 +
 +(defun tramp-maybe-send-script (vec script name)
 +  "Define in remote shell function NAME implemented as SCRIPT.
 +Only send the definition if it has not already been done."
 +  (let* ((p (tramp-get-connection-process vec))
 +       (scripts (tramp-get-connection-property p "scripts" nil)))
 +    (unless (member name scripts)
 +      (with-progress-reporter vec 5 (format "Sending script `%s'" name)
 +      ;; The script could contain a call of Perl.  This is masked with `%s'.
 +      (tramp-barf-unless-okay
 +       vec
 +       (format "%s () {\n%s\n}" name
 +               (format script (tramp-get-remote-perl vec)))
 +       "Script %s sending failed" name)
 +      (tramp-set-connection-property p "scripts" (cons name scripts))))))
 +
 +(defun tramp-set-auto-save ()
 +  (when (and ;; ange-ftp has its own auto-save mechanism
 +           (eq (tramp-find-foreign-file-name-handler (buffer-file-name))
 +               'tramp-sh-file-name-handler)
 +             auto-save-default)
 +    (auto-save-mode 1)))
 +(add-hook 'find-file-hooks 'tramp-set-auto-save t)
 +(add-hook 'tramp-unload-hook
 +        (lambda ()
 +          (remove-hook 'find-file-hooks 'tramp-set-auto-save)))
 +
 +(defun tramp-run-test (switch filename)
 +  "Run `test' on the remote system, given a SWITCH and a FILENAME.
 +Returns the exit code of the `test' program."
 +  (with-parsed-tramp-file-name filename nil
 +    (tramp-send-command-and-check
 +     v
 +     (format
 +      "%s %s %s"
 +      (tramp-get-test-command v)
 +      switch
 +      (tramp-shell-quote-argument localname)))))
 +
 +(defun tramp-run-test2 (format-string file1 file2)
 +  "Run `test'-like program on the remote system, given FILE1, FILE2.
 +FORMAT-STRING contains the program name, switches, and place holders.
 +Returns the exit code of the `test' program.  Barfs if the methods,
 +hosts, or files, disagree."
 +  (unless (tramp-equal-remote file1 file2)
 +    (with-parsed-tramp-file-name (if (tramp-tramp-file-p file1) file1 file2) nil
 +      (tramp-error
 +       v 'file-error
 +       "tramp-run-test2 only implemented for same method, user, host")))
 +  (with-parsed-tramp-file-name file1 v1
 +    (with-parsed-tramp-file-name file1 v2
 +      (tramp-send-command-and-check
 +       v1
 +       (format format-string
 +             (tramp-shell-quote-argument v1-localname)
 +             (tramp-shell-quote-argument v2-localname))))))
 +
 +(defun tramp-find-executable
 +  (vec progname dirlist &optional ignore-tilde ignore-path)
 +  "Searches for PROGNAME in $PATH and all directories mentioned in DIRLIST.
 +First arg VEC specifies the connection, PROGNAME is the program
 +to search for, and DIRLIST gives the list of directories to
 +search.  If IGNORE-TILDE is non-nil, directory names starting
 +with `~' will be ignored. If IGNORE-PATH is non-nil, searches
 +only in DIRLIST.
 +
 +Returns the absolute file name of PROGNAME, if found, and nil otherwise.
 +
 +This function expects to be in the right *tramp* buffer."
 +  (with-current-buffer (tramp-get-connection-buffer vec)
 +    (let (result)
 +      ;; Check whether the executable is in $PATH. "which(1)" does not
 +      ;; report always a correct error code; therefore we check the
 +      ;; number of words it returns.
 +      (unless ignore-path
 +      (tramp-send-command vec (format "which \\%s | wc -w" progname))
 +      (goto-char (point-min))
 +      (if (looking-at "^\\s-*1$")
 +          (setq result (concat "\\" progname))))
 +      (unless result
 +      (when ignore-tilde
 +        ;; Remove all ~/foo directories from dirlist.  In XEmacs,
 +        ;; `remove' is in CL, and we want to avoid CL dependencies.
 +        (let (newdl d)
 +          (while dirlist
 +            (setq d (car dirlist))
 +            (setq dirlist (cdr dirlist))
 +            (unless (char-equal ?~ (aref d 0))
 +              (setq newdl (cons d newdl))))
 +          (setq dirlist (nreverse newdl))))
 +      (tramp-send-command
 +       vec
 +       (format (concat "while read d; "
 +                       "do if test -x $d/%s -a -f $d/%s; "
 +                       "then echo tramp_executable $d/%s; "
 +                       "break; fi; done <<'EOF'\n"
 +                       "%s\nEOF")
 +               progname progname progname (mapconcat 'identity dirlist "\n")))
 +      (goto-char (point-max))
 +      (when (search-backward "tramp_executable " nil t)
 +        (skip-chars-forward "^ ")
 +        (skip-chars-forward " ")
 +        (setq result (buffer-substring (point) (point-at-eol)))))
 +    result)))
 +
 +(defun tramp-set-remote-path (vec)
 +  "Sets the remote environment PATH to existing directories.
 +I.e., for each directory in `tramp-remote-path', it is tested
 +whether it exists and if so, it is added to the environment
 +variable PATH."
 +  (tramp-message vec 5 (format "Setting $PATH environment variable"))
 +  (tramp-send-command
 +   vec (format "PATH=%s; export PATH"
 +             (mapconcat 'identity (tramp-get-remote-path vec) ":"))))
 +
 +;; ------------------------------------------------------------
 +;; -- Communication with external shell --
 +;; ------------------------------------------------------------
 +
 +(defun tramp-find-file-exists-command (vec)
 +  "Find a command on the remote host for checking if a file exists.
 +Here, we are looking for a command which has zero exit status if the
 +file exists and nonzero exit status otherwise."
 +  (let ((existing "/")
 +        (nonexisting
 +       (tramp-shell-quote-argument "/ this file does not exist "))
 +      result)
 +    ;; The algorithm is as follows: we try a list of several commands.
 +    ;; For each command, we first run `$cmd /' -- this should return
 +    ;; true, as the root directory always exists.  And then we run
 +    ;; `$cmd /this\ file\ does\ not\ exist ', hoping that the file indeed
 +    ;; does not exist.  This should return false.  We use the first
 +    ;; command we find that seems to work.
 +    ;; The list of commands to try is as follows:
 +    ;; `ls -d'            This works on most systems, but NetBSD 1.4
 +    ;;                    has a bug: `ls' always returns zero exit
 +    ;;                    status, even for files which don't exist.
 +    ;; `test -e'          Some Bourne shells have a `test' builtin
 +    ;;                    which does not know the `-e' option.
 +    ;; `/bin/test -e'     For those, the `test' binary on disk normally
 +    ;;                    provides the option.  Alas, the binary
 +    ;;                    is sometimes `/bin/test' and sometimes it's
 +    ;;                    `/usr/bin/test'.
 +    ;; `/usr/bin/test -e' In case `/bin/test' does not exist.
 +    (unless (or
 +             (and (setq result (format "%s -e" (tramp-get-test-command vec)))
 +                (tramp-send-command-and-check
 +                 vec (format "%s %s" result existing))
 +                  (not (tramp-send-command-and-check
 +                      vec (format "%s %s" result nonexisting))))
 +             (and (setq result "/bin/test -e")
 +                (tramp-send-command-and-check
 +                 vec (format "%s %s" result existing))
 +                  (not (tramp-send-command-and-check
 +                      vec (format "%s %s" result nonexisting))))
 +             (and (setq result "/usr/bin/test -e")
 +                (tramp-send-command-and-check
 +                 vec (format "%s %s" result existing))
 +                  (not (tramp-send-command-and-check
 +                      vec (format "%s %s" result nonexisting))))
 +             (and (setq result (format "%s -d" (tramp-get-ls-command vec)))
 +                (tramp-send-command-and-check
 +                 vec (format "%s %s" result existing))
 +                  (not (tramp-send-command-and-check
 +                      vec (format "%s %s" result nonexisting)))))
 +      (tramp-error
 +       vec 'file-error "Couldn't find command to check if file exists"))
 +    result))
 +
 +(defun tramp-open-shell (vec shell)
 +  "Opens shell SHELL."
 +  (with-progress-reporter vec 5 (format "Opening remote shell `%s'" shell)
 +    ;; Find arguments for this shell.
 +    (let ((tramp-end-of-output tramp-initial-end-of-output)
 +        (alist tramp-sh-extra-args)
 +        item extra-args)
 +      (while (and alist (null extra-args))
 +      (setq item (pop alist))
 +      (when (string-match (car item) shell)
 +        (setq extra-args (cdr item))))
 +      (when extra-args (setq shell (concat shell " " extra-args)))
 +      (tramp-send-command
 +       vec (format "exec env ENV='' PROMPT_COMMAND='' PS1=%s PS2='' PS3='' %s"
 +                 (shell-quote-argument tramp-end-of-output) shell)
 +       t))
 +    ;; Setting prompts.
 +    (tramp-send-command
 +     vec (format "PS1=%s" (shell-quote-argument tramp-end-of-output)) t)
 +    (tramp-send-command vec "PS2=''" t)
 +    (tramp-send-command vec "PS3=''" t)
 +    (tramp-send-command vec "PROMPT_COMMAND=''" t)))
 +
 +(defun tramp-find-shell (vec)
 +  "Opens a shell on the remote host which groks tilde expansion."
 +  (unless (tramp-get-connection-property vec "remote-shell" nil)
 +    (let (shell)
 +      (with-current-buffer (tramp-get-buffer vec)
 +      (tramp-send-command vec "echo ~root" t)
 +      (cond
 +       ((or (string-match "^~root$" (buffer-string))
 +            ;; The default shell (ksh93) of OpenSolaris is buggy.
 +            (string-equal (tramp-get-connection-property vec "uname" "")
 +                          "SunOS 5.11"))
 +        (setq shell
 +              (or (tramp-find-executable
 +                   vec "bash" (tramp-get-remote-path vec) t t)
 +                  (tramp-find-executable
 +                   vec "ksh" (tramp-get-remote-path vec) t t)))
 +        (unless shell
 +          (tramp-error
 +           vec 'file-error
 +           "Couldn't find a shell which groks tilde expansion"))
 +        (tramp-message
 +         vec 5 "Starting remote shell `%s' for tilde expansion" shell)
 +        (tramp-open-shell vec shell))
 +
 +       (t (tramp-message
 +           vec 5 "Remote `%s' groks tilde expansion, good"
 +           (tramp-set-connection-property
 +            vec "remote-shell"
 +            (tramp-get-method-parameter
 +             (tramp-file-name-method vec) 'tramp-remote-sh)))))))))
 +
 +;; Utility functions.
 +
 +(defun tramp-barf-if-no-shell-prompt (proc timeout &rest error-args)
 +  "Wait for shell prompt and barf if none appears.
 +Looks at process PROC to see if a shell prompt appears in TIMEOUT
 +seconds.  If not, it produces an error message with the given ERROR-ARGS."
 +  (unless
 +      (tramp-wait-for-regexp
 +       proc timeout
 +       (format
 +      "\\(%s\\|%s\\)\\'" shell-prompt-pattern tramp-shell-prompt-pattern))
 +    (apply 'tramp-error-with-buffer nil proc 'file-error error-args)))
 +
 +(defun tramp-open-connection-setup-interactive-shell (proc vec)
 +  "Set up an interactive shell.
 +Mainly sets the prompt and the echo correctly.  PROC is the shell
 +process to set up.  VEC specifies the connection."
 +  (let ((tramp-end-of-output tramp-initial-end-of-output))
 +    ;; It is useful to set the prompt in the following command because
 +    ;; some people have a setting for $PS1 which /bin/sh doesn't know
 +    ;; about and thus /bin/sh will display a strange prompt.  For
 +    ;; example, if $PS1 has "${CWD}" in the value, then ksh will
 +    ;; display the current working directory but /bin/sh will display
 +    ;; a dollar sign.  The following command line sets $PS1 to a sane
 +    ;; value, and works under Bourne-ish shells as well as csh-like
 +    ;; shells.  Daniel Pittman reports that the unusual positioning of
 +    ;; the single quotes makes it work under `rc', too.  We also unset
 +    ;; the variable $ENV because that is read by some sh
 +    ;; implementations (eg, bash when called as sh) on startup; this
 +    ;; way, we avoid the startup file clobbering $PS1.  $PROMPT_COMMAND
 +    ;; is another way to set the prompt in /bin/bash, it must be
 +    ;; discarded as well.
 +    (tramp-open-shell
 +     vec
 +     (tramp-get-method-parameter (tramp-file-name-method vec) 'tramp-remote-sh))
 +
 +    ;; Disable echo.
 +    (tramp-message vec 5 "Setting up remote shell environment")
 +    (tramp-send-command vec "stty -inlcr -echo kill '^U' erase '^H'" t)
 +    ;; Check whether the echo has really been disabled.  Some
 +    ;; implementations, like busybox of embedded GNU/Linux, don't
 +    ;; support disabling.
 +    (tramp-send-command vec "echo foo" t)
 +    (with-current-buffer (process-buffer proc)
 +      (goto-char (point-min))
 +      (when (looking-at "echo foo")
 +      (tramp-set-connection-property proc "remote-echo" t)
 +      (tramp-message vec 5 "Remote echo still on. Ok.")
 +      ;; Make sure backspaces and their echo are enabled and no line
 +      ;; width magic interferes with them.
 +      (tramp-send-command vec "stty icanon erase ^H cols 32767" t))))
 +
 +  (tramp-message vec 5 "Setting shell prompt")
 +  (tramp-send-command
 +   vec (format "PS1=%s" (shell-quote-argument tramp-end-of-output)) t)
 +  (tramp-send-command vec "PS2=''" t)
 +  (tramp-send-command vec "PS3=''" t)
 +  (tramp-send-command vec "PROMPT_COMMAND=''" t)
 +
 +  ;; Try to set up the coding system correctly.
 +  ;; CCC this can't be the right way to do it.  Hm.
 +  (tramp-message vec 5 "Determining coding system")
 +  (tramp-send-command vec "echo foo ; echo bar" t)
 +  (with-current-buffer (process-buffer proc)
 +    (goto-char (point-min))
 +    (if (featurep 'mule)
 +      ;; Use MULE to select the right EOL convention for communicating
 +      ;; with the process.
 +      (let* ((cs (or (tramp-compat-funcall 'process-coding-system proc)
 +                     (cons 'undecided 'undecided)))
 +             cs-decode cs-encode)
 +        (when (symbolp cs) (setq cs (cons cs cs)))
 +        (setq cs-decode (car cs))
 +        (setq cs-encode (cdr cs))
 +        (unless cs-decode (setq cs-decode 'undecided))
 +        (unless cs-encode (setq cs-encode 'undecided))
 +        (setq cs-encode (tramp-compat-coding-system-change-eol-conversion
 +                         cs-encode 'unix))
 +        (when (search-forward "\r" nil t)
 +          (setq cs-decode (tramp-compat-coding-system-change-eol-conversion
 +                           cs-decode 'dos)))
 +        (tramp-compat-funcall
 +         'set-buffer-process-coding-system cs-decode cs-encode)
 +        (tramp-message
 +         vec 5 "Setting coding system to `%s' and `%s'" cs-decode cs-encode))
 +      ;; Look for ^M and do something useful if found.
 +      (when (search-forward "\r" nil t)
 +      ;; We have found a ^M but cannot frob the process coding system
 +      ;; because we're running on a non-MULE Emacs.  Let's try
 +      ;; stty, instead.
 +      (tramp-send-command vec "stty -onlcr" t))))
 +
 +  (tramp-send-command vec "set +o vi +o emacs" t)
 +
 +  ;; Check whether the output of "uname -sr" has been changed.  If
 +  ;; yes, this is a strong indication that we must expire all
 +  ;; connection properties.  We start again with
 +  ;; `tramp-maybe-open-connection', it will be catched there.
 +  (tramp-message vec 5 "Checking system information")
 +  (let ((old-uname (tramp-get-connection-property vec "uname" nil))
 +      (new-uname
 +       (tramp-set-connection-property
 +        vec "uname"
 +        (tramp-send-command-and-read vec "echo \\\"`uname -sr`\\\""))))
 +    (when (and (stringp old-uname) (not (string-equal old-uname new-uname)))
 +      (with-current-buffer (tramp-get-debug-buffer vec)
 +      ;; Keep the debug buffer.
 +      (rename-buffer
 +       (generate-new-buffer-name tramp-temp-buffer-name) 'unique)
 +      (tramp-cleanup-connection vec)
 +      (if (= (point-min) (point-max))
 +          (kill-buffer nil)
 +        (rename-buffer (tramp-debug-buffer-name vec) 'unique))
 +      ;; We call `tramp-get-buffer' in order to keep the debug buffer.
 +      (tramp-get-buffer vec)
 +      (tramp-message
 +       vec 3
 +       "Connection reset, because remote host changed from `%s' to `%s'"
 +       old-uname new-uname)
 +      (throw 'uname-changed (tramp-maybe-open-connection vec)))))
 +
 +  ;; Check whether the remote host suffers from buggy
 +  ;; `send-process-string'.  This is known for FreeBSD (see comment in
 +  ;; `send_process', file process.c).  I've tested sending 624 bytes
 +  ;; successfully, sending 625 bytes failed.  Emacs makes a hack when
 +  ;; this host type is detected locally.  It cannot handle remote
 +  ;; hosts, though.
 +  (with-connection-property proc "chunksize"
 +    (cond
 +     ((and (integerp tramp-chunksize) (> tramp-chunksize 0))
 +      tramp-chunksize)
 +     (t
 +      (tramp-message
 +       vec 5 "Checking remote host type for `send-process-string' bug")
 +      (if (string-match
 +         "^FreeBSD" (tramp-get-connection-property vec "uname" ""))
 +        500 0))))
 +
 +  ;; Set remote PATH variable.
 +  (tramp-set-remote-path vec)
 +
 +  ;; Search for a good shell before searching for a command which
 +  ;; checks if a file exists. This is done because Tramp wants to use
 +  ;; "test foo; echo $?" to check if various conditions hold, and
 +  ;; there are buggy /bin/sh implementations which don't execute the
 +  ;; "echo $?"  part if the "test" part has an error.  In particular,
 +  ;; the OpenSolaris /bin/sh is a problem.  There are also other
 +  ;; problems with /bin/sh of OpenSolaris, like redirection of stderr
 +  ;; in function declarations, or changing HISTFILE in place.
 +  ;; Therefore, OpenSolaris' /bin/sh is replaced by bash, when
 +  ;; detected.
 +  (tramp-find-shell vec)
 +
 +  ;; Disable unexpected output.
 +  (tramp-send-command vec "mesg n; biff n" t)
 +
 +  ;; IRIX64 bash expands "!" even when in single quotes.  This
 +  ;; destroys our shell functions, we must disable it.  See
 +  ;; <http://stackoverflow.com/questions/3291692/irix-bash-shell-expands-expression-in-single-quotes-yet-shouldnt>.
 +  (when (string-match "^IRIX64" (tramp-get-connection-property vec "uname" ""))
 +    (tramp-send-command vec "set +H" t))
 +
 +  ;; On BSD-like systems, ?\t is expanded to spaces.  Suppress this.
 +  (when (string-match "BSD\\|Darwin"
 +                    (tramp-get-connection-property vec "uname" ""))
 +    (tramp-send-command vec "stty -oxtabs" t))
 +
 +  ;; Set `remote-tty' process property.
 +  (ignore-errors
 +    (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"")))
 +      (unless (zerop (length tty))
 +      (tramp-compat-process-put proc 'remote-tty tty))))
 +
 +  ;; Dump stty settings in the traces.
 +  (when (>= tramp-verbose 9)
 +    (tramp-send-command vec "stty -a" t))
 +
 +  ;; Set the environment.
 +  (tramp-message vec 5 "Setting default environment")
 +
 +  (let ((env (copy-sequence tramp-remote-process-environment))
 +      unset item)
 +    (while env
 +      (setq item (tramp-compat-split-string (car env) "="))
 +      (setcdr item (mapconcat 'identity (cdr item) "="))
 +      (if (and (stringp (cdr item)) (not (string-equal (cdr item) "")))
 +        (tramp-send-command
 +         vec (format "%s=%s; export %s" (car item) (cdr item) (car item)) t)
 +      (push (car item) unset))
 +      (setq env (cdr env)))
 +    (when unset
 +      (tramp-send-command
 +       vec (format "unset %s" (mapconcat 'identity unset " ")) t))))
 +
 +;; CCC: We should either implement a Perl version of base64 encoding
 +;; and decoding.  Then we just use that in the last item.  The other
 +;; alternative is to use the Perl version of UU encoding.  But then
 +;; we need a Lisp version of uuencode.
 +;;
 +;; Old text from documentation of tramp-methods:
 +;; Using a uuencode/uudecode inline method is discouraged, please use one
 +;; of the base64 methods instead since base64 encoding is much more
 +;; reliable and the commands are more standardized between the different
 +;; Unix versions.  But if you can't use base64 for some reason, please
 +;; note that the default uudecode command does not work well for some
 +;; Unices, in particular AIX and Irix.  For AIX, you might want to use
 +;; the following command for uudecode:
 +;;
 +;;     sed '/^begin/d;/^[` ]$/d;/^end/d' | iconv -f uucode -t ISO8859-1
 +;;
 +;; For Irix, no solution is known yet.
 +
 +(autoload 'uudecode-decode-region "uudecode")
 +
 +(defconst tramp-local-coding-commands
 +  '((b64 base64-encode-region base64-decode-region)
 +    (uu  tramp-uuencode-region uudecode-decode-region)
 +    (pack
 +     "perl -e 'binmode STDIN; binmode STDOUT; print pack(q{u*}, join q{}, <>)'"
 +     "perl -e 'binmode STDIN; binmode STDOUT; print unpack(q{u*}, join q{}, <>)'"))
 +  "List of local coding commands for inline transfer.
 +Each item is a list that looks like this:
 +
 +\(FORMAT ENCODING DECODING\)
 +
 +FORMAT is  symbol describing the encoding/decoding format.  It can be
 +`b64' for base64 encoding, `uu' for uu encoding, or `pack' for simple packing.
 +
 +ENCODING and DECODING can be strings, giving commands, or symbols,
 +giving functions.  If they are strings, then they can contain
 +the \"%s\" format specifier.  If that specifier is present, the input
 +filename will be put into the command line at that spot.  If the
 +specifier is not present, the input should be read from standard
 +input.
 +
 +If they are functions, they will be called with two arguments, start
 +and end of region, and are expected to replace the region contents
 +with the encoded or decoded results, respectively.")
 +
 +(defconst tramp-remote-coding-commands
 +  '((b64 "base64" "base64 -d -i")
 +    ;; "-i" is more robust with older base64 from GNU coreutils.
 +    ;; However, I don't know whether all base64 versions do supports
 +    ;; this option.
 +    (b64 "base64" "base64 -d")
 +    (b64 "mimencode -b" "mimencode -u -b")
 +    (b64 "mmencode -b" "mmencode -u -b")
 +    (b64 "recode data..base64" "recode base64..data")
 +    (b64 tramp-perl-encode-with-module tramp-perl-decode-with-module)
 +    (b64 tramp-perl-encode tramp-perl-decode)
 +    (uu  "uuencode xxx" "uudecode -o /dev/stdout")
 +    (uu  "uuencode xxx" "uudecode -o -")
 +    (uu  "uuencode xxx" "uudecode -p")
 +    (uu  "uuencode xxx" tramp-uudecode)
 +    (pack
 +     "perl -e 'binmode STDIN; binmode STDOUT; print pack(q{u*}, join q{}, <>)'"
 +     "perl -e 'binmode STDIN; binmode STDOUT; print unpack(q{u*}, join q{}, <>)'"))
 +  "List of remote coding commands for inline transfer.
 +Each item is a list that looks like this:
 +
 +\(FORMAT ENCODING DECODING\)
 +
 +FORMAT is  symbol describing the encoding/decoding format.  It can be
 +`b64' for base64 encoding, `uu' for uu encoding, or `pack' for simple packing.
 +
 +ENCODING and DECODING can be strings, giving commands, or symbols,
 +giving variables.  If they are strings, then they can contain
 +the \"%s\" format specifier.  If that specifier is present, the input
 +filename will be put into the command line at that spot.  If the
 +specifier is not present, the input should be read from standard
 +input.
 +
 +If they are variables, this variable is a string containing a Perl
 +implementation for this functionality.  This Perl program will be transferred
 +to the remote host, and it is available as shell function with the same name.")
 +
 +(defun tramp-find-inline-encoding (vec)
 +  "Find an inline transfer encoding that works.
 +Goes through the list `tramp-local-coding-commands' and
 +`tramp-remote-coding-commands'."
 +  (save-excursion
 +    (let ((local-commands tramp-local-coding-commands)
 +        (magic "xyzzy")
 +        loc-enc loc-dec rem-enc rem-dec litem ritem found)
 +      (while (and local-commands (not found))
 +      (setq litem (pop local-commands))
 +      (catch 'wont-work-local
 +        (let ((format (nth 0 litem))
 +              (remote-commands tramp-remote-coding-commands))
 +          (setq loc-enc (nth 1 litem))
 +          (setq loc-dec (nth 2 litem))
 +          ;; If the local encoder or decoder is a string, the
 +          ;; corresponding command has to work locally.
 +          (if (not (stringp loc-enc))
 +              (tramp-message
 +               vec 5 "Checking local encoding function `%s'" loc-enc)
 +            (tramp-message
 +             vec 5 "Checking local encoding command `%s' for sanity" loc-enc)
 +            (unless (zerop (tramp-call-local-coding-command
 +                            loc-enc nil nil))
 +              (throw 'wont-work-local nil)))
 +          (if (not (stringp loc-dec))
 +              (tramp-message
 +               vec 5 "Checking local decoding function `%s'" loc-dec)
 +            (tramp-message
 +             vec 5 "Checking local decoding command `%s' for sanity" loc-dec)
 +            (unless (zerop (tramp-call-local-coding-command
 +                            loc-dec nil nil))
 +              (throw 'wont-work-local nil)))
 +          ;; Search for remote coding commands with the same format
 +          (while (and remote-commands (not found))
 +            (setq ritem (pop remote-commands))
 +            (catch 'wont-work-remote
 +              (when (equal format (nth 0 ritem))
 +                (setq rem-enc (nth 1 ritem))
 +                (setq rem-dec (nth 2 ritem))
 +                ;; Check if remote encoding and decoding commands can be
 +                ;; called remotely with null input and output.  This makes
 +                ;; sure there are no syntax errors and the command is really
 +                ;; found.  Note that we do not redirect stdout to /dev/null,
 +                ;; for two reasons: when checking the decoding command, we
 +                ;; actually check the output it gives.  And also, when
 +                ;; redirecting "mimencode" output to /dev/null, then as root
 +                ;; it might change the permissions of /dev/null!
 +                (when (not (stringp rem-enc))
 +                  (let ((name (symbol-name rem-enc)))
 +                    (while (string-match (regexp-quote "-") name)
 +                      (setq name (replace-match "_" nil t name)))
 +                    (tramp-maybe-send-script vec (symbol-value rem-enc) name)
 +                    (setq rem-enc name)))
 +                (tramp-message
 +                 vec 5
 +                 "Checking remote encoding command `%s' for sanity" rem-enc)
 +                (unless (tramp-send-command-and-check
 +                         vec (format "%s </dev/null" rem-enc) t)
 +                  (throw 'wont-work-remote nil))
 +
 +                (when (not (stringp rem-dec))
 +                  (let ((name (symbol-name rem-dec)))
 +                    (while (string-match (regexp-quote "-") name)
 +                      (setq name (replace-match "_" nil t name)))
 +                    (tramp-maybe-send-script vec (symbol-value rem-dec) name)
 +                    (setq rem-dec name)))
 +                (tramp-message
 +                 vec 5
 +                 "Checking remote decoding command `%s' for sanity" rem-dec)
 +                (unless (tramp-send-command-and-check
 +                         vec
 +                         (format "echo %s | %s | %s" magic rem-enc rem-dec)
 +                         t)
 +                  (throw 'wont-work-remote nil))
 +
 +                (with-current-buffer (tramp-get-buffer vec)
 +                  (goto-char (point-min))
 +                  (unless (looking-at (regexp-quote magic))
 +                    (throw 'wont-work-remote nil)))
 +
 +                ;; `rem-enc' and `rem-dec' could be a string meanwhile.
 +                (setq rem-enc (nth 1 ritem))
 +                (setq rem-dec (nth 2 ritem))
 +                (setq found t)))))))
 +
 +      ;; Did we find something?
 +      (unless found
 +      (tramp-error
 +       vec 'file-error "Couldn't find an inline transfer encoding"))
 +
 +      ;; Set connection properties.
 +      (tramp-message vec 5 "Using local encoding `%s'" loc-enc)
 +      (tramp-set-connection-property vec "local-encoding" loc-enc)
 +      (tramp-message vec 5 "Using local decoding `%s'" loc-dec)
 +      (tramp-set-connection-property vec "local-decoding" loc-dec)
 +      (tramp-message vec 5 "Using remote encoding `%s'" rem-enc)
 +      (tramp-set-connection-property vec "remote-encoding" rem-enc)
 +      (tramp-message vec 5 "Using remote decoding `%s'" rem-dec)
 +      (tramp-set-connection-property vec "remote-decoding" rem-dec))))
 +
 +(defun tramp-call-local-coding-command (cmd input output)
 +  "Call the local encoding or decoding command.
 +If CMD contains \"%s\", provide input file INPUT there in command.
 +Otherwise, INPUT is passed via standard input.
 +INPUT can also be nil which means `/dev/null'.
 +OUTPUT can be a string (which specifies a filename), or t (which
 +means standard output and thus the current buffer), or nil (which
 +means discard it)."
 +  (tramp-compat-call-process
 +   tramp-encoding-shell
 +   (when (and input (not (string-match "%s" cmd))) input)
 +   (if (eq output t) t nil)
 +   nil
 +   tramp-encoding-command-switch
 +   (concat
 +    (if (string-match "%s" cmd) (format cmd input) cmd)
 +    (if (stringp output) (concat "> " output) ""))))
 +
 +(defconst tramp-inline-compress-commands
 +  '(("gzip" "gzip -d")
 +    ("bzip2" "bzip2 -d")
 +    ("compress" "compress -d"))
 +  "List of compress and decompress commands for inline transfer.
 +Each item is a list that looks like this:
 +
 +\(COMPRESS DECOMPRESS\)
 +
 +COMPRESS or DECOMPRESS are strings with the respective commands.")
 +
 +(defun tramp-find-inline-compress (vec)
 +  "Find an inline transfer compress command that works.
 +Goes through the list `tramp-inline-compress-commands'."
 +  (save-excursion
 +    (let ((commands tramp-inline-compress-commands)
 +        (magic "xyzzy")
 +        item compress decompress
 +        found)
 +      (while (and commands (not found))
 +      (catch 'next
 +        (setq item (pop commands)
 +              compress (nth 0 item)
 +              decompress (nth 1 item))
 +        (tramp-message
 +         vec 5
 +         "Checking local compress command `%s', `%s' for sanity"
 +         compress decompress)
 +        (unless (zerop (tramp-call-local-coding-command
 +                        (format "echo %s | %s | %s"
 +                                magic compress decompress) nil nil))
 +          (throw 'next nil))
 +        (tramp-message
 +         vec 5
 +         "Checking remote compress command `%s', `%s' for sanity"
 +         compress decompress)
 +        (unless (tramp-send-command-and-check
 +                 vec (format "echo %s | %s | %s" magic compress decompress) t)
 +          (throw 'next nil))
 +        (setq found t)))
 +
 +      ;; Did we find something?
 +      (if found
 +        (progn
 +          ;; Set connection properties.
 +          (tramp-message
 +           vec 5 "Using inline transfer compress command `%s'" compress)
 +          (tramp-set-connection-property vec "inline-compress" compress)
 +          (tramp-message
 +           vec 5 "Using inline transfer decompress command `%s'" decompress)
 +          (tramp-set-connection-property vec "inline-decompress" decompress))
 +
 +      (tramp-set-connection-property vec "inline-compress" nil)
 +      (tramp-set-connection-property vec "inline-decompress" nil)
 +      (tramp-message
 +       vec 2 "Couldn't find an inline transfer compress command")))))
 +
 +(defun tramp-compute-multi-hops (vec)
 +  "Expands VEC according to `tramp-default-proxies-alist'.
 +Gateway hops are already opened."
 +  (let ((target-alist `(,vec))
 +      (choices tramp-default-proxies-alist)
 +      item proxy)
 +
 +    ;; Look for proxy hosts to be passed.
 +    (while choices
 +      (setq item (pop choices)
 +          proxy (eval (nth 2 item)))
 +      (when (and
 +           ;; host
 +           (string-match (or (eval (nth 0 item)) "")
 +                         (or (tramp-file-name-host (car target-alist)) ""))
 +           ;; user
 +           (string-match (or (eval (nth 1 item)) "")
 +                         (or (tramp-file-name-user (car target-alist)) "")))
 +      (if (null proxy)
 +          ;; No more hops needed.
 +          (setq choices nil)
 +        ;; Replace placeholders.
 +        (setq proxy
 +              (format-spec
 +               proxy
 +               (format-spec-make
 +                ?u (or (tramp-file-name-user (car target-alist)) "")
 +                ?h (or (tramp-file-name-host (car target-alist)) ""))))
 +        (with-parsed-tramp-file-name proxy l
 +          ;; Add the hop.
 +          (add-to-list 'target-alist l)
 +          ;; Start next search.
 +          (setq choices tramp-default-proxies-alist)))))
 +
 +    ;; Handle gateways.
 +    (when (string-match
 +         (format
 +          "^\\(%s\\|%s\\)$" tramp-gw-tunnel-method tramp-gw-socks-method)
 +         (tramp-file-name-method (car target-alist)))
 +      (let ((gw (pop target-alist))
 +          (hop (pop target-alist)))
 +      ;; Is the method prepared for gateways?
 +      (unless (tramp-file-name-port hop)
 +        (tramp-error
 +         vec 'file-error
 +         "Connection `%s' is not supported for gateway access." hop))
 +      ;; Open the gateway connection.
 +      (add-to-list
 +       'target-alist
 +       (vector
 +        (tramp-file-name-method hop) (tramp-file-name-user hop)
 +        (tramp-compat-funcall 'tramp-gw-open-connection vec gw hop) nil))
 +      ;; For the password prompt, we need the correct values.
 +      ;; Therefore, we must remember the gateway vector.  But we
 +      ;; cannot do it as connection property, because it shouldn't
 +      ;; be persistent.  And we have no started process yet either.
 +      (tramp-set-file-property (car target-alist) "" "gateway" hop)))
 +
 +    ;; Foreign and out-of-band methods are not supported for multi-hops.
 +    (when (cdr target-alist)
 +      (setq choices target-alist)
 +      (while choices
 +      (setq item (pop choices))
 +      (when
 +          (or
 +           (not
 +            (tramp-get-method-parameter
 +             (tramp-file-name-method item) 'tramp-login-program))
 +           (tramp-get-method-parameter
 +            (tramp-file-name-method item) 'tramp-copy-program))
 +        (tramp-error
 +         vec 'file-error
 +         "Method `%s' is not supported for multi-hops."
 +         (tramp-file-name-method item)))))
 +
 +    ;; In case the host name is not used for the remote shell
 +    ;; command, the user could be misguided by applying a random
 +    ;; hostname.
 +    (let* ((v (car target-alist))
 +         (method (tramp-file-name-method v))
 +         (host (tramp-file-name-host v)))
 +      (unless
 +        (or
 +         ;; There are multi-hops.
 +         (cdr target-alist)
 +         ;; The host name is used for the remote shell command.
 +         (member
 +          '("%h") (tramp-get-method-parameter method 'tramp-login-args))
 +         ;; The host is local.  We cannot use `tramp-local-host-p'
 +         ;; here, because it opens a connection as well.
 +         (string-match tramp-local-host-regexp host))
 +      (tramp-error
 +       v 'file-error
 +       "Host `%s' looks like a remote host, `%s' can only use the local host"
 +       host method)))
 +
 +    ;; Result.
 +    target-alist))
 +
 +(defun tramp-maybe-open-connection (vec)
 +  "Maybe open a connection VEC.
 +Does not do anything if a connection is already open, but re-opens the
 +connection if a previous connection has died for some reason."
 +  (catch 'uname-changed
 +    (let ((p (tramp-get-connection-process vec))
 +        (process-name (tramp-get-connection-property vec "process-name" nil))
 +        (process-environment (copy-sequence process-environment)))
 +
 +      ;; If too much time has passed since last command was sent, look
 +      ;; whether process is still alive.  If it isn't, kill it.  When
 +      ;; using ssh, it can sometimes happen that the remote end has
 +      ;; hung up but the local ssh client doesn't recognize this until
 +      ;; it tries to send some data to the remote end.  So that's why
 +      ;; we try to send a command from time to time, then look again
 +      ;; whether the process is really alive.
 +      (condition-case nil
 +        (when (and (> (tramp-time-diff
 +                       (current-time)
 +                       (tramp-get-connection-property
 +                        p "last-cmd-time" '(0 0 0)))
 +                      60)
 +                   p (processp p) (memq (process-status p) '(run open)))
 +          (tramp-send-command vec "echo are you awake" t t)
 +          (unless (and (memq (process-status p) '(run open))
 +                       (tramp-wait-for-output p 10))
 +            ;; The error will be catched locally.
 +            (tramp-error vec 'file-error "Awake did fail")))
 +      (file-error
 +       (tramp-flush-connection-property vec)
 +       (tramp-flush-connection-property p)
 +       (delete-process p)
 +       (setq p nil)))
 +
 +      ;; New connection must be opened.
 +      (unless (and p (processp p) (memq (process-status p) '(run open)))
 +
 +      ;; We call `tramp-get-buffer' in order to get a debug buffer for
 +      ;; messages from the beginning.
 +      (tramp-get-buffer vec)
 +      (with-progress-reporter
 +          vec 3
 +          (if (zerop (length (tramp-file-name-user vec)))
 +              (format "Opening connection for %s using %s"
 +                      (tramp-file-name-host vec)
 +                      (tramp-file-name-method vec))
 +            (format "Opening connection for %s@%s using %s"
 +                    (tramp-file-name-user vec)
 +                    (tramp-file-name-host vec)
 +                    (tramp-file-name-method vec)))
 +
 +        ;; Start new process.
 +        (when (and p (processp p))
 +          (delete-process p))
 +        (setenv "TERM" tramp-terminal-type)
 +        (setenv "LC_ALL" "C")
 +        (setenv "PROMPT_COMMAND")
 +        (setenv "PS1" tramp-initial-end-of-output)
 +        (let* ((target-alist (tramp-compute-multi-hops vec))
 +               (process-connection-type tramp-process-connection-type)
 +               (process-adaptive-read-buffering nil)
 +               (coding-system-for-read nil)
 +               ;; This must be done in order to avoid our file name handler.
 +               (p (let ((default-directory
 +                          (tramp-compat-temporary-file-directory)))
 +                    (start-process
 +                     (tramp-get-connection-name vec)
 +                     (tramp-get-connection-buffer vec)
 +                     tramp-encoding-shell))))
 +
 +          (tramp-message
 +           vec 6 "%s" (mapconcat 'identity (process-command p) " "))
 +
 +          ;; Check whether process is alive.
 +          (tramp-compat-set-process-query-on-exit-flag p nil)
 +          (tramp-barf-if-no-shell-prompt
 +           p 60 "Couldn't find local shell prompt %s" tramp-encoding-shell)
 +
 +          ;; Now do all the connections as specified.
 +          (while target-alist
 +            (let* ((hop (car target-alist))
 +                   (l-method (tramp-file-name-method hop))
 +                   (l-user (tramp-file-name-user hop))
 +                   (l-host (tramp-file-name-host hop))
 +                   (l-port nil)
 +                   (login-program
 +                    (tramp-get-method-parameter
 +                     l-method 'tramp-login-program))
 +                   (login-args
 +                    (tramp-get-method-parameter l-method 'tramp-login-args))
 +                   (async-args
 +                    (tramp-get-method-parameter l-method 'tramp-async-args))
 +                   (gw-args
 +                    (tramp-get-method-parameter l-method 'tramp-gw-args))
 +                   (gw (tramp-get-file-property hop "" "gateway" nil))
 +                   (g-method (and gw (tramp-file-name-method gw)))
 +                   (g-user (and gw (tramp-file-name-user gw)))
 +                   (g-host (and gw (tramp-file-name-host gw)))
 +                   (command login-program)
 +                   ;; We don't create the temporary file.  In fact,
 +                   ;; it is just a prefix for the ControlPath option
 +                   ;; of ssh; the real temporary file has another
 +                   ;; name, and it is created and protected by ssh.
 +                   ;; It is also removed by ssh, when the connection
 +                   ;; is closed.
 +                   (tmpfile
 +                    (tramp-set-connection-property
 +                     p "temp-file"
 +                     (make-temp-name
 +                      (expand-file-name
 +                       tramp-temp-name-prefix
 +                       (tramp-compat-temporary-file-directory)))))
 +                   spec)
 +
 +              ;; Add arguments for asynchrononous processes.
 +              (when (and process-name async-args)
 +                (setq login-args (append async-args login-args)))
 +
 +              ;; Add gateway arguments if necessary.
 +              (when (and gw gw-args)
 +                (setq login-args (append gw-args login-args)))
 +
 +              ;; Check for port number.  Until now, there's no need
 +              ;; for handling like method, user, host.
 +              (when (string-match tramp-host-with-port-regexp l-host)
 +              (setq l-port (match-string 2 l-host)
 +                    l-host (match-string 1 l-host)))
 +
 +              ;; Set variables for computing the prompt for reading
 +              ;; password.  They can also be derived from a gateway.
 +              (setq tramp-current-method (or g-method l-method)
 +                    tramp-current-user   (or g-user   l-user)
 +                    tramp-current-host   (or g-host   l-host))
 +
 +              ;; Replace login-args place holders.
 +              (setq
 +               l-host (or l-host "")
 +               l-user (or l-user "")
 +               l-port (or l-port "")
 +               spec (format-spec-make
 +                     ?h l-host ?u l-user ?p l-port ?t tmpfile)
 +               command
 +               (concat
 +                ;; We do not want to see the trailing local prompt in
 +                ;; `start-file-process'.
 +                (unless (memq system-type '(windows-nt)) "exec ")
 +                command " "
 +                (mapconcat
 +                 (lambda (x)
 +                   (setq x (mapcar (lambda (y) (format-spec y spec)) x))
 +                   (unless (member "" x) (mapconcat 'identity x " ")))
 +                 login-args " ")
 +                ;; Local shell could be a Windows COMSPEC.  It
 +                ;; doesn't know the ";" syntax, but we must exit
 +                ;; always for `start-file-process'.  "exec" does not
 +                ;; work either.
 +                (if (memq system-type '(windows-nt)) " && exit || exit")))
 +
 +              ;; Send the command.
 +              (tramp-message vec 3 "Sending command `%s'" command)
 +              (tramp-send-command vec command t t)
 +              (tramp-process-actions p vec tramp-actions-before-shell 60)
 +              (tramp-message
 +               vec 3 "Found remote shell prompt on `%s'" l-host))
 +            ;; Next hop.
 +            (setq target-alist (cdr target-alist)))
 +
 +          ;; Make initial shell settings.
 +          (tramp-open-connection-setup-interactive-shell p vec)))))))
 +
 +(defun tramp-send-command (vec command &optional neveropen nooutput)
 +  "Send the COMMAND to connection VEC.
 +Erases temporary buffer before sending the command.  If optional
 +arg NEVEROPEN is non-nil, never try to open the connection.  This
 +is meant to be used from `tramp-maybe-open-connection' only.  The
 +function waits for output unless NOOUTPUT is set."
 +  (unless neveropen (tramp-maybe-open-connection vec))
 +  (let ((p (tramp-get-connection-process vec)))
 +    (when (tramp-get-connection-property p "remote-echo" nil)
 +      ;; We mark the command string that it can be erased in the output buffer.
 +      (tramp-set-connection-property p "check-remote-echo" t)
 +      (setq command (format "%s%s%s" tramp-echo-mark command tramp-echo-mark)))
 +    (when (string-match "<<'EOF'" command)
 +      ;; Unset $PS1 when using here documents, in order to avoid
 +      ;; multiple prompts.
 +      (setq command (concat "(PS1= ; " command "\n)")))
 +    ;; Send the command.
 +    (tramp-message vec 6 "%s" command)
 +    (tramp-send-string vec command)
 +    (unless nooutput (tramp-wait-for-output p))))
 +
 +(defun tramp-wait-for-output (proc &optional timeout)
 +  "Wait for output from remote command."
 +  (unless (buffer-live-p (process-buffer proc))
 +    (delete-process proc)
 +    (tramp-error proc 'file-error "Process `%s' not available, try again" proc))
 +  (with-current-buffer (process-buffer proc)
 +    (let* (;; Initially, `tramp-end-of-output' is "#$ ".  There might
 +         ;; be leading escape sequences, which must be ignored.
 +         (regexp (format "[^#$\n]*%s\r?$" (regexp-quote tramp-end-of-output)))
 +         ;; Sometimes, the commands do not return a newline but a
 +         ;; null byte before the shell prompt, for example "git
 +         ;; ls-files -c -z ...".
 +         (regexp1 (format "\\(^\\|\000\\)%s" regexp))
 +         (found (tramp-wait-for-regexp proc timeout regexp1)))
 +      (if found
 +        (let (buffer-read-only)
 +          ;; A simple-minded busybox has sent " ^H" sequences.
 +          ;; Delete them.
 +          (goto-char (point-min))
 +          (when (re-search-forward "^\\(.\b\\)+$" (point-at-eol) t)
 +            (forward-line 1)
 +            (delete-region (point-min) (point)))
 +          ;; Delete the prompt.
 +          (goto-char (point-max))
 +          (re-search-backward regexp nil t)
 +          (delete-region (point) (point-max)))
 +      (if timeout
 +          (tramp-error
 +           proc 'file-error
 +           "[[Remote prompt `%s' not found in %d secs]]"
 +           tramp-end-of-output timeout)
 +        (tramp-error
 +         proc 'file-error
 +         "[[Remote prompt `%s' not found]]" tramp-end-of-output)))
 +      ;; Return value is whether end-of-output sentinel was found.
 +      found)))
 +
 +(defun tramp-send-command-and-check
 +  (vec command &optional subshell dont-suppress-err)
 +  "Run COMMAND and check its exit status.
 +Sends `echo $?' along with the COMMAND for checking the exit status.  If
 +COMMAND is nil, just sends `echo $?'.  Returns the exit status found.
 +
 +If the optional argument SUBSHELL is non-nil, the command is
 +executed in a subshell, ie surrounded by parentheses.  If
 +DONT-SUPPRESS-ERR is non-nil, stderr won't be sent to /dev/null."
 +  (tramp-send-command
 +   vec
 +   (concat (if subshell "( " "")
 +         command
 +         (if command (if dont-suppress-err "; " " 2>/dev/null; ") "")
 +         "echo tramp_exit_status $?"
 +         (if subshell " )" "")))
 +  (with-current-buffer (tramp-get-connection-buffer vec)
 +    (goto-char (point-max))
 +    (unless (re-search-backward "tramp_exit_status [0-9]+" nil t)
 +      (tramp-error
 +       vec 'file-error "Couldn't find exit status of `%s'" command))
 +    (skip-chars-forward "^ ")
 +    (prog1
 +      (zerop (read (current-buffer)))
 +      (let (buffer-read-only)
 +      (delete-region (match-beginning 0) (point-max))))))
 +
 +(defun tramp-barf-unless-okay (vec command fmt &rest args)
 +  "Run COMMAND, check exit status, throw error if exit status not okay.
 +Similar to `tramp-send-command-and-check' but accepts two more arguments
 +FMT and ARGS which are passed to `error'."
 +  (unless (tramp-send-command-and-check vec command)
 +    (apply 'tramp-error vec 'file-error fmt args)))
 +
 +(defun tramp-send-command-and-read (vec command)
 +  "Run COMMAND and return the output, which must be a Lisp expression.
 +In case there is no valid Lisp expression, it raises an error"
 +  (tramp-barf-unless-okay vec command "`%s' returns with error" command)
 +  (with-current-buffer (tramp-get-connection-buffer vec)
 +    ;; Read the expression.
 +    (goto-char (point-min))
 +    (condition-case nil
 +      (prog1 (read (current-buffer))
 +        ;; Error handling.
 +        (when (re-search-forward "\\S-" (point-at-eol) t)
 +          (error nil)))
 +      (error (tramp-error
 +            vec 'file-error
 +            "`%s' does not return a valid Lisp expression: `%s'"
 +            command (buffer-string))))))
 +
 +(defun tramp-convert-file-attributes (vec attr)
 +  "Convert file-attributes ATTR generated by perl script, stat or ls.
 +Convert file mode bits to string and set virtual device number.
 +Return ATTR."
 +  (when attr
 +    ;; Convert last access time.
 +    (unless (listp (nth 4 attr))
 +      (setcar (nthcdr 4 attr)
 +              (list (floor (nth 4 attr) 65536)
 +                    (floor (mod (nth 4 attr) 65536)))))
 +    ;; Convert last modification time.
 +    (unless (listp (nth 5 attr))
 +      (setcar (nthcdr 5 attr)
 +              (list (floor (nth 5 attr) 65536)
 +                    (floor (mod (nth 5 attr) 65536)))))
 +    ;; Convert last status change time.
 +    (unless (listp (nth 6 attr))
 +      (setcar (nthcdr 6 attr)
 +              (list (floor (nth 6 attr) 65536)
 +                    (floor (mod (nth 6 attr) 65536)))))
 +    ;; Convert file size.
 +    (when (< (nth 7 attr) 0)
 +      (setcar (nthcdr 7 attr) -1))
 +    (when (and (floatp (nth 7 attr))
 +               (<= (nth 7 attr) (tramp-compat-most-positive-fixnum)))
 +      (setcar (nthcdr 7 attr) (round (nth 7 attr))))
 +    ;; Convert file mode bits to string.
 +    (unless (stringp (nth 8 attr))
 +      (setcar (nthcdr 8 attr) (tramp-file-mode-from-int (nth 8 attr)))
 +      (when (stringp (car attr))
 +        (aset (nth 8 attr) 0 ?l)))
 +    ;; Convert directory indication bit.
 +    (when (string-match "^d" (nth 8 attr))
 +      (setcar attr t))
 +    ;; Convert symlink from `tramp-do-file-attributes-with-stat'.
 +    (when (consp (car attr))
 +      (if (and (stringp (caar attr))
 +               (string-match ".+ -> .\\(.+\\)." (caar attr)))
 +          (setcar attr (match-string 1 (caar attr)))
 +        (setcar attr nil)))
 +    ;; Set file's gid change bit.
 +    (setcar (nthcdr 9 attr)
 +            (if (numberp (nth 3 attr))
 +                (not (= (nth 3 attr)
 +                        (tramp-get-remote-gid vec 'integer)))
 +              (not (string-equal
 +                    (nth 3 attr)
 +                    (tramp-get-remote-gid vec 'string)))))
 +    ;; Convert inode.
 +    (unless (listp (nth 10 attr))
 +      (setcar (nthcdr 10 attr)
 +              (condition-case nil
 +                  (cons (floor (nth 10 attr) 65536)
 +                        (floor (mod (nth 10 attr) 65536)))
 +                ;; Inodes can be incredible huge.  We must hide this.
 +                (error (tramp-get-inode vec)))))
 +    ;; Set virtual device number.
 +    (setcar (nthcdr 11 attr)
 +            (tramp-get-device vec))
 +    attr))
 +
 +(defun tramp-check-cached-permissions (vec access)
 +  "Check `file-attributes' caches for VEC.
 +Return t if according to the cache access type ACCESS is known to
 +be granted."
 +  (let ((result nil)
 +        (offset (cond
 +                 ((eq ?r access) 1)
 +                 ((eq ?w access) 2)
 +                 ((eq ?x access) 3))))
 +    (dolist (suffix '("string" "integer") result)
 +      (setq
 +       result
 +       (or
 +        result
 +        (let ((file-attr
 +               (tramp-get-file-property
 +                vec (tramp-file-name-localname vec)
 +                (concat "file-attributes-" suffix) nil))
 +              (remote-uid
 +               (tramp-get-connection-property
 +                vec (concat "uid-" suffix) nil))
 +              (remote-gid
 +               (tramp-get-connection-property
 +                vec (concat "gid-" suffix) nil)))
 +          (and
 +           file-attr
 +           (or
 +            ;; Not a symlink
 +            (eq t (car file-attr))
 +            (null (car file-attr)))
 +           (or
 +            ;; World accessible.
 +            (eq access (aref (nth 8 file-attr) (+ offset 6)))
 +            ;; User accessible and owned by user.
 +            (and
 +             (eq access (aref (nth 8 file-attr) offset))
 +             (equal remote-uid (nth 2 file-attr)))
 +            ;; Group accessible and owned by user's
 +            ;; principal group.
 +            (and
 +             (eq access (aref (nth 8 file-attr) (+ offset 3)))
 +             (equal remote-gid (nth 3 file-attr)))))))))))
 +
 +(defun tramp-file-mode-from-int (mode)
 +  "Turn an integer representing a file mode into an ls(1)-like string."
 +  (let ((type (cdr
 +               (assoc (logand (lsh mode -12) 15) tramp-file-mode-type-map)))
 +      (user   (logand (lsh mode -6) 7))
 +      (group  (logand (lsh mode -3) 7))
 +      (other  (logand (lsh mode -0) 7))
 +      (suid   (> (logand (lsh mode -9) 4) 0))
 +      (sgid   (> (logand (lsh mode -9) 2) 0))
 +      (sticky (> (logand (lsh mode -9) 1) 0)))
 +    (setq user  (tramp-file-mode-permissions user  suid "s"))
 +    (setq group (tramp-file-mode-permissions group sgid "s"))
 +    (setq other (tramp-file-mode-permissions other sticky "t"))
 +    (concat type user group other)))
 +
 +(defun tramp-file-mode-permissions (perm suid suid-text)
 +  "Convert a permission bitset into a string.
 +This is used internally by `tramp-file-mode-from-int'."
 +  (let ((r (> (logand perm 4) 0))
 +      (w (> (logand perm 2) 0))
 +      (x (> (logand perm 1) 0)))
 +    (concat (or (and r "r") "-")
 +          (or (and w "w") "-")
 +          (or (and suid x suid-text)  ; suid, execute
 +              (and suid (upcase suid-text)) ; suid, !execute
 +              (and x "x") "-"))))     ; !suid
 +
 +(defun tramp-shell-case-fold (string)
 +  "Converts STRING to shell glob pattern which ignores case."
 +  (mapconcat
 +   (lambda (c)
 +     (if (equal (downcase c) (upcase c))
 +         (vector c)
 +       (format "[%c%c]" (downcase c) (upcase c))))
 +   string
 +   ""))
 +
 +(defun tramp-make-copy-program-file-name (vec)
 +  "Create a file name suitable to be passed to `rcp' and workalikes."
 +  (let ((user (tramp-file-name-user vec))
 +      (host (tramp-file-name-real-host vec))
 +      (localname (tramp-shell-quote-argument
 +                  (tramp-file-name-localname vec))))
 +    (if (not (zerop (length user)))
 +        (format "%s@%s:%s" user host localname)
 +      (format "%s:%s" host localname))))
 +
 +(defun tramp-method-out-of-band-p (vec size)
 +  "Return t if this is an out-of-band method, nil otherwise."
 +  (and
 +   ;; It shall be an out-of-band method.
 +   (tramp-get-method-parameter (tramp-file-name-method vec) 'tramp-copy-program)
 +   ;; Either the file size is large enough, or (in rare cases) there
 +   ;; does not exist a remote encoding.
 +   (or (null tramp-copy-size-limit)
 +       (> size tramp-copy-size-limit)
 +       (null (tramp-get-inline-coding vec "remote-encoding" size)))))
 +
 +;; Variables local to connection.
 +
 +(defun tramp-get-remote-path (vec)
 +  (with-connection-property
 +      ;; When `tramp-own-remote-path' is in `tramp-remote-path', we
 +      ;; cache the result for the session only.  Otherwise, the result
 +      ;; is cached persistently.
 +      (if (memq 'tramp-own-remote-path tramp-remote-path)
 +        (tramp-get-connection-process vec)
 +      vec)
 +      "remote-path"
 +    (let* ((remote-path (copy-tree tramp-remote-path))
 +         (elt1 (memq 'tramp-default-remote-path remote-path))
 +         (elt2 (memq 'tramp-own-remote-path remote-path))
 +         (default-remote-path
 +           (when elt1
 +             (condition-case nil
 +                 (tramp-send-command-and-read
 +                  vec "echo \\\"`getconf PATH`\\\"")
 +               ;; Default if "getconf" is not available.
 +               (error
 +                (tramp-message
 +                 vec 3
 +                 "`getconf PATH' not successful, using default value \"%s\"."
 +                 "/bin:/usr/bin")
 +                "/bin:/usr/bin"))))
 +         (own-remote-path
 +           (when elt2
 +             (condition-case nil
 +                 (tramp-send-command-and-read vec "echo \\\"$PATH\\\"")
 +               ;; Default if "getconf" is not available.
 +               (error
 +                (tramp-message
 +                 vec 3 "$PATH not set, ignoring `tramp-own-remote-path'.")
 +                nil)))))
 +
 +      ;; Replace place holder `tramp-default-remote-path'.
 +      (when elt1
 +      (setcdr elt1
 +              (append
 +               (tramp-compat-split-string default-remote-path ":")
 +               (cdr elt1)))
 +      (setq remote-path (delq 'tramp-default-remote-path remote-path)))
 +
 +      ;; Replace place holder `tramp-own-remote-path'.
 +      (when elt2
 +      (setcdr elt2
 +              (append
 +               (tramp-compat-split-string own-remote-path ":")
 +               (cdr elt2)))
 +      (setq remote-path (delq 'tramp-own-remote-path remote-path)))
 +
 +      ;; Remove double entries.
 +      (setq elt1 remote-path)
 +      (while (consp elt1)
 +      (while (and (car elt1) (setq elt2 (member (car elt1) (cdr elt1))))
 +        (setcar elt2 nil))
 +      (setq elt1 (cdr elt1)))
 +
 +      ;; Remove non-existing directories.
 +      (delq
 +       nil
 +       (mapcar
 +      (lambda (x)
 +        (and
 +         (stringp x)
 +         (file-directory-p
 +          (tramp-make-tramp-file-name
 +           (tramp-file-name-method vec)
 +           (tramp-file-name-user vec)
 +           (tramp-file-name-host vec)
 +           x))
 +         x))
 +      remote-path)))))
 +
 +(defun tramp-get-remote-tmpdir (vec)
 +  (with-connection-property vec "tmp-directory"
 +    (let ((dir (tramp-shell-quote-argument "/tmp")))
 +      (if (and (tramp-send-command-and-check
 +              vec (format "%s -d %s" (tramp-get-test-command vec) dir))
 +             (tramp-send-command-and-check
 +              vec (format "%s -w %s" (tramp-get-test-command vec) dir)))
 +        dir
 +      (tramp-error vec 'file-error "Directory %s not accessible" dir)))))
 +
 +(defun tramp-get-ls-command (vec)
 +  (with-connection-property vec "ls"
 +    (tramp-message vec 5 "Finding a suitable `ls' command")
 +    (or
 +     (catch 'ls-found
 +       (dolist (cmd '("ls" "gnuls" "gls"))
 +       (let ((dl (tramp-get-remote-path vec))
 +             result)
 +         (while (and dl (setq result (tramp-find-executable vec cmd dl t t)))
 +           ;; Check parameters.  On busybox, "ls" output coloring is
 +           ;; enabled by default sometimes.  So we try to disable it
 +           ;; when possible.  $LS_COLORING is not supported there.
 +           ;; Some "ls" versions are sensible wrt the order of
 +           ;; arguments, they fail when "-al" is after the
 +           ;; "--color=never" argument (for example on FreeBSD).
 +           (when (tramp-send-command-and-check
 +                  vec (format "%s -lnd /" result))
 +             (when (tramp-send-command-and-check
 +                    vec (format
 +                         "%s --color=never -al /dev/null" result))
 +               (setq result (concat result " --color=never")))
 +             (throw 'ls-found result))
 +           (setq dl (cdr dl))))))
 +     (tramp-error vec 'file-error "Couldn't find a proper `ls' command"))))
 +
 +(defun tramp-get-ls-command-with-dired (vec)
 +  (save-match-data
 +    (with-connection-property vec "ls-dired"
 +      (tramp-message vec 5 "Checking, whether `ls --dired' works")
 +      ;; Some "ls" versions are sensible wrt the order of arguments,
 +      ;; they fail when "-al" is after the "--dired" argument (for
 +      ;; example on FreeBSD).
 +      (tramp-send-command-and-check
 +       vec (format "%s --dired -al /dev/null" (tramp-get-ls-command vec))))))
 +
 +(defun tramp-get-test-command (vec)
 +  (with-connection-property vec "test"
 +    (tramp-message vec 5 "Finding a suitable `test' command")
 +    (if (tramp-send-command-and-check vec "test 0")
 +      "test"
 +      (tramp-find-executable vec "test" (tramp-get-remote-path vec)))))
 +
 +(defun tramp-get-test-nt-command (vec)
 +  ;; Does `test A -nt B' work?  Use abominable `find' construct if it
 +  ;; doesn't.  BSD/OS 4.0 wants the parentheses around the command,
 +  ;; for otherwise the shell crashes.
 +  (with-connection-property vec "test-nt"
 +    (or
 +     (progn
 +       (tramp-send-command
 +      vec (format "( %s / -nt / )" (tramp-get-test-command vec)))
 +       (with-current-buffer (tramp-get-buffer vec)
 +       (goto-char (point-min))
 +       (when (looking-at (regexp-quote tramp-end-of-output))
 +         (format "%s %%s -nt %%s" (tramp-get-test-command vec)))))
 +     (progn
 +       (tramp-send-command
 +      vec
 +      (format
 +       "tramp_test_nt () {\n%s -n \"`find $1 -prune -newer $2 -print`\"\n}"
 +       (tramp-get-test-command vec)))
 +       "tramp_test_nt %s %s"))))
 +
 +(defun tramp-get-file-exists-command (vec)
 +  (with-connection-property vec "file-exists"
 +    (tramp-message vec 5 "Finding command to check if file exists")
 +    (tramp-find-file-exists-command vec)))
 +
 +(defun tramp-get-remote-ln (vec)
 +  (with-connection-property vec "ln"
 +    (tramp-message vec 5 "Finding a suitable `ln' command")
 +    (tramp-find-executable vec "ln" (tramp-get-remote-path vec))))
 +
 +(defun tramp-get-remote-perl (vec)
 +  (with-connection-property vec "perl"
 +    (tramp-message vec 5 "Finding a suitable `perl' command")
 +    (let ((result
 +         (or (tramp-find-executable vec "perl5" (tramp-get-remote-path vec))
 +             (tramp-find-executable
 +              vec "perl" (tramp-get-remote-path vec)))))
 +      ;; We must check also for some Perl modules.
 +      (when result
 +      (with-connection-property vec "perl-file-spec"
 +         (tramp-send-command-and-check
 +          vec (format "%s -e 'use File::Spec;'" result)))
 +      (with-connection-property vec "perl-cwd-realpath"
 +         (tramp-send-command-and-check
 +          vec (format "%s -e 'use Cwd \"realpath\";'" result))))
 +      result)))
 +
 +(defun tramp-get-remote-stat (vec)
 +  (with-connection-property vec "stat"
 +    (tramp-message vec 5 "Finding a suitable `stat' command")
 +    (let ((result (tramp-find-executable
 +                 vec "stat" (tramp-get-remote-path vec)))
 +        tmp)
 +      ;; Check whether stat(1) returns usable syntax.  %s does not
 +      ;; work on older AIX systems.
 +      (when result
 +      (setq tmp
 +            ;; We don't want to display an error message.
 +            (tramp-compat-with-temp-message (or (current-message) "")
 +              (ignore-errors
 +                (tramp-send-command-and-read
 +                 vec (format "%s -c '(\"%%N\" %%s)' /" result)))))
 +      (unless (and (listp tmp) (stringp (car tmp))
 +                   (string-match "^./.$" (car tmp))
 +                   (integerp (cadr tmp)))
 +        (setq result nil)))
 +      result)))
 +
 +(defun tramp-get-remote-readlink (vec)
 +  (with-connection-property vec "readlink"
 +    (tramp-message vec 5 "Finding a suitable `readlink' command")
 +    (let ((result (tramp-find-executable
 +                 vec "readlink" (tramp-get-remote-path vec))))
 +      (when (and result
 +               ;; We don't want to display an error message.
 +               (tramp-compat-with-temp-message (or (current-message) "")
 +                 (ignore-errors
 +                   (tramp-send-command-and-check
 +                    vec (format "%s --canonicalize-missing /" result)))))
 +      result))))
 +
 +(defun tramp-get-remote-trash (vec)
 +  (with-connection-property vec "trash"
 +    (tramp-message vec 5 "Finding a suitable `trash' command")
 +    (tramp-find-executable vec "trash" (tramp-get-remote-path vec))))
 +
 +(defun tramp-get-remote-id (vec)
 +  (with-connection-property vec "id"
 +    (tramp-message vec 5 "Finding POSIX `id' command")
 +    (or
 +     (catch 'id-found
 +       (let ((dl (tramp-get-remote-path vec))
 +           result)
 +       (while (and dl (setq result (tramp-find-executable vec "id" dl t t)))
 +         ;; Check POSIX parameter.
 +         (when (tramp-send-command-and-check vec (format "%s -u" result))
 +           (throw 'id-found result))
 +         (setq dl (cdr dl)))))
 +     (tramp-error vec 'file-error "Couldn't find a POSIX `id' command"))))
 +
 +(defun tramp-get-remote-uid (vec id-format)
 +  (with-connection-property vec (format "uid-%s" id-format)
 +    (let ((res (tramp-send-command-and-read
 +              vec
 +              (format "%s -u%s %s"
 +                      (tramp-get-remote-id vec)
 +                      (if (equal id-format 'integer) "" "n")
 +                      (if (equal id-format 'integer)
 +                          "" "| sed -e s/^/\\\"/ -e s/\$/\\\"/")))))
 +      ;; The command might not always return a number.
 +      (if (and (equal id-format 'integer) (not (integerp res))) -1 res))))
 +
 +(defun tramp-get-remote-gid (vec id-format)
 +  (with-connection-property vec (format "gid-%s" id-format)
 +    (let ((res (tramp-send-command-and-read
 +              vec
 +              (format "%s -g%s %s"
 +                      (tramp-get-remote-id vec)
 +                      (if (equal id-format 'integer) "" "n")
 +                      (if (equal id-format 'integer)
 +                          "" "| sed -e s/^/\\\"/ -e s/\$/\\\"/")))))
 +      ;; The command might not always return a number.
 +      (if (and (equal id-format 'integer) (not (integerp res))) -1 res))))
 +
 +(defun tramp-get-local-uid (id-format)
 +  (if (equal id-format 'integer) (user-uid) (user-login-name)))
 +
 +(defun tramp-get-local-gid (id-format)
 +  (nth 3 (tramp-compat-file-attributes "~/" id-format)))
 +
 +;; Some predefined connection properties.
 +(defun tramp-get-inline-compress (vec prop size)
 +  "Return the compress command related to PROP.
 +PROP is either `inline-compress' or `inline-decompress'. SIZE is
 +the length of the file to be compressed.
 +
 +If no corresponding command is found, nil is returned."
 +  (when (and (integerp tramp-inline-compress-start-size)
 +           (> size tramp-inline-compress-start-size))
 +    (with-connection-property vec prop
 +      (tramp-find-inline-compress vec)
 +      (tramp-get-connection-property vec prop nil))))
 +
 +(defun tramp-get-inline-coding (vec prop size)
 +  "Return the coding command related to PROP.
 +PROP is either `remote-encoding', `remode-decoding',
 +`local-encoding' or `local-decoding'.
 +
 +SIZE is the length of the file to be coded.  Depending on SIZE,
 +compression might be applied.
 +
 +If no corresponding command is found, nil is returned.
 +Otherwise, either a string is returned which contains a `%s' mark
 +to be used for the respective input or output file; or a Lisp
 +function cell is returned to be applied on a buffer."
 +  ;; We must catch the errors, because we want to return `nil', when
 +  ;; no inline coding is found.
 +  (ignore-errors
 +    (let ((coding
 +         (with-connection-property vec prop
 +           (tramp-find-inline-encoding vec)
 +           (tramp-get-connection-property vec prop nil)))
 +        (prop1 (if (string-match "encoding" prop)
 +                   "inline-compress" "inline-decompress"))
 +        compress)
 +      ;; The connection property might have been cached.  So we must
 +      ;; send the script to the remote side - maybe.
 +      (when (and coding (symbolp coding) (string-match "remote" prop))
 +      (let ((name (symbol-name coding)))
 +        (while (string-match (regexp-quote "-") name)
 +          (setq name (replace-match "_" nil t name)))
 +        (tramp-maybe-send-script vec (symbol-value coding) name)
 +        (setq coding name)))
 +      (when coding
 +      ;; Check for the `compress' command.
 +      (setq compress (tramp-get-inline-compress vec prop1 size))
 +      ;; Return the value.
 +      (cond
 +       ((and compress (symbolp coding))
 +        (if (string-match "decompress" prop1)
 +            `(lambda (beg end)
 +               (,coding beg end)
 +               (let ((coding-system-for-write 'binary)
 +                     (coding-system-for-read 'binary))
 +                 (apply
 +                  'call-process-region (point-min) (point-max)
 +                  (car (split-string ,compress)) t t nil
 +                  (cdr (split-string ,compress)))))
 +          `(lambda (beg end)
 +             (let ((coding-system-for-write 'binary)
 +                   (coding-system-for-read 'binary))
 +               (apply
 +                'call-process-region beg end
 +                (car (split-string ,compress)) t t nil
 +                (cdr (split-string ,compress))))
 +             (,coding (point-min) (point-max)))))
 +       ((symbolp coding)
 +        coding)
 +       ((and compress (string-match "decoding" prop))
 +        (format "(%s | %s >%%s)" coding compress))
 +       (compress
 +        (format "(%s <%%s | %s)" compress coding))
 +       ((string-match "decoding" prop)
 +        (format "%s >%%s" coding))
 +       (t
 +        (format "%s <%%s" coding)))))))
 +
 +;;; Integration of eshell.el:
 +
 +(eval-when-compile
 +  (defvar eshell-path-env))
 +
 +;; eshell.el keeps the path in `eshell-path-env'.  We must change it
 +;; when `default-directory' points to another host.
 +(defun tramp-eshell-directory-change ()
 +  "Set `eshell-path-env' to $PATH of the host related to `default-directory'."
 +  (setq eshell-path-env
 +      (if (file-remote-p default-directory)
 +          (with-parsed-tramp-file-name default-directory nil
 +            (mapconcat
 +             'identity
 +             (tramp-get-remote-path v)
 +             ":"))
 +        (getenv "PATH"))))
 +
 +(eval-after-load "esh-util"
 +  '(progn
 +     (tramp-eshell-directory-change)
 +     (add-hook 'eshell-directory-change-hook
 +             'tramp-eshell-directory-change)
 +     (add-hook 'tramp-unload-hook
 +             (lambda ()
 +               (remove-hook 'eshell-directory-change-hook
 +                            'tramp-eshell-directory-change)))))
 +
 +(add-hook 'tramp-unload-hook
 +        (lambda ()
 +          (unload-feature 'tramp-sh 'force)))
 +
 +(provide 'tramp-sh)
 +
 +;;; TODO:
 +
 +;; * Don't use globbing for directories with many files, as this is
 +;;   likely to produce long command lines, and some shells choke on
 +;;   long command lines.
 +;; * Make it work for different encodings, and for different file name
 +;;   encodings, too.  (Daniel Pittman)
 +;; * Don't search for perl5 and perl.  Instead, only search for perl and
 +;;   then look if it's the right version (with `perl -v').
 +;; * When editing a remote CVS controlled file as a different user, VC
 +;;   gets confused about the file locking status.  Try to find out why
 +;;   the workaround doesn't work.
 +;; * Allow out-of-band methods as _last_ multi-hop.  Open a connection
 +;;   until the last but one hop via `start-file-process'.  Apply it
 +;;   also for ftp and smb.
 +;; * WIBNI if we had a command "trampclient"?  If I was editing in
 +;;   some shell with root priviledges, it would be nice if I could
 +;;   just call
 +;;     trampclient filename.c
 +;;   as an editor, and the _current_ shell would connect to an Emacs
 +;;   server and would be used in an existing non-priviledged Emacs
 +;;   session for doing the editing in question.
 +;;   That way, I need not tell Emacs my password again and be afraid
 +;;   that it makes it into core dumps or other ugly stuff (I had Emacs
 +;;   once display a just typed password in the context of a keyboard
 +;;   sequence prompt for a question immediately following in a shell
 +;;   script run within Emacs -- nasty).
 +;;   And if I have some ssh session running to a different computer,
 +;;   having the possibility of passing a local file there to a local
 +;;   Emacs session (in case I can arrange for a connection back) would
 +;;   be nice.
 +;;   Likely the corresponding Tramp server should not allow the
 +;;   equivalent of the emacsclient -eval option in order to make this
 +;;   reasonably unproblematic.  And maybe trampclient should have some
 +;;   way of passing credentials, like by using an SSL socket or
 +;;   something.  (David Kastrup)
 +;; * Reconnect directly to a compliant shell without first going
 +;;   through the user's default shell.  (Pete Forman)
 +;; * How can I interrupt the remote process with a signal
 +;;   (interrupt-process seems not to work)?  (Markus Triska)
 +;; * Avoid the local shell entirely for starting remote processes.  If
 +;;   so, I think even a signal, when delivered directly to the local
 +;;   SSH instance, would correctly be propagated to the remote process
 +;;   automatically; possibly SSH would have to be started with
 +;;   "-t".  (Markus Triska)
 +;; * It makes me wonder if tramp couldn't fall back to ssh when scp
 +;;   isn't on the remote host.  (Mark A. Hershberger)
 +;; * Use lsh instead of ssh.  (Alfred M. Szmidt)
 +;; * Optimize out-of-band copying, when both methods are scp-like (not
 +;;   rsync).
 +;; * Keep a second connection open for out-of-band methods like scp or
 +;;   rsync.
 +;; * Try telnet+curl as new method.  It might be useful for busybox,
 +;;   without built-in uuencode/uudecode.
 +
 +;;; tramp-sh.el ends here
Simple merge
Simple merge
index c198d9e082d5e3062027568984b6bbf0158065b7,0ac5048ef3b227c7539946e85c930b46c8fe50a9..cd9ef314acc75c75ee05ab5a27ed70c292bc1113
@@@ -1,8 -1,10 +1,8 @@@
  ;;; tramp.el --- Transparent Remote Access, Multiple Protocol
  
  ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
 -;; (copyright statements below in code to be updated with the above notice)
 -
  ;; Author: Kai Großjohann <kai.grossjohann@gmx.net>
  ;;         Michael Albinus <michael.albinus@gmx.de>
  ;; Keywords: comm, processes
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 7e67790a4ce8e5379ecde2dd5a89eb8bc66fc0e9,2019f88bf151faac581f5d95c34d332cb2f1bf55..35d806568719d78fa0801874109642ee1b83a9f7
@@@ -1,10 -1,10 +1,10 @@@
  ;;; pgg-gpg.el --- GnuPG support for PGG.
  
  ;; Copyright (C) 1999, 2000, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Daiki Ueno <ueno@unixuser.org>
 -;; Symmetric encryption and gpg-agent support added by: 
 +;; Symmetric encryption and gpg-agent support added by:
  ;;   Sascha Wilde <wilde@sha-bang.de>
  ;; Created: 1999/10/28
  ;; Keywords: PGP, OpenPGP, GnuPG
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/org/org.el
Simple merge
diff --cc lisp/outline.el
Simple merge
diff --cc lisp/paren.el
Simple merge
Simple merge
diff --cc lisp/paths.el
Simple merge
index 98d1e47666919aac518fed7b054df6ba8550da72,49522ea9da8ade6ca917ca424657d28cf9df62b3..b960ec215e7eb0e37e0b1de338fd745a9d8c2748
@@@ -1,10 -1,9 +1,10 @@@
  ;;; pcmpl-cvs.el --- functions for dealing with cvs completions
  
  ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: John Wiegley <johnw@gnu.org>
 +;; Package: pcomplete
  
  ;; This file is part of GNU Emacs.
  
index df1f055506c94779b0b20b710fe1cbc34e501382,2b4334f89ee45e080347d398eff1e135d0135966..196be69abd576324663678c312d4a6fba377cbac
@@@ -1,10 -1,8 +1,10 @@@
  ;;; pcmpl-gnu.el --- completions for GNU project tools
  
  ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
 +;; Package: pcomplete
 +
  ;; This file is part of GNU Emacs.
  
  ;; GNU Emacs is free software: you can redistribute it and/or modify
index 59c084fffaefec81e6051fe8f9fc39bf33ce1880,7f2d67fc3cd2dadbaa289eae3832d29d60e3f66a..38e7270482d3d98e2ac7a8f97398ddedc964b1ce
@@@ -1,10 -1,8 +1,10 @@@
  ;;; pcmpl-linux.el --- functions for dealing with GNU/Linux completions
  
  ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
 +;; Package: pcomplete
 +
  ;; This file is part of GNU Emacs.
  
  ;; GNU Emacs is free software: you can redistribute it and/or modify
index 7960141f03ee985808aed1a4ae715a3b296b10e7,6d160a68085d7cb22424a37d995ca53042d19ce6..cf6158da3fda17319a0966757453e23a57c9a71c
@@@ -1,10 -1,8 +1,10 @@@
  ;;; pcmpl-rpm.el --- functions for dealing with rpm completions
  
  ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- ;;   2008, 2009, 2010  Free Software Foundation, Inc.
+ ;;   2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
 +;; Package: pcomplete
 +
  ;; This file is part of GNU Emacs.
  
  ;; GNU Emacs is free software: you can redistribute it and/or modify
index f2c19ca71c4361406fee27c87a3689e95327547c,afa951b184bb8fdd4b012bb2bcf442f7b7fd793a..b4c79831a598e67b498bdfc837a89b78bea9ebe7
@@@ -1,10 -1,8 +1,10 @@@
  ;;; pcmpl-unix.el --- standard UNIX completions
  
  ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
 +;; Package: pcomplete
 +
  ;; This file is part of GNU Emacs.
  
  ;; GNU Emacs is free software: you can redistribute it and/or modify
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 3e6c2896752c38044fd69efe1bc341cfe24fe2c2,e467ca089295d0474f0e07e69409ba2f82fd7786..2911b97db898db337bd7a64a3117fb6a06712c28
@@@ -1,10 -1,10 +1,10 @@@
  ;;; octave-mod.el --- editing Octave source files under Emacs
  
- ;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
- ;;   2009, 2010  Free Software Foundation, Inc.
+ ;; Copyright (C) 1997, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ ;; Free Software Foundation, Inc.
  
  ;; Author: Kurt Hornik <Kurt.Hornik@wu-wien.ac.at>
 -;; Author: John Eaton <jwe@bevo.che.wisc.edu>
 +;; Author: John Eaton <jwe@octave.org>
  ;; Maintainer: Kurt Hornik <Kurt.Hornik@wu-wien.ac.at>
  ;; Keywords: languages
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/ps-bdf.el
Simple merge
diff --cc lisp/ps-def.el
Simple merge
diff --cc lisp/ps-mule.el
Simple merge
Simple merge
diff --cc lisp/ps-samp.el
Simple merge
diff --cc lisp/rect.el
Simple merge
Simple merge
diff --cc lisp/repeat.el
Simple merge
diff --cc lisp/replace.el
Simple merge
Simple merge
diff --cc lisp/reveal.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/select.el
index 0f43ce05822d7ada73423daaf6df9f655b62068d,9e7d844ff2276e5393ce211ee7583c66c6072c3b..b8bc8ff25ea30dbb1586744c3886ed888c96ab1f
@@@ -1,8 -1,5 +1,8 @@@
  ;;; select.el --- lisp portion of standard selection support
  
- ;;   2008, 2009, 2010  Free Software Foundation, Inc.
 +;; Copyright (C) 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
++;;   2008, 2009, 2010, 2011  Free Software Foundation, Inc.
 +
  ;; Maintainer: FSF
  ;; Keywords: internal
  
diff --cc lisp/server.el
Simple merge
diff --cc lisp/sha1.el
Simple merge
diff --cc lisp/shell.el
Simple merge
diff --cc lisp/simple.el
Simple merge
Simple merge
diff --cc lisp/sort.el
Simple merge
diff --cc lisp/startup.el
Simple merge
diff --cc lisp/tabify.el
index 591a9432fe589ad342b5cb7518ea5f4bced7a283,d6731c032fd151afcd4e8c516bf9da11d2df9951..0c5ca8413efa2f78e83eb64752563f1934cf0ccb
@@@ -1,10 -1,9 +1,10 @@@
  ;;; tabify.el --- tab conversion commands for Emacs
  
  ;; Copyright (C) 1985, 1994, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Maintainer: FSF
 +;; Package: emacs
  
  ;; This file is part of GNU Emacs.
  
Simple merge
diff --cc lisp/term.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/time.el
Simple merge
index 51d13fe3920786359d74538675be5de3d7ecdfe3,ddaf16043a30058ab5174e3e3135b6675c5e239a..7339dcecc2b4ab674dd38d6a4461cd889c5e56a4
@@@ -1,11 -1,10 +1,11 @@@
  ;;; tool-bar.el --- setting up the tool bar
- ;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
- ;;   2009, 2010  Free Software Foundation, Inc.
+ ;;
+ ;; Copyright (C) 2000, 2001, 2002, 2003, 2004,
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+ ;;
  ;; Author: Dave Love <fx@gnu.org>
  ;; Keywords: mouse frames
 +;; Package: emacs
  
  ;; This file is part of GNU Emacs.
  
diff --cc lisp/tooltip.el
Simple merge
Simple merge
Simple merge
Simple merge
index 45b023ffb600e2e854718cf7ff36c987d828a6f0,de0f57d073cc960558a5765906a20e2290c05f6e..dc6fd979231e02b9089ce6657c4e063fceb3e40d
  
  ;; Local variables:
  ;; coding: utf-8
 -;; add-log-time-zone-rule: t
  ;; End:
  
-   Copyright (C) 1999, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009,
-     2010  Free Software Foundation, Inc.
+     Copyright (C) 1999, 2001, 2002, 2004, 2005,
+       2006, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
    This file is part of GNU Emacs.
  
Simple merge
index 37fd6005995d6e6427b72be12223045062a8ddea,607f4da3d09d21a517ee900b259b2614cd993016..c373ef6f66a281fc048bfb394ccd79412d62239c
@@@ -1,7 -1,7 +1,7 @@@
 -;;; url-cookie.el --- Netscape Cookie support
 +;;; url-cookie.el --- URL cookie support
  
  ;; Copyright (C) 1996, 1997, 1998, 1999, 2004, 2005, 2006, 2007, 2008,
- ;;   2009, 2010  Free Software Foundation, Inc.
+ ;;   2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Keywords: comm, data, processes, hypermedia
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/url/url.el
Simple merge
Simple merge
index 6e2ab7327defeecc69caed633803cc5eed4a40b0,65f7ce935477f2f9b3166b3ae0ca96c11cc23baa..5b680ea4f1e7487a9e210a405ffd2765ade9a85c
@@@ -1,10 -1,10 +1,10 @@@
  ;;; compare-w.el --- compare text between windows for Emacs
  
  ;; Copyright (C) 1986, 1989, 1993, 1997, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Maintainer: FSF
 -;; Keywords: convenience files
 +;; Keywords: convenience files vc
  
  ;; This file is part of GNU Emacs.
  
index 140f299b610591737220460c8142f5050e02a324,ffad44ab7ff54c54dc760417a17019e54aacecc1..ffcb3a9d53da4511ddd9a648a35cdfbf92da658c
@@@ -1,10 -1,10 +1,10 @@@
  ;;; cvs-status.el --- major mode for browsing `cvs status' output -*- coding: utf-8 -*-
  
  ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
 -;; Keywords: pcl-cvs cvs status tree tools
 +;; Keywords: pcl-cvs cvs status tree vc tools
  
  ;; This file is part of GNU Emacs.
  
index c16c2460e75ef65fec3d5ad17efa975aabf2435a,b02c5d911d8754ac56fb1bd82ce75fca7d0b0e52..e8c79aead647c4e0bf2b3f8fb1f8b7626b8eafcc
@@@ -1,10 -1,10 +1,10 @@@
  ;;; diff-mode.el --- a mode for viewing/editing context diffs
  
  ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,2005, 2006,
- ;;   2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;;   2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
 -;; Keywords: convenience patch diff
 +;; Keywords: convenience patch diff vc
  
  ;; This file is part of GNU Emacs.
  
diff --cc lisp/vc/diff.el
Simple merge
index 70352751d8d8c5d200dcf828ce8c10fd78b578df,b2ebfadc963b6baac32a4af602b44751944a164c..fbbdc3b7bce97353e01ca69c814280578e706f2c
@@@ -1,11 -1,9 +1,10 @@@
  ;;; ediff-diff.el --- diff-related utilities
  
- ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- ;;   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
- ;;   Free Software Foundation, Inc.
+ ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+ ;;   2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: ediff
  
  ;; This file is part of GNU Emacs.
  
index 06a600f0af4fbbb7887fb29f3d278e12b3caf77c,79b6b5decf66af511863b8bbc2ae3875b4e64056..b77f5f2aafad63fbffbffeb8f6cef753b013ed0f
@@@ -1,10 -1,9 +1,10 @@@
  ;;; ediff-help.el --- Code related to the contents of Ediff help buffers
  
  ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
- ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: ediff
  
  ;; This file is part of GNU Emacs.
  
index e917d29a7b4d9cfe088ba0b00fe4a8b6abc3ed7d,10b9ac0394feeb515ee1911e99f3e9a3eaed9442..83c807564f9302cc9e42415abecc9548aa4936e8
@@@ -1,10 -1,9 +1,10 @@@
  ;;; ediff-hook.el --- setup for Ediff's menus and autoloads
  
  ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
- ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: ediff
  
  ;; This file is part of GNU Emacs.
  
index 9665a21cd141daa5df11d01bfffeb5be9ade30e9,06a29b84997dcb91e012244afcf60c7b735c137a..56ccc540352928cc006099fcfaffa0934e85a3ac
@@@ -1,10 -1,9 +1,10 @@@
  ;;; ediff-init.el --- Macros, variables, and defsubsts used by Ediff
  
  ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- ;;   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: ediff
  
  ;; This file is part of GNU Emacs.
  
index 4c6aee15d1d7ff77b1a8a4427df7ddd611483854,42cfcd521f58c3f42218fc2b6474eabbaa2d55f6..b63bd15f4eaf7b142f66c2e22e87a1dab9677c0d
@@@ -1,10 -1,9 +1,10 @@@
  ;;; ediff-merg.el --- merging utilities
  
  ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- ;;   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: ediff
  
  ;; This file is part of GNU Emacs.
  
index 393bdcb673c994293c647c0b4a3c23d9f6cb0b59,a9e19c79babacf279e0f4c2348956b007fef20bf..c851439de38d1c26c46d99fa0b70babb072cc96c
@@@ -1,11 -1,9 +1,10 @@@
  ;;; ediff-ptch.el --- Ediff's  patch support
  
- ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010
- ;;   Free Software Foundation, Inc.
+ ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+ ;;   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: ediff
  
  ;; This file is part of GNU Emacs.
  
index 581aad3e4dc4ec69d783f193b9889dbdcd3e7ccb,576d8f687c24ef3877a1a7878c38eb81afbfe246..487c5e80786b0ce37bffaba911c8ed5bf1ffa40f
@@@ -1,10 -1,9 +1,10 @@@
  ;;; ediff-vers.el --- version control interface to Ediff
  
  ;; Copyright (C) 1995, 1996, 1997, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: ediff
  
  ;; This file is part of GNU Emacs.
  
index 4d6666a86f206ac841b5f14328a586cd8ec46627,db4b57cbe0706ab8e56d9e9f4f233d1e36039626..1057dd4c9aa90266ccd48be0ada50831e07098c3
@@@ -1,11 -1,9 +1,10 @@@
  ;;; ediff-wind.el --- window manipulation utilities
  
- ;; Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2004,
- ;;   2005, 2006, 2007, 2008, 2009, 2010
- ;;   Free Software Foundation, Inc.
+ ;; Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2002, 2003,
+ ;;   2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
 +;; Package: ediff
  
  ;; This file is part of GNU Emacs.
  
Simple merge
index c7f37c5001184df5c7101520123878e1c0698b21,865b1f318184ea366f3ebd960945ccc3769638d6..94e70ff2b338a91f24a4dc35968eb8a8d38ec503
@@@ -1,10 -1,10 +1,10 @@@
  ;;; log-edit.el --- Major mode for editing CVS commit messages
  
  ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- ;;   2008, 2009, 2010  Free Software Foundation, Inc.
+ ;;   2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
 -;; Keywords: pcl-cvs cvs commit log
 +;; Keywords: pcl-cvs cvs commit log vc
  
  ;; This file is part of GNU Emacs.
  
index ac32cea6202d8266229d4dc3c6b2efa41bbb1ee1,7f8775e94fae9837f867bd05dc6ea21b56681c6e..fbcb88b3f729e1e95895ceb6e509566187eeaafb
@@@ -1,10 -1,10 +1,10 @@@
  ;;; log-view.el --- Major mode for browsing RCS/CVS/SCCS log output
  
  ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
- ;;   2008, 2009, 2010  Free Software Foundation, Inc.
+ ;;   2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
 -;; Keywords: rcs sccs cvs log version-control tools
 +;; Keywords: rcs, sccs, cvs, log, vc, tools
  
  ;; This file is part of GNU Emacs.
  
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/vc/pcvs.el
Simple merge
index 32f829f814e5862027b49c9f9cb3acb9a4884908,3475b4144c1efd0c04811447febe0e3b154e2d51..296ae635d0b009064a2727ee7c9ad84c2cde7639
@@@ -1,10 -1,10 +1,10 @@@
  ;;; smerge-mode.el --- Minor mode to resolve diff3 conflicts
  
  ;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- ;;   2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;;   2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
 -;; Keywords: tools revision-control merge diff3 cvs conflict
 +;; Keywords: vc, tools, revision control, merge, diff3, cvs, conflict
  
  ;; This file is part of GNU Emacs.
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 48a86454f741b2e9d770e05217fa584d88c6a136,b9b63ce50405012754558b9cedfba1c679864a14..6d3a6991354f116dfa28c83054d174ec612c3d16
@@@ -1,10 -1,9 +1,10 @@@
  ;;; vc-git.el --- VC backend for the git version control system
  
- ;; Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;; Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Alexandre Julliard <julliard@winehq.org>
 -;; Keywords: tools
 +;; Keywords: vc tools
 +;; Package: vc
  
  ;; This file is part of GNU Emacs.
  
index 2a2879aadb875da990837b43c985ee1c65c011dc,4a38c3dfa3adc813120c645ae918ebc68fe9f3f7..62deb5b0507d04198f970b425950d142f1d24baf
@@@ -1,10 -1,9 +1,10 @@@
  ;;; vc-hg.el --- VC backend for the mercurial version control system
  
- ;; Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+ ;; Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Author: Ivan Kanis
 -;; Keywords: tools
 +;; Keywords: vc tools
 +;; Package: vc
  
  ;; This file is part of GNU Emacs.
  
Simple merge
index a1ca6ab4d6540564c0e27be4d6908b6a970f2dc8,71d9ec1ed4ef2e5bd3626084cfdf1a7eb2915358..0bf30aca6a3714013efafe04b3343f9341377fcc
@@@ -1,10 -1,9 +1,10 @@@
  ;;; vc-mtn.el --- VC backend for Monotone
  
- ;; Copyright (C) 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;; Copyright (C) 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
 -;; Keywords: 
 +;; Keywords: vc
 +;; Package: vc
  
  ;; This file is part of GNU Emacs.
  
Simple merge
Simple merge
Simple merge
diff --cc lisp/vc/vc.el
Simple merge
diff --cc lisp/vcursor.el
Simple merge
diff --cc lisp/view.el
Simple merge
diff --cc lisp/w32-fns.el
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lisp/widget.el
Simple merge
diff --cc lisp/window.el
Simple merge
diff --cc lisp/woman.el
Simple merge
diff --cc lisp/x-dnd.el
Simple merge
diff --cc lwlib/ChangeLog
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc lwlib/lwlib.c
Simple merge
diff --cc lwlib/lwlib.h
Simple merge
diff --cc lwlib/xlwmenu.c
Simple merge
diff --cc lwlib/xlwmenu.h
Simple merge
Simple merge
diff --cc make-dist
index 3d610c1eee60eb41d7e112b6217f4a149d643e5e,2fb443dfee670a220c13637dbef7d87eb31ffa54..88a307d7ca11a7ea057c03c546c5bc339fa36304
+++ b/make-dist
@@@ -1,32 -1,29 +1,32 @@@
  #!/bin/sh
 +### make-dist: create an Emacs distribution tar file from current srcdir
  
 -#### make-dist: create an Emacs distribution tar file from the current
 -#### source tree.  This basically creates a duplicate directory
 -#### structure, and then hard links into it only those files that should
 -#### be distributed.  This means that if you add a file with an odd name,
 -#### you should make sure that this script will include it.
 +## Copyright (C) 1995, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005,
- ##   2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
++##   2006, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
 -# Copyright (C) 1995, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005,
 -#   2006, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
 +## This file is part of GNU Emacs.
  
 -# This file is part of GNU Emacs.
 -#
 -# GNU Emacs 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.
 +## GNU Emacs 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.
  
 -# GNU Emacs 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.
 +## GNU Emacs 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.  If not, see <http://www.gnu.org/licenses/>.
 +## You should have received a copy of the GNU General Public License
 +## along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
  
 +### Commentary:
 +
 +## This basically creates a duplicate directory structure, and then
 +## hard links into it only those files that should be distributed.
 +## This means that if you add a file with an odd name, you should make
 +## sure that this script will include it.
 +
 +### Code:
  
  progname="$0"
  
Simple merge
Simple merge
Simple merge
diff --cc msdos/sed2x.inp
Simple merge
Simple merge
diff --cc msdos/sed5x.inp
Simple merge
diff --cc msdos/sed6.inp
Simple merge
Simple merge
index 26d22b4c90e09b24243b1f7eb6661c583aa9b8fe,5d2f1fe6f2a79741b28c5841ca90439e2ae5566b..84925209c15c0815ecd6c7ba7723a17fccd46026
  
  ;; Local Variables:
  ;; coding: utf-8
 -;; add-log-time-zone-rule: t
  ;; End:
  
-   Copyright (C) 2008, 2009, 2010  Free Software Foundation, Inc.
+     Copyright (C) 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
    This file is part of GNU Emacs.
  
diff --cc nextstep/README
Simple merge
diff --cc nt/ChangeLog
Simple merge
diff --cc nt/INSTALL
index ada4b6a8bbea18e2873182cce56dee7460e45236,6de3ad29835f08f854b97fc903334b8877ad8cb2..c051e5ca72ba8c6194659885e9bf7ee761f02ea2
@@@ -1,7 -1,7 +1,7 @@@
 -                    Building and Installing Emacs
 -              on Windows NT/2K/XP and Windows 95/98/ME
 +                  Building and Installing Emacs on Windows
 +                          (from 95 to 7 and beyond)
  
-   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
      Free Software Foundation, Inc.
    See the end of the file for license conditions.
  
diff --cc nt/README
Simple merge
diff --cc nt/README.W32
Simple merge
diff --cc nt/addpm.c
Simple merge
diff --cc nt/addsection.c
Simple merge
diff --cc nt/cmdproxy.c
Simple merge
diff --cc nt/config.nt
index 92e466d185ad075195ced0c1f5fe82ce01441ffc,47881cb42672c5a48a613efb9637b174ce8ddb04..8a203372936cbb1a8cb5aa30ae5d97fcce5079b3
@@@ -1,7 -1,6 +1,7 @@@
  /* GNU Emacs site configuration template file.  -*- C -*-
 -   Copyright (C) 1988, 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006,
 +
 +Copyright (C) 1988, 1993, 1994, 2001, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+      2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
index 410087687bd3f93c5ee988c402f510b3d07e46d7,ff1d84abc51165c6e0b116c23583f3de793e1be4..9dc0e6da5b6f776f6d9884fbc02274a976102ad0
@@@ -1,8 -1,8 +1,8 @@@
  @echo off\r
  rem   ----------------------------------------------------------------------\r
 -rem   Configuration script for MS Windows 95/98/Me and NT/2000/XP\r
 +rem   Configuration script for MS Windows operating systems\r
  rem   Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005,\r
- rem      2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.\r
+ rem      2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.\r
  \r
  rem   This file is part of GNU Emacs.\r
  \r
diff --cc nt/ddeclient.c
Simple merge
diff --cc nt/emacs.rc
index 253065b47c47863a77c79c078571a8d5e07ca5d0,5cb2d3516d97745db966a17c544992a8490a867f..9a71935f251879f27ea7c9f54fb94b3da7eab3a2
@@@ -25,12 -25,12 +25,12 @@@ BEGI
        BEGIN
            VALUE "CompanyName", "Free Software Foundation\0"
            VALUE "FileDescription", "GNU Emacs: The extensible self-documenting text editor\0"
 -          VALUE "FileVersion", "23, 2, 91, 0\0"
 +          VALUE "FileVersion", "24, 0, 50, 0\0"
            VALUE "InternalName", "Emacs\0"
-           VALUE "LegalCopyright", "Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010\0"
+           VALUE "LegalCopyright", "Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011\0"
            VALUE "OriginalFilename", "emacs.exe"
            VALUE "ProductName", "Emacs\0"
 -          VALUE "ProductVersion", "23, 2, 91, 0\0"
 +          VALUE "ProductVersion", "24, 0, 50, 0\0"
            VALUE "OLESelfRegister", "\0"
         END
       END
index 98f0bcd4f84fe9ed9e3a6390f7946d52aefcd475,a5dc2d91915a4e744f5c94f8c337e94b5c2daeee..27ee1437989bbbe6159aa8c0258e5fad8bedd8e8
@@@ -23,12 -23,12 +23,12 @@@ BEGI
        BEGIN
            VALUE "CompanyName", "Free Software Foundation\0"
            VALUE "FileDescription", "GNU EmacsClient: Client for the extensible self-documenting text editor\0"
 -          VALUE "FileVersion", "23, 2, 91, 0\0"
 +          VALUE "FileVersion", "24, 0, 50, 0\0"
            VALUE "InternalName", "EmacsClient\0"
-           VALUE "LegalCopyright", "Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010\0"
+           VALUE "LegalCopyright", "Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011\0"
            VALUE "OriginalFilename", "emacsclientw.exe"
            VALUE "ProductName", "EmacsClient\0"
 -          VALUE "ProductVersion", "23, 2, 91, 0\0"
 +          VALUE "ProductVersion", "24, 0, 50, 0\0"
            VALUE "OLESelfRegister", "\0"
         END
       END
diff --cc nt/gmake.defs
Simple merge
Simple merge
diff --cc nt/nmake.defs
Simple merge
diff --cc nt/preprep.c
index 220b0e40ce6b5250bceaa84ee4d39b59f352ed6d,142d64dfe5781d7ead6797a9e5674cd4f68f9e1a..285ff69b6dbc732444f9ae179225437a168e2d27
@@@ -1,6 -1,6 +1,6 @@@
 -/* Pro-process emacs.exe for profiling by MSVC.
 +/* Pre-process emacs.exe for profiling by MSVC.
     Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-      2008, 2009, 2010  Free Software Foundation, Inc.
+      2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
diff --cc nt/runemacs.c
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc src/.gdbinit
Simple merge
diff --cc src/ChangeLog
index a8755321a4d4137f15e7993e1def6964e1aaca77,f947b5aeef63128a01d4aa2625d4803f9af4cc55..f473da74811e17ab9350a4357c874d46c5e0a450
@@@ -1,85 -1,3 +1,91 @@@
++2011-01-14  Eli Zaretskii  <eliz@gnu.org>
++
++      * image.c (png_jmpbuf): Remove definition.
++      (my_png_error, png_load): Don't use png_jmpbuf.
++
++2011-01-14  Eli Zaretskii  <eliz@gnu.org>
 +2011-01-11  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * image.c (imagemagick_load_image, Finit_image_library): Free
 +      intermediate image after creating a MagickWand from it.  Terminate
 +      MagickWand environment after image loading.
 +
 +2011-01-10  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * dbusbind.c (Fdbus_register_service): Raise an error in case of
 +      unexpected return values.
 +      (Fdbus_register_method): Remove connection initialization.
 +
 +2011-01-10  Jan Moringen  <jan.moringen@uni-bielefeld.de>
 +
 +      * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
 +      used by Fdbus_register_service.
 +      (QCdbus_request_name_replace_existing): Likewise.
 +      (QCdbus_request_name_do_not_queue): Likewise.
 +      (QCdbus_request_name_reply_primary_owner): Likewise.
 +      (QCdbus_request_name_reply_in_queue): Likewise.
 +      (QCdbus_request_name_reply_exists): Likewise.
 +      (QCdbus_request_name_reply_already_owner): Likewise.
 +      (Fdbus_register_service): New function.
 +      (Fdbus_register_method): Use Fdbus_register_service to do the name
 +      registration.
 +      (syms_of_dbusbind): Add symbols dbus-register-service,
 +      :allow-replacement, :replace-existing, :do-not-queue,
 +      :primary-owner, :existing, :in-queue and :already-owner.
 +
 +2011-01-09  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
 +      when removing extra buttons.
 +
 +2011-01-08  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * fns.c (Fyes_or_no_p): Doc fix.
 +
 +2011-01-08  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * fns.c (Fyes_or_no_p): Add usage.
 +
 +2011-01-08  Glenn Morris  <rgm@gnu.org>
 +
 +      * makefile.w32-in ($(EMACS)):
 +      * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
 +
 +      * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
 +      * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
 +
 +2011-01-07  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * image.c (imagemagick_load_image): Fix some resource leaks and
 +      error handling.
 +
 +2011-01-07  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * fns.c (Fyes_or_no_p): Accept format string args.
 +
 +2011-01-07  Glenn Morris  <rgm@gnu.org>
 +
 +      * emacs.c (no_site_lisp): New int.
 +      (USAGE1): Add --no-site-lisp, mention -Q uses it.
 +      (main): Set no_site_lisp.
 +      (standard_args): Add --no-site-lisp.
 +      * lisp.h (no_site_lisp): New int.
 +      * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
 +      directories to Vload_path.
 +
 +2011-01-05  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * alloc.c (mark_stack): Use __builtin_unwind_init if available.
 +
 +2011-01-04  Jan Moringen  <jan.moringen@uni-bielefeld.de>
 +
 +      * dbusbind.c (Fdbus_register_method): Added optional parameter
 +      dont_register_service.  Updated docstring accordingly.
 +
 +2011-01-04  Glenn Morris  <rgm@gnu.org>
 +
 +      * emacs.c (emacs_copyright): Update short copyright year to 2011.
 +
  2011-01-03  Eli Zaretskii  <eliz@gnu.org>
  
        * image.c (png_jmpbuf): Remove definition.
@@@ -29502,10 -22541,10 +29508,9 @@@ See ChangeLog.10 for earlier changes
  
  ;; Local Variables:
  ;; coding: utf-8
 -;; add-log-time-zone-rule: t
  ;; End:
  
-   Copyright (C) 2007, 2008, 2009, 2010, 2011
-     Free Software Foundation, Inc.
+     Copyright (C) 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
    This file is part of GNU Emacs.
  
diff --cc src/ChangeLog.1
Simple merge
Simple merge
diff --cc src/ChangeLog.2
Simple merge
diff --cc src/ChangeLog.3
Simple merge
diff --cc src/ChangeLog.4
Simple merge
diff --cc src/ChangeLog.5
Simple merge
diff --cc src/ChangeLog.6
Simple merge
diff --cc src/ChangeLog.8
Simple merge
diff --cc src/ChangeLog.9
Simple merge
diff --cc src/Makefile.in
index 0f85428b88ce1bd8d7522590d9b760cf8575b3b8,e92f2bb3b858361b5278d185f1843276d157716d..57d76fc75680037a2268e4e1a1ea35f00afc8741
@@@ -1,8 -1,7 +1,8 @@@
 -# Makefile for GNU Emacs.
 +# src/Makefile for GNU Emacs.
 +
  # Copyright (C) 1985, 1987, 1988, 1993, 1994, 1995, 1999, 2000, 2001, 2002,
- #   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
- #   Free Software Foundation, Inc.
+ #               2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ #               Free Software Foundation, Inc.
  
  # This file is part of GNU Emacs.
  
diff --cc src/README
Simple merge
diff --cc src/atimer.c
Simple merge
diff --cc src/atimer.h
Simple merge
Simple merge
diff --cc src/buffer.c
Simple merge
diff --cc src/buffer.h
Simple merge
diff --cc src/bytecode.c
Simple merge
diff --cc src/callint.c
Simple merge
diff --cc src/callproc.c
Simple merge
Simple merge
diff --cc src/casetab.c
Simple merge
diff --cc src/category.c
Simple merge
diff --cc src/category.h
Simple merge
diff --cc src/ccl.c
Simple merge
diff --cc src/ccl.h
Simple merge
diff --cc src/character.c
Simple merge
diff --cc src/character.h
Simple merge
diff --cc src/charset.c
Simple merge
diff --cc src/charset.h
Simple merge
diff --cc src/chartab.c
Simple merge
diff --cc src/cm.c
Simple merge
diff --cc src/cm.h
Simple merge
diff --cc src/cmds.c
Simple merge
diff --cc src/coding.c
Simple merge
diff --cc src/coding.h
Simple merge
diff --cc src/commands.h
Simple merge
diff --cc src/composite.c
Simple merge
diff --cc src/composite.h
Simple merge
diff --cc src/config.in
Simple merge
diff --cc src/data.c
Simple merge
diff --cc src/dired.c
Simple merge
Simple merge
diff --cc src/dispnew.c
Simple merge
diff --cc src/disptab.h
Simple merge
diff --cc src/doc.c
Simple merge
diff --cc src/doprnt.c
Simple merge
diff --cc src/dosfns.c
Simple merge
diff --cc src/dosfns.h
Simple merge
diff --cc src/editfns.c
Simple merge
Simple merge
diff --cc src/eval.c
Simple merge
diff --cc src/fileio.c
Simple merge
diff --cc src/filelock.c
Simple merge
diff --cc src/filemode.c
Simple merge
diff --cc src/floatfns.c
Simple merge
diff --cc src/font.c
Simple merge
diff --cc src/font.h
Simple merge
diff --cc src/fontset.c
Simple merge
diff --cc src/fontset.h
Simple merge
diff --cc src/frame.c
Simple merge
diff --cc src/frame.h
Simple merge
diff --cc src/fringe.c
Simple merge
diff --cc src/ftfont.c
Simple merge
diff --cc src/ftfont.h
Simple merge
diff --cc src/ftxfont.c
Simple merge
diff --cc src/gtkutil.c
Simple merge
diff --cc src/gtkutil.h
Simple merge
diff --cc src/indent.c
Simple merge
diff --cc src/indent.h
Simple merge
diff --cc src/insdel.c
Simple merge
diff --cc src/intervals.c
Simple merge
diff --cc src/intervals.h
Simple merge
diff --cc src/keyboard.c
Simple merge
diff --cc src/keyboard.h
Simple merge
diff --cc src/keymap.c
Simple merge
diff --cc src/keymap.h
Simple merge
diff --cc src/m/alpha.h
index 0e7d182fee75d25b2a9b154470bac6e65f635d8a,e43d3cbd3986439f0c497fa31a9df122aef1822e..d6d4202cb3b517c430c85471cfdcbf866e10120f
@@@ -1,7 -1,6 +1,7 @@@
  /* Machine description file for the alpha chip.
 -   Copyright (C) 1994, 1997, 1999, 2001, 2002, 2003, 2004, 2005, 2006,
 +
 +Copyright (C) 1994, 1997, 1999, 2001, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+                  2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  Author: Rainer Schoepf
  (according to authors.el)
Simple merge
diff --cc src/m/ia64.h
Simple merge
Simple merge
diff --cc src/m/ibms390.h
index 1a19f7233a0d3a9ccb5dd7ed792d65a1dc53a191,77e463ad31852640d166a3cbb2fa3200fdd0a401..eef6c75b1502a2d92c049ed2376687746ed7eaf5
@@@ -1,7 -1,6 +1,7 @@@
 -/* machine description file template.
 -   Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
 +/* Machine description file for IBM S390 in 32-bit mode
 +
 +Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-   2008, 2009, 2010  Free Software Foundation, Inc.
+                  2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
index 2ef14a22945f4b90aae6c6d9bb4d3d5e63ea1ac5,b91b2fe574984698cd491b9e2c18b7d1884e28c5..467526fe0c69b075733643e91a3d4b2ad711837c
@@@ -1,7 -1,6 +1,7 @@@
 -/* machine description file for IBM S390 in 64-bit mode
 -   Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
 -     Free Software Foundation, Inc.
 +/* Machine description file for IBM S390 in 64-bit mode
 +
- Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
++Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
 +  Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
Simple merge
diff --cc src/m/iris4d.h
Simple merge
diff --cc src/m/m68k.h
index df930d511f7dbd7e8f18b48aa695e17e1277e897,43094f1c3995b74b26766aa5070e5d3620fb542d..6a516ca3a50ef9e7b1550faca7d6f4c89f8543a2
@@@ -1,7 -1,6 +1,7 @@@
  /* Machine description file for generic Motorola 68k.
 -   Copyright (C) 1985, 1995, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
 +
 +Copyright (C) 1985, 1995, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-   2008, 2009, 2010  Free Software Foundation, Inc.
+                  2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
diff --cc src/m/macppc.h
Simple merge
diff --cc src/m/sparc.h
Simple merge
index 0d8e78622a6dbe399e03868b4b7a84d671fd8b42,4eb4fbe5afa8641eb48229bba7239e92abdaa77a..cae95a802b31e1962830013a751d52a17031476c
@@@ -1,7 -1,6 +1,7 @@@
  /* machine description file template.
 -   Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
 +
 +Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-   2008, 2009, 2010  Free Software Foundation, Inc.
+                  2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
diff --cc src/m/vax.h
index 16e790a27695e2c9fb799f829421374dafbc5c40,4f70dd1770fdc5ace3bc9e8c95afc5c1d3311f87..39550a42fe4db7fff905518de57be493b6c262f1
@@@ -1,7 -1,6 +1,7 @@@
  /* machine description file for vax.
 -   Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
 +
 +Copyright (C) 1985, 1986, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-   2008, 2009, 2010  Free Software Foundation, Inc.
+                  2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
diff --cc src/macros.c
Simple merge
diff --cc src/macros.h
Simple merge
diff --cc src/marker.c
Simple merge
Simple merge
diff --cc src/menu.c
Simple merge
diff --cc src/menu.h
Simple merge
diff --cc src/minibuf.c
Simple merge
diff --cc src/msdos.c
Simple merge
diff --cc src/msdos.h
Simple merge
diff --cc src/nsfns.m
Simple merge
diff --cc src/nsfont.m
Simple merge
diff --cc src/nsimage.m
Simple merge
diff --cc src/nsmenu.m
Simple merge
diff --cc src/nsselect.m
Simple merge
diff --cc src/nsterm.h
Simple merge
diff --cc src/nsterm.m
Simple merge
diff --cc src/print.c
Simple merge
diff --cc src/process.c
Simple merge
diff --cc src/process.h
Simple merge
diff --cc src/puresize.h
Simple merge
diff --cc src/ralloc.c
Simple merge
diff --cc src/regex.c
Simple merge
Simple merge
Simple merge
diff --cc src/s/aix4-2.h
Simple merge
Simple merge
diff --cc src/s/cygwin.h
index 157ef72f550d5a49348bb4e31357799a3e5d6e1c,27ca8813584a197d8e980c7564eff1c8c54b7bb0..774ef3a9ab5cb9b6a23bf8bb181fe9dd2348a9a4
@@@ -1,7 -1,6 +1,7 @@@
  /* System description header file for Cygwin.
 -   Copyright (C) 1985, 1986, 1992, 1999, 2002, 2003, 2004, 2005, 2006,
 +
 +Copyright (C) 1985, 1986, 1992, 1999, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+                  2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
diff --cc src/s/darwin.h
Simple merge
diff --cc src/s/freebsd.h
index cfed343d6c552908898cd0a65b5cf49018320c29,bbcbaa667fa3884cfd8b214c216f94e4b1c75ed7..99dc050bfae72c8b744face942937bcf116a6f8a
@@@ -1,8 -1,9 +1,8 @@@
  /* System description header for FreeBSD systems.
 -   This file describes the parameters that system description files
 -   should define or not.
 -   Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
 +
 +Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-   2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
-   Free Software Foundation, Inc.
+                  2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+                  Free Software Foundation, Inc.
  
  Author: Shawn M. Carey
  (according to authors.el)
index 9327423b42f0d561b4daf7e38233d3e7b4fb2494,c13cb607a95b5695da552926f3e5eb8cf789fb48..9c37b8eec033719c300eeddf7e60b48c94b19692
@@@ -1,10 -1,7 +1,10 @@@
  /* This file is the configuration file for Linux-based GNU systems
 -   Copyright (C) 1985, 1986, 1992, 1994, 1996, 1999, 2001, 2002, 2003, 2004,
 +
 +Copyright (C) 1985, 1986, 1992, 1994, 1996, 1999, 2001, 2002, 2003, 2004,
-   2005, 2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+                  2005, 2006, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
 +This file was put together by Michael K. Johnson and Rik Faith.
 +
  This file is part of GNU Emacs.
  
  GNU Emacs is free software: you can redistribute it and/or modify
diff --cc src/s/gnu.h
Simple merge
Simple merge
diff --cc src/s/irix6-5.h
Simple merge
diff --cc src/s/ms-w32.h
index 826a02bc60f6729f725b82a32cae1c3c3282c190,2b0a60cfab905ce5a32340c49cf5dfe66916000f..6900cbcc45bf908d92b9aca2bafba3872d6b087a
@@@ -1,7 -1,6 +1,7 @@@
  /* System description file for Windows NT.
 -   Copyright (C) 1993, 1994, 1995, 2001, 2002, 2003, 2004, 2005, 2006,
 +
 +Copyright (C) 1993, 1994, 1995, 2001, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+                  2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
diff --cc src/s/msdos.h
index 8dd8e3cf4906a3c17481519cc40140c8e45fb8dd,5f76dc77f8abdb753d1f0b76b6c877647f9f6702..3bb1dfe03e7cf25d200569ca49502b9b7903f3e4
@@@ -1,7 -1,7 +1,7 @@@
  /* System description file for MS-DOS
  
 -   Copyright (C) 1993, 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006,
 +Copyright (C) 1993, 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006,
-   2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+                  2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
diff --cc src/s/netbsd.h
Simple merge
index eb7ca85c5e59afb6fe7d8b000edaee287ab6e7f9,6ca5ebd6b2b095817fd21e3ebb518983e4826806..d6aad17d396c5f06ad8e4d066e0d6dddd9f07253
@@@ -1,9 -1,8 +1,9 @@@
  /* Template for system description header files.
     This file describes the parameters that system description files
     should define or not.
 -   Copyright (C) 1985, 1986, 1992, 1999, 2001, 2002, 2003, 2004, 2005,
 +
 +Copyright (C) 1985, 1986, 1992, 1999, 2001, 2002, 2003, 2004, 2005,
-   2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+                  2006, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
index 4dcb8e50200df6ad111deff3d685e635d0bbf2e9,0000000000000000000000000000000000000000..366d92b95a0cb848c55d6268962fb6aef8762aa7
mode 100644,000000..100644
--- /dev/null
@@@ -1,111 -1,0 +1,111 @@@
-   2006, 2007, 2008, 2009, 2010  Free Software Foundation, Inc.
 +/* Definitions file for GNU Emacs running on AT&T's System V Release 4
 +
 +Copyright (C) 1987, 1990, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
++                 2006, 2007, 2008, 2009, 2010, 2011  Free Software Foundation, Inc.
 +
 +Written by James Van Artsdalen of Dell Computer Corp. james@bigtex.cactus.org.
 +Subsequently improved for Dell 2.2 by Eric S. Raymond <esr@snark.thyrsus.com>.
 +
 +This file is part of GNU Emacs.
 +
 +GNU Emacs 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.
 +
 +GNU Emacs 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.  If not, see <http://www.gnu.org/licenses/>.  */
 +
 +/* Use the SysVr3 file for at least base configuration.  */
 +#define USG                           /* System III, System V, etc */
 +
 +#define USG5
 +#define USG5_4
 +
 +/* SYSTEM_TYPE should indicate the kind of system you are using.
 +   It sets the Lisp variable system-type.  */
 +#define SYSTEM_TYPE "usg-unix-v"
 +
 +/* The file containing the kernel's symbol table is called /unix.  */
 +#define KERNEL_FILE "/unix"
 +
 +/* The kernel symbol where the load average is found is named avenrun.  */
 +#define LDAV_SYMBOL "avenrun"
 +
 +/* setjmp and longjmp can safely replace _setjmp and _longjmp,
 +   but they will run slower.  */
 +#define _setjmp setjmp
 +#define _longjmp longjmp
 +
 +/* The docs for system V/386 suggest v.3 has sigpause, so let's try it.  */
 +#define HAVE_SYSV_SIGPAUSE
 +
 +/* On USG systems signal handlers return void.  */
 +#define SIGTYPE void
 +
 +/* Get FIONREAD from <sys/filio.h>.  Get <sys/ttold.h> to get struct tchars.
 +   But get <termio.h> first to make sure ttold.h doesn't interfere.
 +   And don't try to use SIGIO yet.  */
 +#include <sys/wait.h>
 +
 +#ifdef emacs
 +#include <sys/filio.h>
 +#include <termio.h>
 +#include <sys/ttold.h>
 +#include <signal.h>
 +#include <sys/stream.h>
 +#include <sys/stropts.h>
 +#include <sys/termios.h>
 +#define BROKEN_SIGIO
 +#endif
 +
 +/* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;
 +   instead, there's a system variable _sys_nsig.  Unfortunately, we need the
 +   constant to dimension an array.  So wire in the appropriate value here.  */
 +#define NSIG_MINIMUM 32
 +
 +/* We can support this.  */
 +#define CLASH_DETECTION
 +
 +/* Define HAVE_PTYS if the system supports pty devices.  */
 +#define HAVE_PTYS
 +
 +/* It is possible to receive SIGCHLD when there are no children
 +   waiting, because a previous waitsys(2) cleaned up the carcass of child
 +   without clearing the SIGCHLD pending info.  So, use a non-blocking
 +   wait3 instead, which maps to waitpid(2) in SysVr4. */
 +#define wait3(status, options, rusage) \
 +  waitpid ((pid_t) -1, (status), (options))
 +#define WRETCODE(w) (w >> 8)
 +
 +/* TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY
 +   subprocesses the usual way.  But TIOCSIGNAL does work for PTYs, and
 +   this is all we need.  */
 +#define TIOCSIGSEND TIOCSIGNAL
 +
 +/* This change means that we don't loop through allocate_pty too many
 +   times in the (rare) event of a failure.  */
 +#define FIRST_PTY_LETTER 'z'
 +
 +/* This sets the name of the master side of the PTY.  */
 +#define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
 +
 +/* Push various streams modules onto a PTY channel.  */
 +#define SETUP_SLAVE_PTY \
 +  if (ioctl (xforkin, I_PUSH, "ptem") == -1)  \
 +    fatal ("ioctl I_PUSH ptem", errno);               \
 +  if (ioctl (xforkin, I_PUSH, "ldterm") == -1)        \
 +    fatal ("ioctl I_PUSH ldterm", errno);     \
 +  if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \
 +    fatal ("ioctl I_PUSH ttcompat", errno);
 +
 +/* This definition was suggested for next release.  So give it a try.  */
 +#define HAVE_SOCKETS
 +
 +/* arch-tag: 1a0ed909-5faa-434b-b7c3-9d86c63d53a6
 +   (do not change this comment) */
diff --cc src/scroll.c
Simple merge
diff --cc src/search.c
Simple merge
diff --cc src/sound.c
Simple merge
diff --cc src/syntax.c
Simple merge
diff --cc src/syntax.h
Simple merge
diff --cc src/sysdep.c
Simple merge
diff --cc src/sysselect.h
Simple merge
diff --cc src/syssignal.h
Simple merge
diff --cc src/systime.h
Simple merge
diff --cc src/systty.h
Simple merge
diff --cc src/term.c
Simple merge
diff --cc src/termchar.h
Simple merge
diff --cc src/termhooks.h
Simple merge
diff --cc src/terminal.c
Simple merge
diff --cc src/terminfo.c
Simple merge
diff --cc src/textprop.c
Simple merge
diff --cc src/undo.c
Simple merge
diff --cc src/unexaix.c
Simple merge
diff --cc src/unexcoff.c
Simple merge
diff --cc src/unexcw.c
Simple merge
diff --cc src/unexelf.c
Simple merge
Simple merge
diff --cc src/unexw32.c
Simple merge
diff --cc src/vm-limit.c
Simple merge
diff --cc src/w16select.c
Simple merge
diff --cc src/w32.c
Simple merge
Simple merge
diff --cc src/w32fns.c
index 31feadc2d70163c4d327d0c78c6d964df220d55e,daea5120a4fda8e67c9233de221625bf76ae0983..e1081d2e9121c09bc5ac99fc2755a9473af1fcca
@@@ -1,8 -1,7 +1,8 @@@
  /* Graphical user interface functions for the Microsoft W32 API.
 -   Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
 +
 +Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-   2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
-   Free Software Foundation, Inc.
+                  2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+                  Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
diff --cc src/w32font.c
Simple merge
diff --cc src/w32font.h
Simple merge
diff --cc src/w32gui.h
Simple merge
diff --cc src/w32heap.c
Simple merge
diff --cc src/w32heap.h
Simple merge
diff --cc src/w32inevt.c
Simple merge
diff --cc src/w32menu.c
Simple merge
diff --cc src/w32proc.c
Simple merge
diff --cc src/w32reg.c
Simple merge
diff --cc src/w32select.c
Simple merge
diff --cc src/w32term.c
Simple merge
diff --cc src/w32term.h
Simple merge
Simple merge
diff --cc src/w32xfns.c
Simple merge
diff --cc src/widget.c
Simple merge
diff --cc src/widget.h
Simple merge
diff --cc src/window.c
Simple merge
diff --cc src/window.h
Simple merge
diff --cc src/xfaces.c
Simple merge
diff --cc src/xfns.c
Simple merge
diff --cc src/xfont.c
Simple merge
diff --cc src/xftfont.c
Simple merge
diff --cc src/xgselect.c
Simple merge
diff --cc src/xgselect.h
Simple merge
diff --cc src/xmenu.c
Simple merge
diff --cc src/xrdb.c
Simple merge
diff --cc src/xselect.c
Simple merge
diff --cc src/xsettings.c
index 83ca87ed0bd3df00d847a72c4433a3a4f1696b13,632a74d0d9ac881d450e6fd1b901ce0058447312..16c4603f592c52dae9a69d6dd9bd23df63d3875f
@@@ -1,5 -1,5 +1,5 @@@
 -/* Functions for handle font changes dynamically.
 +/* Functions for handle font and other changes dynamically.
-    Copyright (C) 2009, 2010
+    Copyright (C) 2009, 2010, 2011
                   Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
diff --cc src/xsettings.h
Simple merge
diff --cc src/xsmfns.c
Simple merge
diff --cc src/xterm.c
Simple merge
diff --cc src/xterm.h
Simple merge
Simple merge
Simple merge