* src/minibuf.c (history-length): Increase default from 30 to 100.
* lisp/cus-start.el (history-length): Bump :version.  [Backport]
Make most emulation packages obsolete.  [Backport]

* emulation/crisp.el, emulation/tpu-edt.el, emulation/tpu-extras.el:
* emulation/tpu-mapper.el, emulation/vi.el, emulation/vip.el:
* emulation/ws-mode.el: Move to obsolete/.
* doc/emacs/ack.texi (Acknowledgments): Remove some obsolete items.
* doc/emacs/misc.texi (Emulation): Remove section.
* doc/lispintro/emacs-lisp-intro.texi (Autoload): Update loaddefs.el details.
* doc/misc/efaq.texi (Finding a package with particular functionality):
Update example.
* doc/misc/vip.texi: Mention this is obsolete.
* erc/erc-track.el: Docstring fixes.
* lisp/Makefile.in (AUTOGEN_VCS): Remove emulation/tpu-edt.el.  [Backport]
* doc/misc/eieio.texi (Accessing Slots, CLOS compatibility): Adjust wording
since `setf' is in core rather than in CL nowadays.
* list/emulation/viper: Add some FIXME comments.
* lisp/progmodes/python.el (inferior-python-mode): Use add-hook.
* lisp/dired.el (dired-read-regexp): Make obsolete.  [Backport]
(dired-mark-files-regexp, dired-mark-files-containing-regexp)
(dired-flag-files-regexp):
* lisp/dired-aux.el (dired-mark-read-regexp):
* lisp/dired-x.el (dired-mark-unmarked-files): Use read-regexp directly.
* lisp/skeleton.el (skeleton-autowrap): Mark as obsolete.  [Backport]
* lisp/subr.el (call-process-shell-command, process-file-shell-command):
Make the `args' obsolete.
(start-process-shell-command, start-file-process-shell-command):
Use `declare'.
* lisp/url/url-vars.el (url-bug-address): Make into an obsolete alias.
* lisp/url/url-http.el (url-http-handle-authentication):
* lisp/url/url-news.el (url-news-fetch-message-id):
Use M-x report-emacs-bug in help messages.  [Backport]
* lisp/vc/diff-mode.el (diff-refine-changed): Rename from
`diff-refine-change' for consistency with `diff-changed'.
(diff-refine-change): Add obsolete face alias. 
* lisp/vc/smerge-mode.el (smerge-refined-changed): Rename from
`smerge-refined-change'.
(smerge-refined-change): Add obsolete face alias.
[Backport]
* lisp/vc/vc-hg.el (vc-hg-log-graph): New var.
(vc-hg-print-log): Use it.
(vc-hg-root-log-format): Include branch name and bookmarks; ignore
graph output.
Bump Emacs version to 24.4.50.
* xdisp.c (draw_glyphs): Set clipping to highlight boundaries.  [Backport]
* xdisp.c (erase_phys_cursor): Fix confusion between window-relative and text area-relative x-coordinates.  [Backport]
* configure.ac: Bump version to 24.4.51 to avoid ambiguity with the old
trunk's 24.4.50.
* lisp/emacs-lisp/bytecomp.el (byte-compile-and-folded): Optimize case where
all args are copyable.
(=, <, >, <=, >=): Re-enable the optimization.
etc/DEBUG: Improve instructions for debugging infinite loops.
* Makefile.in (${srcdir}/info/dir): Make sure info directory exists (backport)