Merge changes from emacs-23 branch
authorChong Yidong <cyd@stupidchicken.com>
Sun, 2 Jan 2011 20:31:19 +0000 (15:31 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 2 Jan 2011 20:31:19 +0000 (15:31 -0500)
43 files changed:
1  2 
admin/ChangeLog
doc/emacs/ChangeLog
doc/emacs/frames.texi
doc/emacs/maintaining.texi
doc/emacs/rmail.texi
doc/lispref/ChangeLog
doc/lispref/modes.texi
doc/man/ChangeLog
etc/ChangeLog
etc/NEWS.23
lib-src/ChangeLog
lib-src/ebrowse.c
lib-src/etags.c
lisp/ChangeLog
lisp/emulation/edt-mapper.el
lisp/eshell/em-hist.el
lisp/files.el
lisp/help-fns.el
lisp/isearch.el
lisp/mail/binhex.el
lisp/mail/mail-utils.el
lisp/mail/rmail.el
lisp/mail/rmailmm.el
lisp/term/w32-win.el
lisp/textmodes/rst.el
lisp/time.el
lisp/version.el
nextstep/ChangeLog
nextstep/Cocoa/Emacs.base/Contents/Info.plist
nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings
nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist
nt/ChangeLog
nt/INSTALL
nt/README.W32
nt/configure.bat
src/.gdbinit
src/ChangeLog
src/fileio.c
src/image.c
src/keyboard.c
src/window.c
src/xdisp.c
src/xterm.c

diff --cc admin/ChangeLog
 -2010-12-31  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * nt/README.W32: Update the information about PNG support libraries.
+       (Bug#7716)
 +2010-12-27  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * bzrmerge.el: New file to help merge branches while skipping
 +      some revisions (e.g. from emacs-23 to trunk).
 +
 +2010-12-03  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * CPP-DEFINES (EXPLICIT_SIGN_EXTEND): Remove.
 +
 +2010-10-12  Glenn Morris  <rgm@gnu.org>
 +
 +      * notes/nextstep: Move here from ../nextstep/DEV-NOTES.
 +
 +2010-10-09  Glenn Morris  <rgm@gnu.org>
 +
 +      * admin.el (set-version): Add doc/emacs/emacsver.texi.
 +
 +2010-10-09  Glenn Morris  <rgm@gnu.org>
 +
 +      * admin.el (set-version): No need to act on doc/ files any more.
 +
 +      * quick-install-emacs (PUBLIC_LIBSRC_BINARIES): Remove b2m.
 +
 +2010-09-05  Juanma Barranquero  <lekktu@gmail.com>
 +
 +      * unidata/BidiMirroring.txt: Update from
 +      http://www.unicode.org/Public/6.0.0/ucd/BidiMirroring-6.0.0d2.txt
 +
 +      * unidata/UnicodeData.txt: Update from
 +      http://www.unicode.org/Public/6.0.0/ucd/UnicodeData-6.0.0d7.txt
 +
 +2010-08-09  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * CPP-DEFINES (WORDS_BIG_ENDIAN): Remove.
 +
 +2010-08-05  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.
 +
 +2010-07-24  Christoph Scholtes  <cschol2112@gmail.com>
 +
 +      * admin.el: Write version number to nt/makefile.w32-in.
 +      * nt/makedist.bat: Remove; replaced with `zipdist.bat'
 +      in the nt/ directory.
 +      * nt/README.W32: Relocate to nt/ directory.
 +
 +2010-07-11  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * CPP-DEFINES (HAVE_INDEX, HAVE_RINDEX): Remove.
 +
 +2010-07-08  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * MAINTAINERS: Update my responsibilities.
 +
 +2010-07-07  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * CPP-DEFINES (BCOPY_DOWNWARD_SAFE, BCOPY_UPWARD_SAFE)
 +      (GAP_USE_BCOPY, HAVE_BCMP, HAVE_BCOPY, bcmp, bcopy, bzero):
 +      Remove.
 +
 +2010-06-12  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * unidata/bidimirror.awk: New file.
 +
 +      * unidata/BidiMirroring.txt: New file from
 +      http://www.unicode.org/Public/6.0.0/ucd/BidiMirroring-6.0.0d1.txt.
 +
 +      * unidata/Makefile.in: (../../src/bidimirror.h): New target.
 +      (all): Depend on ../../src/biditype.h and ../../src/bidimirror.h.
 +
 +      * unidata/makefile.w32-in (../../src/bidimirror.h): New target.
 +      (all): Depend on ../../src/biditype.h and ../../src/bidimirror.h.
 +
 +      * unidata/biditype.awk: New file.
 +
 +      * unidata/Makefile.in (../../src/biditype.h): New target.
 +
 +      * unidata/makefile.w32-in (../../src/biditype.h): New target.
 +
 +2010-06-09  Juanma Barranquero  <lekktu@gmail.com>
 +
 +      * unidata/UnicodeData.txt: Update from
 +      http://www.unicode.org/Public/6.0.0/ucd/UnicodeData-6.0.0d5.txt
 +
 +2010-05-27  Glenn Morris  <rgm@gnu.org>
 +
 +      * quick-install-emacs (AVOID): No more Makefile.c files.
 +
 +      * notes/cpp: Remove file.
 +
 +2010-05-15  Ken Raeburn  <raeburn@raeburn.org>
 +
 +      * admin.el (set-version, set-copyright): Update emacs.c instead of
 +      version.el.
 +
 +      * make-tarball.txt: Update filename list in step 6.
 +
 +      * quick-install-emacs: Scan emacs.c instead of version.el for
 +      version string.
 +
  2010-05-07  Chong Yidong  <cyd@stupidchicken.com>
  
        * Version 23.2 released.
@@@ -1,15 -1,30 +1,41 @@@
 -2010-12-30  Chong Yidong  <cyd@stupidchicken.com>
++2011-01-02  Chong Yidong  <cyd@stupidchicken.com>
+       * rmail.texi (Rmail Display): Edit for grammar and conciseness.
 -2010-12-27  Kenichi Handa  <handa@m17n.org>
++2011-01-02  Kenichi Handa  <handa@m17n.org>
+       * rmail.texi (Rmail Display): Describe new features of Rmail in Info.
 -2010-12-25  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * frames.texi (Cut and Paste): Modify the section's name and text:
+       don't mix "cut/paste" with "kill/yank".
+       (Cut/Paste Other App): Describe the per-session emulation of PRIMARY.
+       (Bug#7702)
+       * trouble.texi (Checklist): Mention debug-on-quit.  (Bug#7667)
 -2010-12-18  Glenn Morris  <rgm@gnu.org>
++2011-01-02  Glenn Morris  <rgm@gnu.org>
+       * maintaining.texi: Move inclusion of emerge after EDE, so that it
+       matches its position in the menu.  (Bug#7674)
 -2010-12-14  Glenn Morris  <rgm@gnu.org>
++2011-01-02  Glenn Morris  <rgm@gnu.org>
+       * trouble.texi (Checklist): Mention not replying via news either.
 -2010-12-11  Eli Zaretskii  <eliz@gnu.org>
 +2010-12-30  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * misc.texi (Document View): Update DocView section with newly
 +      supported document formats.
 +
 +2010-12-21  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * killing.texi: Resection the Info version to conform to the
 +      printed manual, to avoid making sections on Accumulating Text, CUA
 +      and Rectangles into full chapters.
 +
 +2010-12-13  Eli Zaretskii  <eliz@gnu.org>
  
        * custom.texi (Init Syntax): Add index entries for "character syntax".
        (Bug#7576)
Simple merge
@@@ -2354,7 -2346,4 +2354,3 @@@ the target should be built
  @ifnottex
  @include emerge-xtra.texi
  @end ifnottex
--
- @ignore
-    arch-tag: b9d83dfb-82ea-4ff6-bab5-05a3617091fb
- @end ignore
Simple merge
@@@ -1,11 -1,13 +1,20 @@@
 -2010-12-25  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * modes.texi (Emulating Mode Line): Fix last change.
 -2010-12-18  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * modes.texi (Emulating Mode Line): Update documentation of
+       format-mode-line according to changes that fixed bug #7587.
 -2010-12-11  Eli Zaretskii  <eliz@gnu.org>
 +2010-12-18  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * modes.texi (Derived Modes): Mention prog-mode.
 +
 +      * keymaps.texi (Simple Menu Items, Extended Menu Items): Remove mention
 +      of the key-binding-data cache since we don't use it any more.
 +
 +2010-12-13  Eli Zaretskii  <eliz@gnu.org>
  
        * processes.texi (Shell Arguments):
        * strings.texi (Creating Strings): Don't mention "shell commands";
Simple merge
@@@ -1,4 -1,8 +1,8 @@@
 -2010-12-29  Jari Aalto  <jari.aalto@cante.net>  (tiny change)
++2011-01-02  Jari Aalto  <jari.aalto@cante.net>  (tiny change)
+       * emacsclient.1: Arrange options alphabetically (Bug#7620).
 -2010-10-10  Glenn Morris  <rgm@gnu.org>
 +2010-10-12  Glenn Morris  <rgm@gnu.org>
  
        * emacs.1: Small fixes.
  
diff --cc etc/ChangeLog
@@@ -1,12 -1,8 +1,16 @@@
 -2010-12-24  Kenichi Handa  <handa@m17n.org>
++2011-01-02  Kenichi Handa  <handa@m17n.org>
 -      * NEWS: Describe the changes for rmail's MIME handling.
++      * NEWS.23: Describe the changes for rmail's MIME handling.
 -2010-12-04  W. Martin Borgert <debacle@debian.org>  (tiny change)
 +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/NEWS.23
Simple merge
Simple merge
@@@ -3574,10 -3682,10 +3574,10 @@@ usage (int error
  #endif
  
  void
 -version ()
 +version (void)
  {
    /* Makes it easier to update automatically. */
-   char emacs_copyright[] = "Copyright (C) 2010 Free Software Foundation, Inc.";
+   char emacs_copyright[] = "Copyright (C) 2011 Free Software Foundation, Inc.";
  
    printf ("ebrowse %s\n", VERSION);
    puts (emacs_copyright);
diff --cc lib-src/etags.c
@@@ -888,10 -895,10 +888,10 @@@ etags --help --lang=ada.")
  # define VERSION "17.38.1.4"
  #endif
  static void
 -print_version ()
 +print_version (void)
  {
    /* Makes it easier to update automatically. */
-   char emacs_copyright[] = "Copyright (C) 2010 Free Software Foundation, Inc.";
+   char emacs_copyright[] = "Copyright (C) 2011 Free Software Foundation, Inc.";
  
    printf ("%s (%s %s)\n", (CTAGS) ? "ctags" : "etags", EMACS_NAME, VERSION);
    puts (emacs_copyright);
diff --cc lisp/ChangeLog
 -2011-01-02  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>
 -
 -      * version.el (emacs-copyright): Set short copyright year to 2011.
 -
 -2011-01-02  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>
 -
 -      * 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-02  Eli Zaretskii  <eliz@gnu.org>
 -      * net/tramp.el (tramp-methods): Add recursive options to "scpc",
 -      "scpx", "pscp" and "psftp".
 -
 -2010-12-31  Eli Zaretskii  <eliz@gnu.org>
 -
 -      * term/w32-win.el (image-library-alist): Set up correctly for
++      * 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.el (select-active-regions): Doc fix.  (Bug#7702)
 -
 -2010-12-24  Kenichi Handa  <handa@m17n.org>
++2011-01-02  Kenichi Handa  <handa@m17n.org>
+       * mail/rmailmm.el (rmail-mime-parse): Perform parsing in
+       condition-case and return an error message string if something
+       goes wrong.
+       (rmail-show-mime): Adjust for the above change.  Insert the
+       header by rmail-mime-insert-header.
 -2010-12-24  Kenichi Handa  <handa@m17n.org>
++2011-01-02  Kenichi Handa  <handa@m17n.org>
+       * mail/rmailmm.el: New key bindings for rmail-mime-next-item,
+       rmail-mime-previous-item, and rmail-mime-toggle-hidden.
+       (rmail-mime-mbox-buffer)
+       (rmail-mime-view-buffer, rmail-mime-coding-system): New variables.
+       (rmail-mime-entity): Argument changed.  All codes handling an
+       entity object are changed.
+       (rmail-mime-entity-header, rmail-mime-entity-body): Adjust for
+       the above change.
+       (rmail-mime-entity-children, rmail-mime-entity-handler)
+       (rmail-mime-entity-tagline): New functions.
+       (rmail-mime-message-p): New function.
+       (rmail-mime-save): Bind rmail-mime-mbox-buffer.
+       (rmail-mime-entity-segment, rmail-mime-next-item)
+       (rmail-mime-previous-item, rmail-mime-shown-mode)
+       (rmail-mime-hidden-mode, rmail-mime-raw-mode)
+       (rmail-mime-toggle-raw, rmail-mime-toggle-hidden)
+       (rmail-mime-insert-tagline, rmail-mime-insert-header):
+       New functions.
+       (rmail-mime-text-handler): Call rmail-mime-insert-text.
+       (rmail-mime-insert-decoded-text): New function.
+       (rmail-mime-insert-text): Call rmail-mime-insert-decoded-text.
+       (rmail-mime-insert-image): Argument changed.  Caller changed.
+       (rmail-mime-image): Call rmail-mime-toggle-hidden.
+       (rmail-mime-set-bulk-data): New funciton.
+       (rmail-mime-insert-bulk): Argument changed.
+       (rmail-mime-multipart-handler): Return t.
+       (rmail-mime-process-multipart): Argument changed.
+       Handle "multipart/alternative" here.
+       (rmail-mime-process): Argument changed.
+       (rmail-mime-parse): Bind rmail-mime-mbox-buffer.
+       (rmail-mime-insert): Argument changed.  Handle raw display mode.
+       (rmail-mime): Argument changed.  Handle toggling of raw display
+       mode.
+       (rmail-show-mime): Bind rmail-mime-mbox-buffer and
+       rmail-mime-view-buffer.
+       (rmail-insert-mime-forwarded-message): Likewise.
+       (rmail-search-mime-message): Likewise.  Don't bind rmail-buffer.
+       * mail/rmail.el (rmail-show-message-1): If rmail-enable-mime is
+       non-nil, handle the header in rmail-show-mime-function.
 -2010-12-20  Leo  <sdl.web@gmail.com>
++2011-01-02  Leo  <sdl.web@gmail.com>
 -      * help-fns.el (describe-variable): Fix 2010-12-17 change.
++      * help-fns.el (describe-variable): Fix previous change.
 -2010-12-20  Juri Linkov  <juri@jurta.org>
++2011-01-02  Juri Linkov  <juri@jurta.org>
+       * isearch.el (isearch-lazy-highlight-error): New variable.
+       (isearch-lazy-highlight-new-loop): Compare `isearch-error' and
+       `isearch-lazy-highlight-error'.  Set `isearch-lazy-highlight-error'
+       to the current value of `isearch-error' (Bug#7468).
 -2010-12-17  Chong Yidong  <cyd@stupidchicken.com>
++2011-01-02  Chong Yidong  <cyd@stupidchicken.com>
+       * help-fns.el (describe-variable): Don't emit trailing whitespace
+       (Bug#7511).
 -2010-12-17  Leo  <sdl.web@gmail.com>
 -
 -      * eshell/em-hist.el (eshell-previous-matching-input): Signal error
 -      if point is not behind eshell-last-output-end (Bug#7585).
 -
 -2010-12-16  Chong Yidong  <cyd@stupidchicken.com>
++2011-01-02  Chong Yidong  <cyd@stupidchicken.com>
+       * textmodes/rst.el (rst-compile-pdf-preview)
+       (rst-compile-slides-preview): Use make-temp-file (Bug#7646).
 -2010-12-15  Kevin Gallagher  <Kevin.Gallagher@boeing.com>
++2011-01-02  Kevin Gallagher  <Kevin.Gallagher@boeing.com>
+       * emulation/edt-mapper.el: Override mapping of function keys so
+       that the later call to read-key-sequence works.
 -2010-12-13  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * mail/smtpmail.el (smtpmail-send-it): Write queued mail body with
+       Unix EOLs.  (Bug#7589)
 -2010-12-12  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Leo  <sdl.web@gmail.com>
++
++      * eshell/em-hist.el (eshell-previous-matching-input): Signal error
++      if point is not behind eshell-last-output-end (Bug#7585).
++
++2011-01-02  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>
++
++      * version.el (emacs-copyright): Set short copyright year to 2011.
++
++2011-01-02  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>
++
++      * mail/mail-utils.el (mail-mbox-from): Handle From: headers with
++      multiple addresses.  (Bug#7760)
++
 +2010-12-31  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/tramp-sh.el (tramp-methods): Add recursive options to "scpc"
 +      and "scpx".
 +
 +2010-12-30  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * doc-view.el (doc-view-set-doc-type): New function refactored
 +      from doc-view-mode.
 +      (doc-view-fallback-mode): New function.
 +      (doc-view-mode): Use it.
 +      (doc-view-mode-maybe): New function that checks if doc-view-mode
 +      can be used and falls back to the next best mode otherwise.
 +
 +      * files.el (auto-mode-alist): Use doc-view-mode-maybe for PDF,
 +      DVI, OpenDocument, and MS Office files.
 +
 +2010-12-30  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * emacs-lisp/rx.el (rx-syntax): Fix typo.
 +
 +2010-12-30  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * doc-view.el (doc-view-toggle-display): Perform rassq-delete-all
 +      on a copy of auto-mode-alist, because that deletes with side
 +      effects.
 +
 +2010-12-30  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * doc-view.el (doc-view-mode, doc-view-toggle-display): Use
 +      normal-mode without doc-view-mode bindings in auto-mode-alist as
 +      fallback instead of hard coding fundamental mode.
 +
 +2010-12-30  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * doc-view.el (doc-view-doc->txt): Handle OpenDocument (or MS
 +      Office) files also for searching.
 +
 +2010-12-30  Tassilo Horn  <tassilo@member.fsf.org>
 +
 +      * doc-view.el: Implement viewing of OpenDocument (and Microsoft
 +      Office) files.  Not yet enabled via auto-mode-list.
 +      (doc-view-unoconv-program): New custom variable.
 +      (doc-view-mode-p): Handle new odf document type.
 +      (doc-view-odf->pdf): New conversion function.
 +      (doc-view-convert-current-doc): Call it for odf files.
 +      (doc-view-mode): Recognize newly supported file extensions.
 +
 +2010-12-30  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/tramp.el (tramp-default-method-alist)
 +      (tramp-default-user-alist)
 +      (tramp-local-host-regexp, tramp-prefix-domain-format)
 +      (tramp-prefix-domain-regexp): Set tramp-autoload cookie.
 +
 +      * net/tramp-ftp.el:
 +      * net/tramp-gvfs.el:
 +      * net/tramp-gw.el:
 +      * net/tramp-imap.el:
 +      * net/tramp-sh.el:
 +      * net/tramp-smb.el: Add tramp-autoload cookie for initialisation
 +      code of `tramp-default-method-alist' and `tramp-default-user-alist'.
 +
 +2010-12-29  Karl Fogel  <kfogel@red-bean.com>
 +
 +      * saveplace.el (save-place-alist-to-file): Save list sorted and
 +      pretty-printed, so that it is mergeable by line-based text merging,
 +      as suggested by Iain Dalton <iain.dalton {_AT_} gmail.com>.
 +
 +2010-12-28  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * tool-bar.el (tool-bar-setup): Remove :enable conditions, which
 +      are handled by the menu-bar entries.  As before, don't use
 +      :visibile to avoid changing the tool-bar.
 +
 +2010-12-27  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/secrets.el (secrets-delete-alias): New defun.
 +
 +2010-12-27  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/tramp.el (tramp-default-user-alist): Do not add "ssh" based
 +      methods, otherwise ~/.ssh/config would be ignored.
 +
 +2010-12-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * emacs-lisp/rx.el: Make it a superset of sregex.
 +      (rx-constituents): Add `any => "."', mark `repeat' as taking any number
 +      of args, add `regex' alias.
 +      (rx-info): Add arg to distinguish head and standalone forms.
 +      (rx-check, rx-form): Pass the corresponding arg.
 +      (rx-**): Simplify.
 +      (rx-repeat): Make it work for any number of args.
 +      (rx-syntax): Make it accept syntax chars as is.
 +      * obsolete/sregex.el: Move from emacs-lisp/.
 +      * emacs-lisp/re-builder.el: Remove sregex support.
 +      * emacs-lisp/edebug.el (sregexq, rx): Remove redundant defs.
 +
 +2010-12-25  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * mouse.el (mouse-yank-primary): On MS-Windows, try the (emulated)
 +      PRIMARY first, then the clipboard.  (Bug#7699)
 +
 +2010-12-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * emacs-lisp/bytecomp.el (byte-compile-output-docform): Fix up use of
 +      print-number-table.
 +
 +2010-12-21  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * help-fns.el (find-lisp-object-file-name): Locate .emacs from
 +      .emacs.elc (Bug#7530).
 +
 +      * wid-edit.el (widget-image-find): Remove bogus :ascent spec from
 +      image spec (Bug#7480).
 +
 +2010-12-21  Daiki Ueno  <ueno@unixuser.org>
 +
 +      * obsolete/pgg-parse.el, obsolete/pgg-pgp5.el, obsolete/pgg-pgp.el,
 +      * obsolete/pgg-gpg.el, obsolete/pgg-def.el, obsolete/pgg.el:
 +      Move from lisp/.
 +
 +2010-12-20  Leo  <sdl.web@gmail.com>
 +
 +      * dnd.el (dnd-get-local-file-name): Unhex of file name shall
 +      always be performed (Bug#7680).
 +
 +2010-12-20  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * menu-bar.el (menu-bar-kill-ring-save): Make obsolete.
 +      (menu-bar-edit-menu): Bind "Copy" to kill-ring-save.  Don't use
 +      mouse-region-match.
 +
 +      * color.el: Move from gnus/.
 +
 +      * vc/diff.el (diff-better-file-name): Function deleted.
 +      abbreviating file names causes problems with shell-quote-argument.
 +      (diff-no-select): Just use expand-file-name.
 +
 +      * tool-bar.el (tool-bar--image-expression): New function.
 +      (tool-bar-local-item, tool-bar--image-exp): Use it.
 +      (tool-bar-setup): Initialize tool-bar-separator-image-expression.
 +      Use :enable instead of :visible to avoid changing the tool-bar
 +      configuration unnecessarily.
 +
 +      * info.el (info-tool-bar-map): Add separators.
 +
 +2010-12-17  Ken Brown  <kbrown@cornell.edu>
 +
 +      * loadup.el: Use version numbers in Cygwin build.
 +
 +2010-12-17  Ryan Twitchell  <metatheorem@gmail.com>  (tiny change)
 +
 +      * ido.el (ido-file-internal): Ask for confirmation before
 +      overwriting an existing file (Bug#1238).
 +
 +2010-12-16  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * tool-bar.el (tool-bar-setup): Add separators.
 +
 +      * menu-bar.el (featurep): Use menu-bar-separator.
 +
 +2010-12-16  Ken Manheimer  <ken.manheimer@gmail.com>
 +
 +      Migrate allout encryption provisions from pgg to epg.
 +
 +      * allout.el (allout-toggle-current-subtree-encryption)
 +      (allout-toggle-subtree-encryption): Adjust docstrings to reflect
 +      defaulting policy and other changes.  Change fetch-pass to keymode-cue,
 +      for simpler universal argument interpretation.
 +      (allout-toggle-subtree-encryption):  Adjust docstring to describe
 +      changed encryption provisions.  Change fetch-pass to keymode-cue, for
 +      simpler universal argument interpretation.  Remove provisions for
 +      handling key type and identity - they'll all be within
 +      allout-encrypt-string or epg/epg or even contained all the way in gpg.
 +      (allout-encrypt-string): Include keymode-cue, for optionally prompting
 +      for keypair recipients (universal argument > 1) and, in addition,
 +      associating the specified recipients with the outline (universal
 +      argument > 4) using a file local variable setting for
 +      'epa-file-encrypt-to'.
 +      Require epa, for recipients handling.
 +      Change how regexp filtering elements are named.
 +      Describe the problem with caching of incorrect symmetric-decryption
 +      keys.
 +      Use the epa-passphrase-callback-function, in case the user is using
 +      GnuPG v1.
 +      Support saving of the selected keypair recipients when invoked with a
 +      keymode-cue > 4.
 +      Remove obsolete arguments 'fetch-pass', 'target-cache-id', 'retried'.
 +      Require 'epa.
 +      Establish epg-context with armoring and default epg-protocol.
 +      Remove all passphrase cache, verification, and hinting code.
 +      (allout-passphrase-verifier-handling, allout-passphrase-hint-handling):
 +      No longer used, delete.
 +      (allout-mode): Adjust docstring to describe changed encryption
 +      provisions.  Describe the problem with caching of incorrect
 +      symmetric-decryption keys.
 +      (allout-obtain-passphrase, allout-epg-passphrase-callback-function)
 +      (allout-make-passphrase-state, allout-passphrase-state-passphrase)
 +      (allout-encrypted-key-info, allout-update-passphrase-mnemonic-aids)
 +      (allout-get-encryption-passphrase-verifier, allout-verify-passphrase):
 +      Obsolete, remove.
 +
 +2010-12-16  Daiki Ueno  <ueno@unixuser.org>
 +
 +      * epa-file.el (epa-file-select-keys): Accept 'silent to inhibit
 +      key selection prompt; make 'silent as default (Bug#7487).
 +
 +2010-12-16  Leo  <sdl.web@gmail.com>
 +
 +      * eshell/eshell.el (eshell-directory-name): Use
 +      locate-user-emacs-file (Bug#7578).
 +
 +2010-12-15  Glenn Morris  <rgm@gnu.org>
 +
 +      * loadup.el (symbol-file-load-history-loaded): Remove; unused.
 +
 +2010-12-15  Jari Aalto  <jari.aalto@cante.net>
 +            Scott Evans <gse@antisleep.com>
 +
 +      * rect.el (rectange--default-line-number-format)
 +      (rectangle-number-line-callback): New functions.
 +      (rectangle-number-lines): New command, bound to C-x r N (Bug#4382).
 +
 +2010-12-15  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * rect.el (operate-on-rectangle-lines, string-rectangle-string):
 +      Delete unused variables.
 +      (move-to-column-force): Remove function obsolete since 21.2.
 +
 +2010-12-14  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/tramp.el (tramp-temp-buffer-file-name): Make it permanent-local.
 +      (tramp-handle-insert-file-contents): Do not set permanent-local
 +      property.
 +
 +      * net/tramp-cache.el (tramp-persistency-file-name): Use
 +      `locate-user-emacs-file' if fboundp.
 +
 +      * net/tramp-sh.el (tramp-methods): Add "ksu".
 +      (tramp-default-user-alist): Add "ksu".  Use `regexp-opt' for
 +      method list.
 +
 +2010-12-14  Glenn Morris  <rgm@gnu.org>
 +
 +      * progmodes/js.el: Doc't require font-lock, etags, or easymenu.
 +      (find-tag-marker-ring): Declare.
 +      (js-find-symbol): Require etags.
 +
 +      * mail/sendmail.el: Don't require rmail or mailalias when compiling.
 +      Require mail-utils.
 +      (mail-alias-file): Don't autoload.  Doc fix.
 +      (mail-bury-selects-summary, mail-send-nonascii): Don't autoload.
 +      (mail-mailer-swallows-blank-line): Default to nil.  Doc fix.
 +      Mark as obsolete, and risky.
 +      (mail-setup): Simplify.
 +
 +      * mail/mailalias.el (build-mail-aliases): Make it interactive.
 +      * mail/sendmail.el (build-mail-aliases): Update autoload.
 +
 +      * dired.el (dired-trivial-filenames, dired-chown-program)
 +      (dired-auto-revert-buffer): Remove autoload cookies.
 +      * mail/sendmail.el (mail-recover-1): Require 'dired.
 +
 +      * dired.el (dired-subdir-switches, dired-chown-program)
 +      (dired-use-ls-dired, dired-chmod-program, dired-touch-program):
 +      Make into defcustoms.
 +      (dired-chown-program): Simplify initialization.
 +
 +      * mail/mail-utils.el: No need to require lisp-mode, it's in loadup.
 +
 +2010-12-13  Romain Francoise  <romain@orebokech.com>
 +
 +      * net/gnutls.el (gnutls-negotiate): Fix setting of default trustfiles.
 +
 +2010-12-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * net/netrc.el (netrc-point-at-eol): Remove the unused
 +      netrc-point-at-old and netrc-bound-and-true-p bindings.
 +      (netrc-parse): Cache the netrc contents.
 +
 +2010-12-13  Eli Zaretskii  <eliz@gnu.org>
  
        * subr.el (posn-col-row): Evaluate header-line-format in the
        context of the POSITION window's buffer.
Simple merge
Simple merge
diff --cc lisp/files.el
@@@ -1,11 -1,10 +1,11 @@@
  ;;; files.el --- file input and output commands for Emacs
  
  ;; Copyright (C) 1985, 1986, 1987, 1992, 1993, 1994, 1995, 1996,
- ;;   1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- ;;   2007, 2008, 2009, 2010  Free Software Foundation, Inc.
+ ;;   1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
+ ;;   2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
  
  ;; Maintainer: FSF
 +;; Package: emacs
  
  ;; This file is part of GNU Emacs.
  
@@@ -644,29 -636,13 +643,26 @@@ it is displayed along with the global v
              (with-current-buffer standard-output
                (setq val-start-pos (point))
                (princ "value is ")
-               (terpri)
                (let ((from (point)))
+                 (terpri)
                  (pp val)
-                 ;; Hyperlinks in variable's value are quite frequently
-                 ;; inappropriate e.g C-h v <RET> features <RET>
-                 ;; (help-xref-on-pp from (point))
-                 (if (< (point) (+ from 20))
-                     (delete-region (1- from) from))
+                 (if (< (point) (+ 68 (line-beginning-position 0)))
+                     (delete-region from (1+ from))
 -                  (delete-region (1- from) from)))))
++                  (delete-region (1- from) from))
 +                (let* ((sv (get variable 'standard-value))
 +                       (origval (and (consp sv)
 +                                     (condition-case nil
 +                                         (eval (car sv))
 +                                       (error :help-eval-error)))))
 +                  (when (and (consp sv)
 +                               (not (equal origval val))
 +                               (not (equal origval :help-eval-error)))
 +                    (princ "\nOriginal value was \n")
 +                    (setq from (point))
 +                    (pp origval)
 +                    (if (< (point) (+ from 20))
 +                        (delete-region (1- from) from)))))))
            (terpri)
            (when locus
              (if (bufferp locus)
                  (princ (format "%socal in buffer %s; "
diff --cc lisp/isearch.el
Simple merge
Simple merge
Simple merge
@@@ -4289,7 -4287,7 +4286,7 @@@ With prefix argument N moves forward N 
  
  ;;;***
  \f
- ;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "b1ce015fd919b54cc7b1d0b2155489f9")
 -;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "6c12c2d0563ae855f1069d7a80b8244a")
++;;;### (autoloads (rmail-mime) "rmailmm" "rmailmm.el" "3735f9bfe6ff3e612091857cc6b401b6")
  ;;; Generated autoloads from rmailmm.el
  
  (autoload 'rmail-mime "rmailmm" "\
@@@ -53,7 -52,7 +53,7 @@@
  ;;
  ;; rmail-mime
  ;;  +- rmail-mime-show <----------------------------------+
--;;       +- rmail-mime-process                            | 
++;;       +- rmail-mime-process                            |
  ;;            +- rmail-mime-handle                        |
  ;;                 +- rmail-mime-text-handler             |
  ;;                 +- rmail-mime-bulk-handler             |
@@@ -134,15 -152,16 +153,16 @@@ MIME entities."
  ;;; MIME-entity object
  
  (defun rmail-mime-entity (type disposition transfer-encoding
-                              header body children)
-   "Retrun a newly created MIME-entity object.
+                              display header tagline body children handler)
+   "Retrun a newly created MIME-entity object from arguments.
  
- A MIME-entity is a vector of 6 elements:
+ A MIME-entity is a vector of 9 elements:
  
-   [ TYPE DISPOSITION TRANSFER-ENCODING HEADER BODY CHILDREN ]
-   
- TYPE and DISPOSITION correspond to MIME headers Content-Type: and
- Cotent-Disposition: respectively, and has this format:
+   [TYPE DISPOSITION TRANSFER-ENCODING DISPLAY HEADER TAGLINE BODY
+    CHILDREN HANDLER]
 -  
++
+ TYPE and DISPOSITION correspond to MIME headers Content-Type and
+ Cotent-Disposition respectively, and has this format:
  
    \(VALUE (ATTRIBUTE . VALUE) (ATTRIBUTE . VALUE) ...)
  
@@@ -219,8 -269,220 +270,220 @@@ It is called with one argument ENTITY.
  
  (define-button-type 'rmail-mime-save 'action 'rmail-mime-save)
  
 -A MIME entity has three items; header, tagline, and body. 
+ (defun rmail-mime-entity-segment (pos &optional entity)
+   "Return a vector describing the displayed region of a MIME-entity at POS.
+ Optional 2nd argument ENTITY is the MIME-entity at POS.
+ The value is a vector [ INDEX HEADER TAGLINE BODY END], where
+   HEADER: the position of the beginning of a header
+   TAGLINE: the position of the beginning of a tagline
+   BODY: the position of the beginning of a body
+   END: the position of the end of the entity.
+   INDEX: index into the returned vector indicating where POS is."
+   (save-excursion
+     (or entity
+       (setq entity (get-text-property pos 'rmail-mime-entity)))
+     (if (not entity)
+       (vector 1 (point) (point) (point) (point))
+       (let ((current (aref (rmail-mime-entity-display entity) 0))
+           (beg (if (and (> pos (point-min))
+                         (eq (get-text-property (1- pos) 'rmail-mime-entity)
+                             entity))
+                    (previous-single-property-change pos 'rmail-mime-entity
+                                                     nil (point-min))
+                  pos))
+           (index 1)
+           tagline-beg body-beg end)
+       (goto-char beg)
+       (if (aref current 0)
+           (search-forward "\n\n" nil t))
+       (setq tagline-beg (point))
+       (if (>= pos tagline-beg)
+           (setq index 2))
+       (if (aref current 1)
+           (forward-line 1))
+       (setq body-beg (point))
+       (if (>= pos body-beg)
+           (setq index 3))
+       (if (aref current 2)
+           (let ((tag (aref (rmail-mime-entity-tagline entity) 0))
+                 tag2)
+             (setq end (next-single-property-change beg 'rmail-mime-entity
+                                                    nil (point-max)))
+             (while (and (< end (point-max))
+                         (setq entity (get-text-property end 'rmail-mime-entity)
+                               tag2 (aref (rmail-mime-entity-tagline entity) 0))
+                         (and (> (length tag2) 0)
+                              (eq (string-match tag tag2) 0)))
+               (setq end (next-single-property-change end 'rmail-mime-entity
+                                                      nil (point-max)))))
+         (setq end body-beg))
+       (vector index beg tagline-beg body-beg end)))))
+ (defun rmail-mime-next-item ()
+   "Move point to the next displayed item of the current MIME entity.
 -  
++A MIME entity has three items; header, tagline, and body.
+ If we are in the last item of the entity, move point to the first
+ item of the next entity.  If we reach the end of buffer, move
+ point to the first item of the first entity (i.e. the beginning
+ of buffer)."
+   (interactive)
+   (if (rmail-mime-message-p)
+       (let* ((segment (rmail-mime-entity-segment (point)))
+            (next-pos (aref segment (1+ (aref segment 0))))
+            (button (next-button (point))))
+       (goto-char (if (and button (< (button-start button) next-pos))
+                      (button-start button)
+                    next-pos))
+       (if (eobp)
+           (goto-char (point-min))))))
+ (defun rmail-mime-previous-item ()
+   "Move point to the previous displayed item of the current MIME message.
+ A MIME entity has three items; header, tagline, and body.
+ If we are at the beginning of the first item of the entity, move
+ point to the last item of the previous entity.  If we reach the
+ beginning of buffer, move point to the last item of the last
+ entity."
+   (interactive)
+   (when (rmail-mime-message-p)
+     (if (bobp)
+       (goto-char (point-max)))
+     (let* ((segment (rmail-mime-entity-segment (1- (point))))
+          (prev-pos (aref segment (aref segment 0)))
+          (button (previous-button (point))))
+       (goto-char (if (and button (> (button-start button) prev-pos))
+                    (button-start button)
+                  prev-pos)))))
+ (defun rmail-mime-shown-mode (entity)
+   "Make MIME-entity ENTITY displayed by the default way."
+   (let ((new (aref (rmail-mime-entity-display entity) 1)))
+     (aset new 0 (aref (rmail-mime-entity-header entity) 2))
+     (aset new 1 (aref (rmail-mime-entity-tagline entity) 2))
+     (aset new 2 (aref (rmail-mime-entity-body entity) 2))))
++
+ (defun rmail-mime-hidden-mode (entity top)
+   "Make MIME-entity ENTITY displayed in the hidden mode.
+ If TOP is non-nil, display ENTITY only by the tagline.
+ Otherwise, don't display ENTITY."
+   (if top
+       (let ((new (aref (rmail-mime-entity-display entity) 1)))
+       (aset new 0 nil)
+       (aset new 1 top)
+       (aset new 2 nil)
+       (aset (rmail-mime-entity-body entity) 2 nil))
+     (let ((current (aref (rmail-mime-entity-display entity) 0)))
+       (aset current 0 nil)
+       (aset current 1 nil)
+       (aset current 2 nil)))
+   (dolist (child (rmail-mime-entity-children entity))
+     (rmail-mime-hidden-mode child nil)))
+ (defun rmail-mime-raw-mode (entity)
+   "Make MIME-entity ENTITY displayed in the raw mode."
+   (let ((new (aref (rmail-mime-entity-display entity) 1)))
+     (aset new 0 'raw)
+     (aset new 1 nil)
+     (aset new 2 'raw)
+     (dolist (child (rmail-mime-entity-children entity))
+       (rmail-mime-hidden-mode child nil))))
+ (defun rmail-mime-toggle-raw (entity)
+   "Toggle on and off the raw display mode of MIME-entity ENTITY."
+   (let* ((pos (if (eobp) (1- (point-max)) (point)))
+        (entity (get-text-property pos 'rmail-mime-entity))
+        (current (aref (rmail-mime-entity-display entity) 0))
+        (segment (rmail-mime-entity-segment pos entity)))
+     (if (not (eq (aref current 0) 'raw))
+       ;; Enter the raw mode.
+       (rmail-mime-raw-mode entity)
+       ;; Enter the shown mode.
+       (rmail-mime-shown-mode entity))
+     (let ((inhibit-read-only t)
+         (modified (buffer-modified-p)))
+       (save-excursion
+       (goto-char (aref segment 1))
+       (rmail-mime-insert entity)
+       (restore-buffer-modified-p modified)))))
+ (defun rmail-mime-toggle-hidden ()
+   "Toggle on and off the hidden display mode of MIME-entity ENTITY."
+   (interactive)
+   (when (rmail-mime-message-p)
+     (let* ((rmail-mime-mbox-buffer rmail-view-buffer)
+          (rmail-mime-view-buffer (current-buffer))
+          (pos (if (eobp) (1- (point-max)) (point)))
+          (entity (get-text-property pos 'rmail-mime-entity))
+          (current (aref (rmail-mime-entity-display entity) 0))
+          (segment (rmail-mime-entity-segment pos entity)))
+       (if (aref current 2)
+         ;; Enter the hidden mode.
+         (progn
+           ;; If point is in the body part, move it to the tagline
+           ;; (or the header if headline is not displayed).
+           (if (= (aref segment 0) 3)
+               (goto-char (aref segment 2)))
+           (rmail-mime-hidden-mode entity t)
+           ;; If the current entity is the topmost one, display the
+           ;; header.
+           (if (and rmail-mime-mbox-buffer (= (aref segment 1) (point-min)))
+               (let ((new (aref (rmail-mime-entity-display entity) 1)))
+                 (aset new 0 t))))
+       ;; Enter the shown mode.
+       (aset (rmail-mime-entity-body entity) 2 t)
+       (rmail-mime-shown-mode entity))
+       (let ((inhibit-read-only t)
+           (modified (buffer-modified-p))
+           (rmail-mime-mbox-buffer rmail-view-buffer)
+           (rmail-mime-view-buffer rmail-buffer))
+       (save-excursion
+         (goto-char (aref segment 1))
+         (rmail-mime-insert entity)
+         (restore-buffer-modified-p modified))))))
+ (define-key rmail-mode-map "\t" 'rmail-mime-next-item)
+ (define-key rmail-mode-map [backtab] 'rmail-mime-previous-item)
+ (define-key rmail-mode-map "\r" 'rmail-mime-toggle-hidden)
  ;;; Handlers
  
 -  
+ (defun rmail-mime-insert-tagline (entity &rest item-list)
+   "Insert a tag line for MIME-entity ENTITY.
+ ITEM-LIST is a list of strings or button-elements (list) to be added
+ to the tag line."
+   (insert "[")
+   (let ((tag (aref (rmail-mime-entity-tagline entity) 0)))
+     (if (> (length tag) 0) (insert (substring tag 1) ":")))
+   (insert (car (rmail-mime-entity-type entity)))
+   (dolist (item item-list)
+     (when item
+       (if (stringp item)
+         (insert item)
+       (apply 'insert-button item))))
+   (insert "]\n"))
++
+ (defun rmail-mime-insert-header (header)
+   "Decode and insert a MIME-entity header HEADER in the current buffer.
+ HEADER is a vector [BEG END DEFAULT-STATUS].
+ See `rmail-mime-entity' for the detail."
+   (let ((pos (point))
+       (last-coding-system-used nil))
+     (save-restriction
+       (narrow-to-region pos pos)
+       (with-current-buffer rmail-mime-mbox-buffer
+       (let ((rmail-buffer rmail-mime-mbox-buffer)
+             (rmail-view-buffer rmail-mime-view-buffer))
+         (save-excursion
+           (goto-char (aref header 0))
+           (rmail-copy-headers (point) (aref header 1)))))
+       (rfc2047-decode-region pos (point))
+       (if (and last-coding-system-used (not rmail-mime-coding-system))
+         (setq rmail-mime-coding-system last-coding-system-used))
+       (goto-char (point-min))
+       (rmail-highlight-headers)
+       (goto-char (point-max))
+       (insert "\n"))))
  (defun rmail-mime-text-handler (content-type
                                content-disposition
                                content-transfer-encoding)
@@@ -610,31 -1062,64 +1063,64 @@@ modified.
      (unless (member (car content-disposition) '("inline" "attachment"))
        (setq content-disposition '("attachment")))
  
-     (if parse-only
-       (cond ((string-match "multipart/.*" (car content-type))
-              (setq end (1- end))
-              (save-restriction
-                (let ((header (if show-headers (cons (point-min) end))))
+     (if parse-tag
+       (let* ((is-inline (string= (car content-disposition) "inline"))
+              (header (vector (point-min) end nil))
+              (tagline (vector parse-tag (cons nil nil) t))
+              (body (vector end (point-max) is-inline))
+              (new (vector (aref header 2) (aref tagline 2) (aref body 2)))
+              children handler entity)
+         (cond ((string-match "multipart/.*" (car content-type))
+                (save-restriction
+                  (narrow-to-region (1- end) (point-max))
+                  (setq children (rmail-mime-process-multipart
+                                  content-type
+                                  content-disposition
+                                  content-transfer-encoding
+                                  parse-tag)
+                        handler 'rmail-mime-insert-multipart)))
+               ((string-match "message/rfc822" (car content-type))
+                (save-restriction
                   (narrow-to-region end (point-max))
-                  (rmail-mime-entity content-type
-                                     content-disposition
-                                     content-transfer-encoding
-                                     header nil
-                                     (rmail-mime-process-multipart
-                                      content-type content-disposition
-                                      content-transfer-encoding t)))))
-             ((string-match "message/rfc822" (car content-type))
-              (or show-headers
-                  (narrow-to-region end (point-max)))
-              (rmail-mime-process t t))
-             (t
-              (rmail-mime-entity content-type
-                                 content-disposition
-                                 content-transfer-encoding
-                                 nil
-                                 (cons end (point-max))
-                                 nil)))
+                  (let* ((msg (rmail-mime-process t parse-tag
+                                                  '("text/plain") '("inline")))
+                         (msg-new (aref (rmail-mime-entity-display msg) 1)))
+                    ;; Show header of the child.
+                    (aset msg-new 0 t)
+                    (aset (rmail-mime-entity-header msg) 2 t)
+                    ;; Hide tagline of the child.
+                    (aset msg-new 1 nil)
+                    (aset (rmail-mime-entity-tagline msg) 2 nil)
+                    (setq children (list msg)
+                          handler 'rmail-mime-insert-multipart))))
+               ((and is-inline (string-match "text/" (car content-type)))
+                ;; Don't need a tagline.
+                (aset new 1 (aset tagline 2 nil))
+                (setq handler 'rmail-mime-insert-text))
+               (t
+                ;; Force hidden mode.
+                (aset new 1 (aset tagline 2 t))
+                (aset new 2 (aset body 2 nil))
+                (setq handler 'rmail-mime-insert-bulk)))
+         (setq entity (rmail-mime-entity content-type
+                                         content-disposition
+                                         content-transfer-encoding
+                                         (vector (vector nil nil nil) new)
+                                         header tagline body children handler))
+         (if (and (eq handler 'rmail-mime-insert-bulk)
+                  (rmail-mime-set-bulk-data entity))
+             ;; Show the body.
+             (aset new 2 (aset body 2 t)))
+         entity)
        ;; Hide headers and handle the part.
 -                       (rmail-mime-entity 
+       (put-text-property (point-min) (point-max) 'rmail-mime-entity
++                       (rmail-mime-entity
+                        content-type content-disposition
+                        content-transfer-encoding
+                        (vector (vector 'raw nil 'raw) (vector 'raw nil 'raw))
+                        (vector nil nil 'raw) (vector "" (cons nil nil) nil)
+                        (vector nil nil 'raw) nil nil))
        (save-restriction
        (cond ((string= (car content-type) "message/rfc822")
               (narrow-to-region end (point-max)))
@@@ -795,15 -1302,16 +1303,16 @@@ attachments as specfied by `rmail-mime-
    "Function to set in `rmail-search-mime-message-function' (which see)."
    (save-restriction
      (narrow-to-region (rmail-msgbeg msg) (rmail-msgend msg))
-     (let ((mbox-buf (current-buffer))
-         (header-end (save-excursion
-                       (re-search-forward "^$" nil 'move) (point)))
-         (body-end (point-max))
-         (entity (rmail-mime-parse)))
-       (or 
+     (let* ((rmail-mime-mbox-buffer (current-buffer))
+          (rmail-mime-view-buffer rmail-view-buffer)
+          (header-end (save-excursion
+                        (re-search-forward "^$" nil 'move) (point)))
+          (body-end (point-max))
+          (entity (rmail-mime-parse)))
 -      (or 
++      (or
         ;; At first, just search the headers.
         (with-temp-buffer
-        (insert-buffer-substring mbox-buf nil header-end)
+        (insert-buffer-substring rmail-mime-mbox-buffer nil header-end)
         (rfc2047-decode-region (point-min) (point))
         (goto-char (point-min))
         (re-search-forward regexp nil t))
         (if (and entity
                (let* ((content-type (rmail-mime-entity-type entity))
                       (charset (cdr (assq 'charset (cdr content-type)))))
--                (or (not (string-match "text/.*" (car content-type))) 
++                (or (not (string-match "text/.*" (car content-type)))
                      (and charset
                           (not (string= (downcase charset) "us-ascii"))))))
           ;; Search the decoded MIME message.
@@@ -186,21 -196,29 +186,29 @@@ See the documentation of `create-fontse
    "Report an error when a suspend is attempted."
    (error "Suspending an Emacs running under W32 makes no sense"))
  
 -(defvar image-library-alist)
 +(defvar dynamic-library-alist)
  
 -;;; Set default known names for image libraries
 -(setq image-library-alist
 +;;; Set default known names for external libraries
 +(setq dynamic-library-alist
-       '((xpm "libxpm.dll" "xpm4.dll" "libXpm-nox4.dll")
-         (png "libpng12d.dll" "libpng12.dll" "libpng.dll"
-        ;; these are libpng 1.2.8 from GTK+
-        "libpng13d.dll" "libpng13.dll")
-         (jpeg "jpeg62.dll" "libjpeg.dll" "jpeg-62.dll" "jpeg.dll")
-         (tiff "libtiff3.dll" "libtiff.dll")
-         (gif "giflib4.dll" "libungif4.dll" "libungif.dll")
-         (svg "librsvg-2-2.dll")
-         (gdk-pixbuf "libgdk_pixbuf-2.0-0.dll")
-         (glib "libglib-2.0-0.dll")
-       (gobject "libgobject-2.0-0.dll")))
+       (list
+        '(xpm "libxpm.dll" "xpm4.dll" "libXpm-nox4.dll")
+        ;; Versions of libpng 1.4.x and later are incompatible with
+        ;; earlier versions.  Set up the list of libraries according to
+        ;; the version we were compiled against.  (If we were compiled
+        ;; without PNG support, libpng-version's value is -1.)
+        (if (>= libpng-version 10400)
+          ;; libpng14-14.dll is libpng 1.4.3 from GTK+
+          '(png "libpng14-14.dll" "libpng14.dll")
+        '(png "libpng12d.dll" "libpng12.dll" "libpng3.dll" "libpng.dll"
+              ;; these are libpng 1.2.8 from GTK+
+              "libpng13d.dll" "libpng13.dll"))
+         '(jpeg "jpeg62.dll" "libjpeg.dll" "jpeg-62.dll" "jpeg.dll")
+         '(tiff "libtiff3.dll" "libtiff.dll")
+         '(gif "giflib4.dll" "libungif4.dll" "libungif.dll")
+         '(svg "librsvg-2-2.dll")
+         '(gdk-pixbuf "libgdk_pixbuf-2.0-0.dll")
+         '(glib "libglib-2.0-0.dll")
+       '(gobject "libgobject-2.0-0.dll")))
  
  ;;; multi-tty support
  (defvar w32-initialized nil
Simple merge
diff --cc lisp/time.el
Simple merge
diff --cc lisp/version.el
Simple merge
@@@ -1,14 -1,8 +1,21 @@@
+ 2011-01-02  Glenn Morris  <rgm@gnu.org>
+       * Cocoa/Emacs.base/Contents/Info.plist:
+       * Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:
+       * GNUstep/Emacs.base/Resources/Info-gnustep.plist:
++      Set short copyright year to 2011.
++
 +2010-10-13  Glenn Morris  <rgm@gnu.org>
 +
 +      * README: Remove information duplicated in AUTHORS.
 +      Move historical information to new file ../etc/NEXTSTEP.
 +      * AUTHORS: Merge into ./etc/NEXTSTEP and remove file.
 +
 +2010-10-12  Glenn Morris  <rgm@gnu.org>
 +
 +      * FOR-RELEASE: Merge into ../etc/TODO.
 +
 +      * DEV-NOTES: Move to ../admin/notes/nextstep.
  
  2010-05-07  Chong Yidong  <cyd@stupidchicken.com>
  
@@@ -553,7 -553,7 +553,7 @@@ along with GNU Emacs.  If not, see <htt
        <key>CFBundleExecutable</key>
        <string>Emacs</string>
        <key>CFBundleGetInfoString</key>
-       <string>Emacs 24.0.50 Copyright (C) 2010 Free Software Foundation, Inc.</string>
 -      <string>Emacs 23.2.91 Copyright (C) 2011 Free Software Foundation, Inc.</string>
++      <string>Emacs 24.0.50 Copyright (C) 2011 Free Software Foundation, Inc.</string>
        <key>CFBundleIconFile</key>
        <string>Emacs.icns</string>
        <key>CFBundleIdentifier</key>
@@@ -1,6 -1,6 +1,6 @@@
  /* Localized versions of Info.plist keys */
  
  CFBundleName = "Emacs";
 -CFBundleShortVersionString = "Version 23.2.91";
 -CFBundleGetInfoString = "Emacs version 23.2.91, NS Windowing";
 +CFBundleShortVersionString = "Version 24.0.50";
 +CFBundleGetInfoString = "Emacs version 24.0.50, NS Windowing";
- NSHumanReadableCopyright = "Copyright (C) 2010 Free Software Foundation, Inc.";
+ NSHumanReadableCopyright = "Copyright (C) 2011 Free Software Foundation, Inc.";
@@@ -11,9 -11,9 +11,9 @@@
        "Carl Edman (NeXTStep)",
        "..see http://emacs-app.sf.net/authorship.html"
      );
-     Copyright = "Copyright (C) 2010 Free Software Foundation, Inc.";
+     Copyright = "Copyright (C) 2011 Free Software Foundation, Inc.";
      CopyrightDescription = "Released under the GNU General Public License Version 3 or later";
 -    FullVersionID = "Emacs 23.2.91, NS Windowing";
 +    FullVersionID = "Emacs 24.0.50, NS Windowing";
      NSExecutable = Emacs;
      NSIcon = emacs.tiff;
      NSPrincipalClass = NSApplication;
diff --cc nt/ChangeLog
@@@ -1,58 -1,12 +1,66 @@@
 -2010-12-31  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * configure.bat (end): Unset environment variables used by this
+       batch file.
+       * INSTALL: Update the information about PNG support libraries.
+       (Bug#7716)
 -2010-08-02  Óscar Fuentes  <ofv@wanadoo.es>
 +2010-11-23  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * config.nt (EXTERNALLY_VISIBLE): Define.
 +
 +2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
 +
 +      * INSTALL: Refer to `dynamic-library-alist'.
 +
 +2010-10-06  Juanma Barranquero  <lekktu@gmail.com>
 +
 +      * INSTALL: Add note about problematic characters passed to configure.
 +
 +2010-10-01  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * makefile.w32-in (frc, TAGS, TAGS-gmake, TAGS-nmake): New targets.
 +      emacs-src.tags: New file.
 +
 +      * gmake.defs: Add a comment with a single quote to fix
 +      fontification.  (Bug#7102)
 +
 +2010-09-29  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * configure.bat: Fix the condition for copying paths.h into
 +      ../src/epaths.h.
 +
 +2010-09-28  Juanma Barranquero  <lekktu@gmail.com>
 +
 +      * addpm.c (entry, add_registry, main):
 +      * addsection.c (file_data, open_input_file, open_output_file)
 +      (find_section, PTR_TO_OFFSET, copy_executable_and_add_section)
 +      (COPY_CHUNK):
 +      * cmdproxy.c (vfprintf, fprintf, printf, fail, warn, skip_space)
 +      (skip_nonspace, get_next_token, search_dir, make_absolute)
 +      (spawn, main):
 +      * preprep.c (file_data, open_input_file, open_output_file)
 +      (open_inout_file, find_section, PTR_TO_OFFSET, COPY_CHUNK, main):
 +      Use const char*.
 +
 +      * cmdproxy.c (stdin): Don't define, not used.
 +      (main): Don't assign remlen after last use.
 +
 +2010-09-22  Juanma Barranquero  <lekktu@gmail.com>
 +
 +      * configure.bat: Err out when the argument of --cflags contains
 +      invalid characters (check implemented only for GCC).  (Bug#6820)
 +
 +2010-08-19  Juanma Barranquero  <lekktu@gmail.com>
 +
 +      * addpm.c (add_registry): Create App Paths of type REG_EXPAND_SZ.
 +
 +2010-08-12  Jason Rumney  <jasonr@gnu.org>
 +
 +      * addpm.c (add_registry): Set path for runemacs.exe to use.
 +
 +2010-08-08  Óscar Fuentes  <ofv@wanadoo.es>
  
        * cmdproxy.c (main): Use _snprintf instead of wsprintf,
        which has a 1024 char limit on Windows (bug#6647).
diff --cc nt/INSTALL
Simple merge
diff --cc nt/README.W32
Simple merge
@@@ -785,9 -670,19 +785,22 @@@ set userldflags
  set doldflags=\r
  set mingwflag=\r
  set mf=\r
 +set distfiles=\r
 +set HAVE_DISTFILES=\r
 +set distFilesOk=\r
+ set pngsupport=\r
+ set jpegsupport=\r
+ set gifsupport=\r
+ set tiffsupport=\r
+ set xpmsupport=\r
+ set svgsupport=\r
+ set libsOK=\r
+ set HAVE_GIF=\r
+ set HAVE_JPEG=\r
+ set HAVE_PNG=\r
+ set HAVE_TIFF=\r
+ set HAVE_XPM=\r
+ set dbginfo=\r
  \r
  goto skipArchTag\r
     arch-tag: 300d20a4-1675-4e75-b615-7ce1a8c5376c\r
diff --cc src/.gdbinit
Simple merge
diff --cc src/ChangeLog
 -2010-12-31  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
++
++      * keyboard.c (Vselect_active_regions): Doc fix.  (Bug#7702)
++
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * image.c <Qlibpng_version>: New variable.
+       (syms_of_image): Intern and staticpro it.  Set its value to the
+       version of PNG library we were compiled with.
+       (my_png_error, png_load): Avoid GCC warnings about direct access
+       to png_ptr->jmpbuf.  (Bug#7716)
+       (png_jmpbuf): New macro.
+       (my_png_error, png_load): Use it instead of #ifdef'ing according
+       to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
 -2010-12-27  Stefan Monnier  <monnier@iro.umontreal.ca>
++2011-01-02  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * .gdbinit (xgetptr): Fix the union+lsb case.
+       (xbacktrace): Fix the union case.
 -2010-12-26  Stefan Monnier  <monnier@iro.umontreal.ca>
++2011-01-02  Stefan Monnier  <monnier@iro.umontreal.ca>
+       * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
+       different from selected-window's.
 -2010-12-25  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * keyboard.c (parse_menu_item): Prepend "  " to the key sequence
+       equivalent of a menu item when the key sequence is given by the
+       `:keys' attribute.  (Bug#7662)
+       * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
+       the basic faces are supported.
 -2010-12-24  Jan Djärv  <jan.h.d@swipnet.se>
++2011-01-02  Jan Djärv  <jan.h.d@swipnet.se>
+       * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
 -2010-12-17  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * xdisp.c (Fformat_mode_line): Fix last change.
 -2010-12-16  Chong Yidong  <cyd@stupidchicken.com>
++2011-01-02  Chong Yidong  <cyd@stupidchicken.com>
+       * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
+       faces (Bug#7587).
 -2010-12-13  Eli Zaretskii  <eliz@gnu.org>
++2011-01-02  Eli Zaretskii  <eliz@gnu.org>
+       * fileio.c (Fexpand_file_name): One more doc fix.
 -2010-12-12  Eli Zaretskii  <eliz@gnu.org>
 +2011-01-01  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
 +      image or label in the container.
 +      (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
 +      (xg_show_toolbar_item): Function deleted.
 +      (xg_tool_item_stale_p): New function.
 +      (update_frame_tool_bar): Calculate tool-bar style once per call.
 +      Instead of hiding text labels, omit them.  Don't use
 +      xg_show_toolbar_item; create new GtkToolItems from scratch if
 +      necessary, instead of trying to re-use them.  This avoids an
 +      annoying animation when changing tool-bars.
 +
 +2010-12-31  Jan Djärv  <jan.h.d@swipnet.se>
 +
 +      * nsfns.m (ns_set_name_as_filename): Always use buffer name for
 +      title and buffer filename only for RepresentedFilename.
 +      Handle bad UTF-8 in buffer name (Bug#7517).
 +
 +2010-12-30  Jan Djärv  <jan.h.d@swipnet.se>
 +
 +      * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
 +
 +      * nsfns.m (ns_set_name_iconic): Remove.
 +      (ns_set_name_internal): New function (Bug#7517).
 +      (Vicon_title_format): Extern declare.
 +      (ns_set_name): Call ns_set_name_internal.
 +      (x_explicitly_set_name): Remove call to ns_set_name_iconic.
 +      (x_implicitly_set_name): Ditto.
 +      (x_set_title): Remove commet about EXPLICIT.  Call ns_set_name_internal.
 +      (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
 +
 +2010-12-29  Štěpán Němec  <stepnem@gmail.com>  (tiny change)
 +
 +      * window.c (syms_of_window): Add missing defsubr for
 +      window-use-time.
 +
 +2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
 +      * xterm.c (x_alloc_lighter_color_for_widget): Restore.
 +
 +2010-12-27  Andreas Schwab  <schwab@linux-m68k.org>
 +
 +      * buffer.c: Remove unused declarations.
 +      * buffer.h: Likewise.
 +      * charset.h: Likewise.
 +      * composite.h: Likewise.
 +      * dispextern.h: Likewise.
 +      * dispnew.c: Likewise.
 +      * font.h: Likewise.
 +      * fontset.c: Likewise.
 +      * fontset.h: Likewise.
 +      * intervals.h: Likewise.
 +      * keymap.h: Likewise.
 +      * lisp.h: Likewise.
 +      * syntax.c: Likewise.
 +      * syntax.h: Likewise.
 +      * termhooks.h: Likewise.
 +      * window.h: Likewise.
 +      * xsettings.h: Likewise.
 +      * xterm.c: Likewise.
 +      * xterm.h: Likewise.
 +
 +      * chartab.c (sub_char_table_ref): Make static.
 +      * dispnew.c (line_hash_code, required_matrix_height)
 +      (required_matrix_width): Likewise.
 +      * eval.c (interactive_p, apply_lambda): Likewise.
 +      * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
 +      Likewise.
 +      * font.c (QCadstyle, QCregistry, font_make_spec)
 +      (font_parse_fcname, font_encode_char, font_at): Likewise.
 +      * frame.c (x_frame_get_arg): Likewise.
 +      * keymap.c (get_keyelt): Likewise.
 +      * lread.c (read_filtered_event): Likewise.
 +      * print.c (write_string_1): Likewise.
 +      * window.c (delete_window, window_height, window_width)
 +      (foreach_window): Likewise.
 +      * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
 +      * xterm.c (x_scroll_bar_clear, xembed_set_info)
 +      (xembed_send_message): Likewise.
 +
 +      * eval.c (run_hook_list_with_args): Delete.
 +      * font.c (font_unparse_gtkname, font_update_lface): Likewise.
 +      * terminal.c (get_terminal_param): Likewise.
 +      * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
 +
 +      * scroll.c: Fix comment.
 +
 +      * dispnew.c (add_window_display_history)
 +      (add_frame_display_history, glyph_row_slice_p)
 +      (find_glyph_row_slice, flush_stdout)
 +      (check_matrix_pointer_lossage, matrix_row)
 +      (check_matrix_invariants, check_window_matrix_pointers)
 +      (check_matrix_pointers, window_to_frame_vpos)
 +      (window_to_frame_hpos): Prototize.
 +      * textprop.c (erase_properties): Likewise.
 +
 +2010-12-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
 +      (print_preprocess): Fix handling of uninterned symbols in last change.
 +
 +      * print.c (print, print_preprocess, print_object): Use a hash table
 +      rather than a linear table for Vprint_number_table.
 +
 +2010-12-20  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
 +
 +2010-12-20  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * keyboard.c (Vtool_bar_separator_image_expression): New variable.
 +      (parse_tool_bar_item): Use it to obtain image separators for
 +      displays not using native tool-bar separators.
 +
 +      * xdisp.c (build_desired_tool_bar_string): Don't handle separators
 +      specially, since this is now done in parse_tool_bar_item.
 +
 +2010-12-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      Minor clean up to silence some gcc warnings.
 +      * window.c (Fset_window_buffer):
 +      * xterm.c (x_set_frame_alpha): Restructure code to silence
 +      compiler warning.
 +      (handle_one_xevent): Remove unused var `p'.
 +      (do_ewmh_fullscreen): Remove unused var `lval'.
 +      (xembed_set_info): Remove unused var `atom'.
 +      * textprop.c (Fremove_list_of_text_properties): Add braces to silence
 +      compiler warning.
 +      * fontset.c (fontset_id_valid_p, dump_fontset):
 +      * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
 +      * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
 +      * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
 +      label only when it's used.
 +      * image.c (x_create_bitmap_from_xpm_data):
 +      * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
 +      its callers.
 +      * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
 +      `consumed_chars'.
 +      (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
 +      (decode_coding_emacs_mule): Remove unused label `retry'.
 +      (detect_eol): Add parens to silence compiler warning.
 +      * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
 +      it's used to silence the compiler.
 +      (make_number): Modernize k&r declaration.
 +      (mark_char_table): Add parens to silence compiler warning.
 +
 +2010-12-17  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * keyboard.c (parse_tool_bar_item): Allow menu separators in
 +      tool-bar maps.
 +      (menu_separator_name_p): New function, from gtkutil.c.
 +      (separator_names): Move from gtkutil.c.
 +
 +      * keyboard.h (menu_separator_name_p): Add prototype.
 +
 +      * gtkutil.c (XG_BIN_CHILD): New macro.
 +      (xg_get_menu_item_label, xg_update_menubar)
 +      (xg_update_menu_item, xg_tool_bar_menu_proxy)
 +      (xg_show_toolbar_item, update_frame_tool_bar): Use it.
 +      (separator_names, xg_separator_p): Move to keyboard.c.
 +      (create_menus, xg_update_submenu, update_frame_tool_bar):
 +      Use menu_separator_name_p.
 +
 +      * nsmenu.m (name_is_separator): Function deleted.
 +      (addItemWithWidgetValue): Use menu_separator_name_p.
 +
 +      * w32menu.c (name_is_separator): Function deleted.
 +      (add_menu_item): Use menu_separator_name_p.
 +
 +2010-12-16  Jan Djärv  <jan.h.d@swipnet.se>
 +
 +      * nsterm.m (ns_draw_window_cursor): If the cursor color is the
 +      same as the background, use the face forground as cursor.
 +
 +2010-12-13  Eli Zaretskii  <eliz@gnu.org>
  
        * fileio.c (Fexpand_file_name): Doc fix.  (Bug#7617)
  
diff --cc src/fileio.c
Simple merge
diff --cc src/image.c
@@@ -5527,11 -5658,15 +5538,13 @@@ init_png_functions (Lisp_Object librari
     is initialized.  */
  
  static void
 -my_png_error (png_ptr, msg)
 -     png_struct *png_ptr;
 -     char *msg;
 +my_png_error (png_struct *png_ptr, const char *msg)
  {
    xassert (png_ptr != NULL);
+   /* Avoid compiler warning about deprecated direct access to
+      png_ptr's fields in libpng versions 1.4.x.  */
    image_error ("PNG error: %s", build_string (msg), Qnil);
-   longjmp (png_ptr->jmpbuf, 1);
+   longjmp (png_jmpbuf (png_ptr), 1);
  }
  
  
diff --cc src/keyboard.c
@@@ -12384,23 -12588,6 +12384,23 @@@ Help functions bind this to allow help 
  and tool-bar buttons.  */);
    Venable_disabled_menus_and_buttons = Qnil;
  
-              doc: /* If non-nil, an active region automatically becomes the window selection.
 +  DEFVAR_LISP ("select-active-regions",
 +             &Vselect_active_regions,
++             doc: /* If non-nil, an active region automatically sets the primary selection.
 +If the value is `only', only temporarily active regions (usually made
 +by mouse-dragging or shift-selection) set the window selection.
 +
 +This takes effect only when Transient Mark mode is enabled.  */);
 +  Vselect_active_regions = Qt;
 +
 +  DEFVAR_LISP ("saved-region-selection",
 +             &Vsaved_region_selection,
 +             doc: /* Contents of active region prior to buffer modification.
 +If `select-active-regions' is non-nil, Emacs sets this to the
 +text in the region before modifying the buffer.  The next
 +`deactivate-mark' call uses this to set the window selection.  */);
 +  Vsaved_region_selection = Qnil;
 +
    /* Create the initial keyboard. */
    initial_kboard = (KBOARD *) xmalloc (sizeof (KBOARD));
    init_kboard (initial_kboard);
diff --cc src/window.c
Simple merge
diff --cc src/xdisp.c
@@@ -19077,8 -17895,9 +19080,9 @@@ properties
  
  Optional third and fourth args WINDOW and BUFFER specify the window
  and buffer to use as the context for the formatting (defaults
- are the selected window and the window's buffer).  */)
-   (Lisp_Object format, Lisp_Object face, Lisp_Object window, Lisp_Object buffer)
+ are the selected window and the WINDOW's buffer).  */)
 -     (format, face, window, buffer)
 -     Lisp_Object format, face, window, buffer;
++     (Lisp_Object format, Lisp_Object face,
++      Lisp_Object window, Lisp_Object buffer)
  {
    struct it it;
    int len;
diff --cc src/xterm.c
Simple merge