]> code.delx.au - gnu-emacs/commitdiff
Add to sendmail.el a new command mail-add-attachment.
authorEli Zaretskii <eliz@gnu.org>
Sat, 10 Sep 2011 08:26:12 +0000 (11:26 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 10 Sep 2011 08:26:12 +0000 (11:26 +0300)
 etc/NEWS: Document the new command and the alias for mail-insert-file.
 lisp/mail/sendmail.el (mml-to-mime, mml-attach-file)
 (mm-default-file-encoding): Remove autoload forms, they are
 replaced with autoload cookies in mml.el and mm-encode.el.
 (mail-add-attachment): New command.
 (mail-mode-map): Add a menu-bar item for mail-add-attachment.
 (mail-mode): Mention mail-insert-file and mail-add-attachment in
 the doc string.
 (mml-to-mime, mml-attach-file, mm-default-file-encoding): Declare.
 lisp/gnus/mm-encode.el (mm-default-file-encoding): Add autoload cookie.
 lisp/gnus/mml.el (mml-to-mime, mml-attach-file): Add autoload cookies.
 doc/emacs/sending.texi (Mail Misc): Document mail-add-attachment.

1  2 
doc/emacs/ChangeLog
doc/emacs/sending.texi
etc/NEWS
lisp/ChangeLog
lisp/gnus/ChangeLog
lisp/gnus/mm-encode.el
lisp/gnus/mml.el
lisp/mail/sendmail.el

diff --combined doc/emacs/ChangeLog
index 5695841730034e15722b2d9c39e806505d49a280,6874ef75ef8ef42b99db663f7a2cd6d9ffd10fe4..b9dbddad3ca098493e6e1aa21d91ba9260672f39
@@@ -1,61 -1,3 +1,65 @@@
++2011-09-10  Eli Zaretskii  <eliz@gnu.org>
++
++      * sending.texi (Mail Misc): Document mail-add-attachment.
++
 +2011-09-04  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * basic.texi (Inserting Text): Add index entries.  (Bug#9433)
 +
 +2011-08-29  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * modes.texi (Choosing Modes): auto-mode-case-fold is now t.
 +
 +2011-08-28  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * files.texi (File Archives):
 +      * cal-xtra.texi (Diary Display):
 +      * help.texi (Help Mode): Add xref to View Mode.
 +
 +2011-08-28  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * display.texi (View Mode): New node.  Move view-file here from
 +      Misc File Ops.  Move view-buffer here from Misc Buffer.
 +
 +      * buffers.texi (Misc Buffer): Move view-buffer to View Mode.
 +
 +      * files.texi (Misc File Ops): Document new
 +      delete-by-moving-to-trash behavior.  Remove view-file.
 +
 +      * dired.texi (Dired Deletion): Shorten description of Trash.
 +
 +      * misc.texi (emacsclient Options): Document server-port.
 +
 +2011-08-27  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * frames.texi (Frame Commands): Advise setting focus-follows-mouse
 +      even on MS-Windows.  Fix a typo.
 +
 +2011-08-26  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * package.texi: New file, documenting the package manager.
 +
 +      * emacs.texi: Include it.
 +
 +      * help.texi (Help Summary): Add describe-package.
 +
 +2011-08-25  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * misc.texi (Printing): Convert subnodes into subsections.
 +
 +      * text.texi (Two-Column): Move into Text chapter.
 +
 +      * picture-xtra.texi (Picture Mode): Group with Editing Binary
 +      Files section.  Convert from chapter into section.
 +
 +      * display.texi (Narrowing): Move into display chapter.
 +
 +      * sending.texi (Sending Mail):
 +      * rmail.texi (Rmail):
 +      * misc.texi (Gnus, Document View):
 +      * dired.texi (Dired):
 +      * emacs.texi: Group the mail, rmail, and gnus chapters together.
 +
  2011-08-07  Juri Linkov  <juri@jurta.org>
  
        * dired.texi (Operating on Files): Rewrite according to the fact
diff --combined doc/emacs/sending.texi
index 02857459cc10bf92c138072d80667523f12f2d88,02857459cc10bf92c138072d80667523f12f2d88..50ec852d7402e46fbbd01d73799f85ff4c6b589e
@@@ -556,8 -556,8 +556,8 @@@ package, which provides more flexible c
  @cindex Multipurpose Internet Mail Extensions
    You can @dfn{attach} a file to an outgoing message by typing
  @kbd{C-c C-a} (@code{mml-attach-file}) in the mail buffer.  Attaching
--is done using the MIME (Multipurpose Internet Mail Extensions)
--standard.
++is done using the Multipurpose Internet Mail Extensions
++(@acronym{MIME}) standard.
  
    The @code{mml-attach-file} command prompts for the name of the file,
  and for the attachment's @dfn{content type}, @dfn{description}, and
@@@ -570,6 -570,6 +570,13 @@@ recipient will see a link to the attach
  or @samp{attachment}, which means the link will be separate from the
  body.
  
++@findex mail-add-attachment
++  The @code{mml-attach-file} command is specific to Message mode; in
++Mail mode use @kbd{mail-add-attachment} instead.  It will prompt only
++for the name of the file, and will determine the content type and the
++disposition automatically.  If you want to include some description of
++the attached file, type that in the message body.
++
    The actual contents of the attached file are not inserted into the
  mail buffer.  Instead, some placeholder text is inserted into the mail
  buffer, like this:
diff --combined etc/NEWS
index dbeca0b521b940900b9aae34bbcdb96f76100f46,ec863dacef84b9f7acde5eb46d98793c8d43742d..aaeeed4803e13744d731c6fcf4ee11b8b9b30427
+++ b/etc/NEWS
@@@ -43,12 -43,10 +43,12 @@@ to configure.  Note that other librarie
  also depend on Gtk+.  You can disable them with --without-rsvg and
  --without-gconf.
  
 +---
  ** There is a new configure option --enable-use-lisp-union-type.
  This is only useful for Emacs developers to debug certain types of bugs.
  This is not a new feature; only the configure flag is new.
  
 +---
  ** There is a new configure option --with-wide-int.
  With it, Emacs integers typically have 62 bits, even on 32-bit machines.
  
  Type `C-u C-h t' to choose it in case your language setup doesn't
  automatically select it.
  
 +** Emacs can be compiled with ImageMagick support.
 +Emacs links to ImageMagick if version 6.2.8 or newer of the library is
 +present at build time.  To inhibit ImageMagick, use the configure
 +option `--without-imagemagick' .
 +
 +---
 +** The standalone programs digest-doc and sorted-doc are removed.
 +Emacs now uses Lisp commands `doc-file-to-man' and `doc-file-to-info'.
 +
 +---
 +** The standalone program `fakemail' is removed.
 +If you need it, feedmail.el provides a superset of the functionality.
 +
  \f
  * Startup Changes in Emacs 24.1
  
@@@ -89,8 -74,27 +89,8 @@@ and also when HOME is set to C:\ by def
  \f
  * Changes in Emacs 24.1
  
 -** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'.
 -This is handy for minibuffer-only frames, and is also used for the "mouse-1
 -pops up *Messages*" feature, which can now easily be changed.
 -
 -** emacsclient changes
 -
  +++
 -*** New emacsclient argument --parent-id ID can be used to open a
 -client frame in parent X window ID, via XEmbed.  This works like the
 ---parent-id argument to Emacs.
 -
 -+++
 -*** New emacsclient argument -q/--quiet suppresses some status messages.
 -
 -+++
 -*** New emacsclient argument --frame-parameters can be used to set the
 -frame parameters of a newly-created graphical frame.
 -
 -+++
 -*** If emacsclient shuts down as a result of Emacs signalling an
 -error, its exit status is 1.
 +** auto-mode-case-fold is now enabled by default.
  
  ** Completion
  
@@@ -117,132 -121,128 +117,141 @@@ and pops down the *Completions* buffer 
  Instead, the bindings in minibuffer-local-filename-completion-map are combined
  with minibuffer-local-must-match-map.
  
 -** auto-mode-case-fold is now enabled by default.
 -
  ** Mail changes
  
 -The default of `send-mail-function' has changed from
 -`sendmail-send-it' (on GNU/Linux and other Unix-like systems) or
 -`mailclient-send-it' (on Windows) to `sendmail-query-once'.  This new
 -default will ask the user (once) whether to use the internal smtpmail
 -package to send email, or to use the old, external defaults.
 +The default of `send-mail-function' is now `sendmail-query-once',
 +which asks the user (once) whether to use the smtpmail package to send
 +email, or to use the old defaults that rely on external mail
 +facilities (`sendmail-send-it' on GNU/Linux and other Unix-like
 +systems, and `mailclient-send-it' on Windows).
  
 -** smtpmail changes
 +*** smtpmail changes
  
 -*** smtpmail has been largely rewritten to upgrade to STARTTLS if
 -possible, and uses the auth-source framework for getting credentials.
 -The rewrite should be largely compatible with previous versions of
 -smtpmail, but there are two major incompatibilities:
 +**** smtpmail now uses encrypted connections (via STARTTLS) if the
 +mail server supports them.  It also uses the auth-source framework for
 +getting credentials.
  
 -*** `smtpmail-auth-credentials' no longer exists.  That variable used
 -to be be either ~/.authinfo (in which case you won't see any
 -difference), but if it were a direct list of user names and passwords,
 -it will be ignored, and you will be prompted for the user name and the
 -password instead.  They will then be saved to ~/.authinfo.
 +**** The variable `smtpmail-auth-credentials' has been removed.
 +That variable used to have the default value "~/.authinfo", in which
 +case you won't see any difference.  But if you changed it to be a list
 +of user names and passwords, that setting is now ignored; you will be
 +prompted for the user name and the password, which will then be saved
 +to ~/.authinfo.
  
 -If you wish to copy over all the credentials from
 -`smtpmail-auth-credentials' to your ~/.authinfo file manually, instead
 -of letting smtpmail prompt you for these values, that's also possible.
 +You can also manually copy the credentials to your ~/.authinfo file.
 +For example, if you had
  
 -If you had, for instance,
 -
 -(setq smtpmail-auth-credentials
 -      '(("mail.example.org" 25 "jim" "s!cret")))
 +  (setq smtpmail-auth-credentials
 +        '(("mail.example.org" 25 "jim" "s!cret")))
  
  then the equivalent line in ~/.authinfo would be
  
 -machine mail.example.org port 25 login jim password s!cret
 +  machine mail.example.org port 25 login jim password s!cret
 +
 +**** The variable `smtpmail-starttls-credentials' has been removed.
  
 -*** Similarly, `smtpmail-starttls-credentials' no longer exists.  If
 -you had that set, then then you need to put
 +If you had that set, then then you need to put
  
 -machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert
 -"~/.my_smtp_tls.cert"
 +  machine smtp.whatever.foo port 25 key "~/.my_smtp_tls.key" cert "~/.my_smtp_tls.cert"
  
  in your ~/.authinfo file instead.
  
++*** sendmail changes
+++++
++You can now add MIME attachments to outgoing messages with the new
++command `mail-add-attachment'.
++
++---
++The command `mail-attach-file' was renamed to `mail-insert-file'; the
++old name is now an obsolete alias to the new name.
++
 +** Emacs server and client changes
 ++++
 +*** New option `server-port' specifies the port on which the Emacs
 +server should listen.
 ++++
 +*** New emacsclient argument -q/--quiet suppresses some status messages.
 ++++
 +*** New emacsclient argument --frame-parameters can be used to set the
 +frame parameters of a newly-created graphical frame.
 ++++
 +*** If emacsclient shuts down as a result of Emacs signalling an
 +error, its exit status is 1.
 ++++
 +*** New emacsclient argument --parent-id ID.
 +This opens a client frame in parent X window ID, via XEmbed, similar
 +to the --parent-id argument to Emacs.
 +
  ** Internationalization changes
  
  +++
  *** Emacs now supports display and editing of bidirectional text.
  
 -See the node "Bidirectional Editing" in the Emacs Manual for some
 -additional documentation.
 -
 -To turn this off in any given buffer, set the buffer-local variable
 -`bidi-display-reordering' to a nil value.  The default is t.  For text
 -that includes no right-to-left characters, the result of reordering
 -looks exactly as it did in previous versions, i.e. there's no
 -reordering at all.
 +Text that includes characters from right-to-left (RTL) scripts, such
 +as Arabic, Farsi, or Hebrew, is displayed in the correct visual order
 +as expected by users of those scripts.  This display reordering is a
 +"Full bidirectionality" class implementation of the Unicode
 +Bidirectional Algorithm.  Buffers RTL text should look exactly the
 +same as before.
  
 -The buffer-local variable `bidi-paragraph-direction', if non-nil,
 -forces each paragraph in the buffer to have its base direction
 -according to the value of this variable.  Possible values are
 -`right-to-left' and `left-to-right'.  If the value is nil (the
 -default), Emacs determines the base direction of each paragraph from
 -its text, as specified by the Unicode Bidirectional Algorithm.
 +For more information, see the node "Bidirectional Editing" in the
 +Emacs Manual.
  
 -The function `current-bidi-paragraph-direction' returns the actual
 -value of paragraph base direction at point.
 ++++
 +**** New buffer-local variable `bidi-display-reordering'.
 +To disable display reordering in any given buffer, change this to nil.
  
 -Reordering of bidirectional text for display in Emacs is a "Full
 -bidirectionality" class implementation of the Unicode Bidirectional
 ++++
 +**** New buffer-local variable `bidi-paragraph-direction'.
 +If nil (the default), Emacs determines the base direction of each
 +paragraph from its text, as specified by the Unicode Bidirectional
  Algorithm.
  
 +Setting this to `right-to-left' or `left-to-right' forces a particular
 +base direction on each paragraph in the buffer.
 +
 +Paragraphs whose base direction is right-to-left are displayed
 +starting at the right margin of the window.
 +
  +++
 -*** Enhanced support for characters that have no glyphs in available fonts.
 -If a character has no glyphs in any of the available fonts, Emacs by
 -default will display it either as a hexadecimal code in a box or as a
 +*** Enhanced support for characters with no glyphs in available fonts.
 +If a character has no glyphs in any of the available fonts, Emacs
 +normally displays it either as a hexadecimal code in a box or as a
  thin 1-pixel space.  In addition to these two methods, Emacs can
  display these characters as empty box, as an acronym, or not display
  them at all.  To change how these characters are displayed, customize
  the variable `glyphless-char-display-control'.
  
 -On character terminals these methods are used for characters that
 +On character terminals, these methods are used for characters that
  cannot be encoded by the `terminal-coding-system'.
  
 -*** There are two new input methods for Persian/Farsi: farsi and farsi-translit.
 +---
 +*** New input methods for Farsi: farsi and farsi-translit.
 +
 +** Improved GTK integration
  
 -** GTK scroll-bars are now placed on the right by default.
 +*** GTK scroll-bars are now placed on the right by default.
  Use `set-scroll-bar-mode' to change this.
  
 -** GTK tool bars can have just text, just images or images and text.
 +*** GTK tool bars can have just text, just images or images and text.
  Customize `tool-bar-style' to choose style.  On a Gnome desktop, the default
  is taken from the desktop settings.
  
 -** GTK tool bars can be placed on the left/right or top/bottom of the frame.
 +*** GTK tool bars can be placed on the left/right or top/bottom of the frame.
  The frame-parameter tool-bar-position controls this.  It takes the values
  top, left, right or bottom.  The Options => Show/Hide menu has entries
  for this.
  
 -** ImageMagick support.
 -It is now possible to use the ImageMagick library to load many new
 -image formats in Emacs.  By default, Emacs links with the ImageMagick
 -libraries if they are present at build time.  This needs ImageMagick
 -6.2.8 or newer (versions newer than 6.0.7 _may_ work but have not been
 -tested).  To disable ImageMagick support, use the configure option
 -`--without-imagemagick'.
 -
 -The new function `imagemagick-types' returns a list of image file
 -extensions that your installation of ImageMagick supports.  The
 -function `imagemagick-register-types' enables ImageMagick support for
 -these image types, minus those listed in `imagemagick-types-inhibit'.
 +*** The colors for selected text (the region face) are taken from the GTK
 +theme when Emacs is built with GTK.
  
 -See the Emacs Lisp Reference Manual for more information.
 +*** Emacs uses GTK tooltips by default if built with GTK.  You can turn that
 +off by customizing x-gtk-use-system-tooltips.
  
 ++++
  ** New basic faces `error', `warning', `success' are available to
  highlight strings that indicate failure, caution or successful operation.
  
 -** The colors for selected text (the region face) are taken from the GTK
 -theme when Emacs is built with GTK.
 -
 -** Emacs uses GTK tooltips by default if built with GTK.  You can turn that
 -off by customizing x-gtk-use-system-tooltips.
 -
  ** Lucid menus and dialogs can display antialiased fonts if Emacs is built
  with Xft.  To change font, use the X resource font, for example:
  Emacs.pane.menubar.font:  Courier-12
  Also, the first dash (which does not indicate anything) is just
  displayed as a space.
  
 -** On Nextstep/OSX, the menu bar can be hidden by customizing
 -ns-auto-hide-menu-bar.
 -
  ** Basic SELinux support has been added.
  This requires Emacs to be linked with libselinux at build time.
  
@@@ -269,47 -272,43 +278,47 @@@ for remote machines which support SELin
  ** The function format-time-string now supports the %N directive, for
  higher-resolution time stamps.
  
 -** The function kill-emacs is now run upon receipt of the signals SIGTERM
 -and SIGHUP, and upon SIGINT in batch mode.
 -
 -** kill-emacs-hook is now also run in batch mode.
 +** Changes for exiting Emacs
 ++++
 +*** The function kill-emacs is now run upon receipt of the signals
 +SIGTERM and SIGHUP, and upon SIGINT in batch mode.
 ++++
 +*** kill-emacs-hook is now also run in batch mode.
  If you have code that adds something to kill-emacs-hook, you should
  consider if it is still appropriate to add it in the noninteractive case.
  
 -** New scrolling commands `scroll-up-command' and `scroll-down-command'
 +** Scrolling changes
 +
 +*** New scrolling commands `scroll-up-command' and `scroll-down-command'
  (bound to C-v/[next] and M-v/[prior]) do not signal errors at top/bottom
  of buffer at first key-press (instead move to top/bottom of buffer)
  when a new variable `scroll-error-top-bottom' is non-nil.
  
 -** New scrolling commands `scroll-up-line' and `scroll-down-line'
 +*** New scrolling commands `scroll-up-line' and `scroll-down-line'
  scroll a line instead of full screen.
  
 -** New property `scroll-command' should be set on a command's symbol to
 +*** New property `scroll-command' should be set on a command's symbol to
  define it as a scroll command affected by `scroll-preserve-screen-position'.
  
  +++
 -** If you customize `scroll-conservatively' to a value greater than 100,
 +*** If you customize `scroll-conservatively' to a value greater than 100,
  Emacs will never recenter point in the window when it scrolls due to
  cursor motion commands or commands that move point (e.f., `M-g M-g').
  Previously, you needed to use `most-positive-fixnum' as the value of
  `scroll-conservatively' to achieve the same effect.
  
  ---
 -** ``Aggressive'' scrolling now honors the scroll margins.
 +*** ``Aggressive'' scrolling now honors the scroll margins.
  If you customize `scroll-up-aggressively' or
  `scroll-down-aggressively' and move point off the window, Emacs now
  scrolls the window so as to avoid positioning point inside the scroll
  margin.
  
  ** Trash changes
 -
 ++++
  *** `delete-by-moving-to-trash' now only affects commands that specify
  trashing.  This avoids inadvertently trashing temporary files.
 -
 ++++
  *** Calling `delete-file' or `delete-directory' with a prefix argument
  now forces true deletion, regardless of `delete-by-moving-to-trash'.
  
@@@ -318,18 -317,22 +327,18 @@@ for `list-colors-display'
  
  ** An Emacs Lisp package manager is now included.
  This is a convenient way to download and install additional packages,
 -from a package repository at elpa.gnu.org.
 -
 +from a package repository at http://elpa.gnu.org.
 ++++
  *** `M-x list-packages' shows a list of packages, which can be
  selected for installation.
 -
 ++++
  *** New command `describe-package', bound to `C-h P'.
 -
 ++++
  *** By default, all installed packages are loaded and activated
  automatically when Emacs starts up.  To disable this, set
  `package-enable-at-startup' to nil.  To change which packages are
  loaded, customize `package-load-list'.
  
 -** An Emacs Lisp testing tool is now included.
 -Emacs Lisp developers can use this tool to write automated tests for
 -their code.  See the ERT info manual for details.
 -
  ** Custom Themes
  
  *** `M-x customize-themes' lists Custom themes which can be enabled.
@@@ -347,22 -350,16 +356,22 @@@ default, all themes included in Emacs a
  ** The user option `remote-file-name-inhibit-cache' controls whether
  the remote file-name cache is used for read access.
  
 +** File- and directory-local variable changes
  +++
 -** The use of a "mode: minor" specification in a file local variables section
 -to enable a minor-mode is deprecated.  Instead, use "eval: (minor-mode 1)".
 +*** You can stop directory local vars from applying to subdirectories.
 +Add an element (subdirs . nil) to the alist portion of any variables
 +settings to indicate that the section should not apply to
 +subdirectories.
  
 -** The standalone programs lib-src/digest-doc and sorted-doc have been
 -replaced with Lisp commands `doc-file-to-man' and `doc-file-to-info'.
 +*** Directory local variables can apply to some file-less buffers.
 +Affected modes include dired, vc-dir, and log-edit.  For example,
 +adding "(diff-mode . ((mode . whitespace)))" to .dir-locals.el will
 +turn on `whitespace-mode' for *vc-diff* buffers.  Modes should call
 +`hack-dir-local-variables-non-file-buffer' to support this.
  
 ----
 -** The standalone program `fakemail' has been removed.
 -If you need it, feedmail.el ought to provide a superset of the functionality.
 ++++
 +*** Using "mode: MINOR-MODE" to enable a minor mode is deprecated.
 +Instead, use "eval: (minor-mode 1)".
  
  +++
  ** The variable `focus-follows-mouse' now always defaults to nil.
@@@ -377,25 -374,24 +386,25 @@@ by default
  *** `menu-bar-select-buffer-function' lets you choose another operation
  instead of `switch-to-buffer' when selecting an item in the Buffers menu.
  
 +** The inactive minibuffer has its own major mode `minibuffer-inactive-mode'.
 +This is handy for minibuffer-only frames, and is also used for the "mouse-1
 +pops up *Messages*" feature, which can now easily be changed.
 +
  \f
  * Editing Changes in Emacs 24.1
  
  ** Search changes
 -
  +++
  *** C-y in Isearch is now bound to isearch-yank-kill, instead of
  isearch-yank-line.
 -
  ---
  *** M-y in Isearch is now bound to isearch-yank-pop, instead of
  isearch-yank-kill.
 -
  +++
  *** M-s C-e in Isearch is now bound to isearch-yank-line.
  
  +++
 -** There is a new command `count-words-region', which does what you expect.
 +** New command `count-words-region'.  This does what you expect.
  
  ** completion-at-point now handles tags and semantic completion.
  
@@@ -407,11 -403,11 +416,11 @@@ also deletes newlines around point
  ** Deletion changes
  
  *** New option `delete-active-region'.
 -If non-nil, C-d, [delete], and DEL delete the region if it is active
 -and no prefix argument is given.  If set to `kill', these commands
 -kill instead.
 +If non-nil, [delete] and DEL delete the region if it is active and no
 +prefix argument is given.  If set to `kill', these commands kill
 +instead.
  
 -*** New command `delete-forward-char', bound to C-d and [delete].
 +*** New command `delete-forward-char', bound to [delete].
  This is meant for interactive use, and obeys `delete-active-region'.
  The command `delete-char' does not obey `delete-active-region'.
  
  Apart from obeying `delete-active-region', its behavior is unchanged.
  However, the byte compiler now warns if it is called from Lisp; you
  should use delete-char with a negative argument instead.
 -
 +---
  *** The option `mouse-region-delete-keys' has been deleted.
  
  ** Selection changes.
@@@ -480,8 -476,10 +489,8 @@@ between applications
  +++
  *** Support for X cut buffers has been removed.
  
 -*** Support for X clipboard managers has been added.
 -
 -**** To inhibit use of the clipboard manager, set
 -`x-select-enable-clipboard-manager' to nil.
 +*** X clipboard managers are now supported.
 +To inhibit this, change `x-select-enable-clipboard-manager' to nil.
  
  ** New command `rectangle-number-lines', bound to `C-x r N', numbers
  the lines in the current rectangle.  With an prefix argument, this
@@@ -494,16 -492,37 +503,16 @@@ $ESHELL nor variable `explicit-shell-fi
  \f
  * Changes in Specialized Modes and Packages in Emacs 24.1
  
 -** MH-E
 -
 -*** Upgraded to MH-E version 8.2.93.  See MH-E-NEWS for details.
 -
 -** comint and modes derived from it use the generic completion code.
 -
 -** Compilation mode
 -
 -*** Compilation mode can be used without font-lock-mode.
 -`compilation-parse-errors-function' is now obsolete.
 -
 -*** `compilation-filter-start' is let-bound to the start of the text
 -inserted by the compilation filter function, when calling
 -compilation-filter-hook.
 -
 -** The Landmark game is now invoked with `landmark', not `lm'.
 -
 -** Prolog mode has been completely revamped, with lots of additional
 -functionality such as more intelligent indentation, electricity, support for
 -more variants, including Mercury, and a lot more.
 -
 -** shell-mode can track your cwd by reading it from your prompt.
 -Just set shell-dir-cookie-re to an appropriate regexp.
 +** Archive Mode has basic support for browsing and updating 7z archives.
  
 -** Modula-2 mode provides auto-indentation.
 +** browse-url has a new variable `browse-url-mailto-function'
 +specifies how mailto: URLs are handled.  The default is `browse-url-mail'.
  
  ** BibTeX mode
  
  *** BibTeX mode now supports biblatex.
 -Use the variable bibtex-dialect to select support for different BibTeX dialects.
 -bibtex-entry-field-alist is now an obsolete alias for
 +Use the variable bibtex-dialect to select support for different BibTeX
 +dialects.  bibtex-entry-field-alist is now an obsolete alias for
  bibtex-BibTeX-entry-alist.
  
  *** New command `bibtex-search-entries' bound to C-c C-a.
  
  *** New variable `bibtex-search-entry-globally'.
  
 -** latex-electric-env-pair-mode keeps \begin..\end matched on the fly.
 -
 -** FIXME: xdg-open for browse-url and reportbug, 2010/08.
 -
 -** Archive Mode has basic support to browse and update 7z archives.
 -
 -** browse-url has gotten a new variable that is used for mailto: URLs,
 -`browse-url-mailto-function', which defaults to `browse-url-mail'.
 -
 -** `url-queue-retrieve' downloads web pages asynchronously, but allow
 -controlling the degree of parallelism.
 -
 -** Directory local variables can apply to file-less buffers, in certain modes
 -(eg dired, vc-dir, log-edit).  For example, adding
 -"(diff-mode . ((mode . whitespace)))" to your .dir-locals.el file,
 -will turn on `whitespace-mode' for *vc-diff* buffers.  Modes should
 -call `hack-dir-local-variables-non-file-buffer' to support this.
 -
 -+++
 -** You can prevent directory local variables from applying to subdirectories.
 -Add an element (subdirs . nil) to the alist portion of any variables
 -settings to indicate said section should not be applied to subdirectories.
 -
 -** ERC changes
 -
 -*** New vars `erc-autojoin-timing' and `erc-autojoin-delay'.
 -If the value of `erc-autojoin-timing' is 'ident, ERC autojoins after a
 -successful NickServ identification, or after `erc-autojoin-delay'
 -seconds.  The default value, 'ident, means to autojoin immediately
 -after connecting.
 -
 -*** New variable `erc-coding-system-precedence': If we use `undecided'
 -as the server coding system, this variable will then be consulted.
 -The default is to decode strings that can be decoded as utf-8 as
 -utf-8, and do the normal `undecided' decoding for the rest.
 -
 -** Eshell changes
 -
 -*** The default value of eshell-directory-name is a directory named
 -"eshell" in `user-emacs-directory'.  If the old "~/.eshell/" directory
 -exists, that is used instead.
 -
 -** In ido-mode, C-v is no longer bound to ido-toggle-vc.
 -The reason is that this interferes with cua-mode.
 -
 -** partial-completion-mode is now obsolete.
 -You can get a comparable behavior with:
 -(setq completion-styles '(partial-completion initials))
 -(setq completion-pcm-complete-word-inserts-delimiters t)
 -
 -** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
 -
 -** server can listen on a specific port using the server-port option.
 -
  ** Calendar, Diary, and Appt
  
  +++
@@@ -547,21 -620,6 +556,21 @@@ appt-visible/appt-msg-window (use the v
  *** Some diary function aliases (obsolete since Emacs 22.1) have been removed:
  view-diary-entries, list-diary-entries, show-all-diary-entries
  
 +** CC Mode (C, C++, etc.)
 +
 +*** New feature to "guess" the style in an existing buffer.
 +
 +** comint and modes derived from it use the generic completion code.
 +
 +** Compilation mode
 +
 +*** Compilation mode can be used without font-lock-mode.
 +`compilation-parse-errors-function' is now obsolete.
 +
 +*** `compilation-filter-start' is let-bound to the start of the text
 +inserted by the compilation filter function, when calling
 +compilation-filter-hook.
 +
  ** Customize
  
  *** Customize buffers now contain a search field.
@@@ -576,18 -634,6 +585,18 @@@ Use the arrow to the left of the optio
  *** The color widget now has a "Choose" button, which allows you to
  choose a color via list-colors-display.
  
 +** D-Bus
 +
 +*** It is possible now, to access alternative buses than the default
 +system or session bus.
 +
 +*** dbus-register-{service,method,property}
 +The -method and -property functions do not automatically register
 +names anymore.
 +
 +The new function dbus-register-service registers a service known name
 +on a D-Bus without simultaneously registering a property or a method.
 +
  ** Dired-x
  
  *** dired-jump and dired-jump-other-window called with a prefix argument
@@@ -597,33 -643,144 +606,33 @@@ read a file name from the minibuffer in
  *** The `dired local variables' feature provided by Dired-x is obsolete.
  The standard directory local variables feature replaces it.
  
 -** SQL Mode enhancements.
 +** ERC changes
  
 -*** `sql-dialect' is a synonym for `sql-product'.
 -
 -*** Added ability to login with a port on MySQL and Postgres.
 -The custom variable `sql-port' can be specified for connection to
 -MySQL or Postgres servers.  By default, the port is not listed in
 -either login parameter, but will be added to the command line if set
 -to a non-zero value.
 -
 -*** Dynamic selection of product in an SQL interactive session.
 -If you use `sql-product-interactive' to start an SQL interactive
 -session it uses the current value of `sql-product'.  Preceding the
 -invocation with C-u will force it to ask for the product before
 -creating the session.
 -
 -*** Renaming a SQL interactive buffer when it is created.
 -Prefixing the SQL interactive commands (`sql-sqlite', `sql-postgres',
 -`sql-mysql', etc.) with C-u will force a new interactive session to be
 -started and will prompt for the new name.  This will reduce the need
 -for `sql-rename-buffer' is most common use cases.
 -
 -*** Command continuation prompts in SQL interactive mode are suppressed.
 -Multiple line commands in SQL interactive mode, generate command
 -continuation prompts which needlessly confuse the output.  These
 -prompts are now filtered out from the output.  This change impacts
 -multiple line SQL statements entered with C-j between each line,
 -statements yanked into the buffer and statements sent with
 -`sql-send-*' functions.
 -
 -*** Custom variables control prompting for login parameters.
 -Each supported product has a custom variable `sql-*-login-params'
 -which is a list of the parameters to be prompted for before a
 -connection is established.
 +*** New vars `erc-autojoin-timing' and `erc-autojoin-delay'.
 +If the value of `erc-autojoin-timing' is 'ident, ERC autojoins after a
 +successful NickServ identification, or after `erc-autojoin-delay'
 +seconds.  The default value, 'ident, means to autojoin immediately
 +after connecting.
  
 -The lists consist of the following five tokens: `user', `password',
 -`database', `server', and `port'.  The order in which they appear is
 -the order in which they are prompted.  The tokens symbols can be
 -replaced by a sublist starting with the token and followed by a plist
 -which control the prompting for values.  The tokens `user',
 -`database', and `server' each can take a property of :default which
 -specifies the value to be used if no value is entered.  The
 -`database', `server', and `port' tokens handle the :completion
 -property which restricts the entry to either one of the values in the
 -list or to one of the values returned by the function provided as the
 -property value.  The `database' and `server' tokens also accept the
 -:file property whose value is a regexp to identify useful file names.
 -
 -  (user :default DEF)
 -  (database :default DEF
 -            :file FILEPAT
 -            :completion COMPLETE)
 -  (server :default DEF
 -          :file FILEPAT
 -          :completion COMPLETE)
 -
 -The FILEPAT when :file is specified is a regexp that will match valid
 -file names (without the directory portion).  Generally these strings
 -will be of the form ".+\.SUF" where SUF is the desired file suffix.
 -
 -When :completion is specified, the COMPLETE corresponds to the
 -PREDICATE argument to the `completing-read' function (a list of
 -possible values or a function returning such a list).
 -
 -*** Added `sql-connection-alist' to record login parameter values.
 -An alist for recording different username, database and server
 -values.  If there are multiple databases that you connect to the
 -parameters needed can be stored in this alist.
 -
 -For example, the following might be set in the user's init.el:
 -
 -  (setq sql-connection-alist
 -        '((dev (sql-product 'sqlite)
 -               (sql-database "/home/mmaug/dev.db"))
 -          (prd (sql-product 'oracle)
 -               (sql-user "mmaug")
 -               (sql-database "iprd2a"))))
 -
 -This defines two connections named "dev" and "prd".
 -
 -*** Added `sql-connect' to use predefined connections.
 -Sets the login parameters based on the values in the
 -`sql-connection-alist' and start a SQL interactive session.  Any
 -values specified in the connection will not be prompted for.
 -
 -In the example above, if the user were to invoke M-x sql-connect, they
 -would be prompted for the connection.  The user can respond with
 -either "dev" or "prd".  The "dev" connection would connect to the
 -SQLite database without prompting; the "prd" connection would prompt
 -for the users password and then connect to the Oracle database.
 -
 -**** Added SQL->Start... submenu when connections are defined.
 -When connections have been defined, there is a submenu available that
 -allows the user to select one to start a SQLi session.  The "Start
 -SQLi Session" item moves to the "Start..." submenu when cnnections
 -have been defined.
 -
 -**** Added "Save Connection" menu item in SQLi buffers.
 -When a SQLi session is not started by a connection then
 -`sql-save-connection' will gather the login params specified for the
 -session and save them as a new connection.
 -
 -*** List database objects and details.
 -Once a SQL interactive session has been started, you can get a list of
 -the objects in the database and see details of those objects.  The
 -objects shown and the details available are product specific.
 -
 -**** List all objects.
 -Using `M-x sql-list-all', `C-c C-l a' or selecting "SQL->List all
 -objects" will list all the objects in the database.  At a minimum it
 -lists the tables and views in the database.  Preceding the command by
 -universal argument may provide additional details or extend the
 -listing to include other schemas objects.  The list will appear in a
 -separate window in view-mode.
 -
 -**** List Table details.
 -Using `M-x sql-list-table', `C-c C-l t' or selecting "SQL->List Table
 -details" will ask for the name of a database table or view and display
 -the list of columns in the relation.  Preceding the command with the
 -universal argument may provide additional details about each column.
 -The list will appear in a separate window in view-mode.
 -
 -*** Added option `sql-send-terminator'.
 -When set makes sure that each command sent with `sql-send-*' commands
 -are properly terminated and submitted to the SQL processor.
 -
 -*** Added option `sql-oracle-scan-on'.
 -When set commands sent to Oracle's SQL*Plus are scanned for strings
 -starting with an ampersand and the user is asked for replacement text.
 -In general, the SQL*Plus option SCAN should always be set OFF under
 -SQL interactive mode and this option used in its place.
 -
 -*** SQL interactive mode will replace tabs with spaces.
 -This prevents the command interpreter for MySQL and Postgres from
 -listing object name completions when being sent text via
 -`sql-send-*' functions.
 +*** New variable `erc-coding-system-precedence': If we use `undecided'
 +as the server coding system, this variable will then be consulted.
 +The default is to decode strings that can be decoded as utf-8 as
 +utf-8, and do the normal `undecided' decoding for the rest.
  
 -*** An API for manipulating SQL product definitions has been added.
 +** Eshell changes
 +
 +*** The default value of eshell-directory-name is a directory named
 +"eshell" in `user-emacs-directory'.  If the old "~/.eshell/" directory
 +exists, that is used instead.
 +
 +** gdb-mi
 +
 +*** GDB User Interface migrated to GDB Machine Interface and now
 +supports multithread non-stop debugging and debugging of several
 +threads simultaneously.
 +
 +** In ido-mode, C-v is no longer bound to ido-toggle-vc.
 +The reason is that this interferes with cua-mode.
  
  ** Image mode
  
@@@ -633,100 -790,28 +642,100 @@@ image can be animated
  *** Option `image-animate-loop', if non-nil, loops the animation.
  If nil, `image-toggle-animation' plays the animation once.
  
 -** sregex.el is now obsolete, since rx.el is a strict superset.
 +** Info
  
 -** s-region.el and pc-select are now declared obsolete,
 -superseded by shift-select-mode enabled by default in 23.1.
 -** pc-mode.el is also declared obsolete.
 -** gdb-mi
 +*** New command `info-display-manual' displays an Info manual
 +specified by its name.  If that manual is already visited in some Info
 +buffer within the current session, the command will display that
 +buffer.  Otherwise, it will load the manual and display it.  This is
 +handy if you have many manuals in many Info buffers, and don't
 +remember the name of the buffer visiting the manual you want to
 +consult.
  
 -*** GDB User Interface migrated to GDB Machine Interface and now
 -supports multithread non-stop debugging and debugging of several
 -threads simultaneously.
 +** The Landmark game is now invoked with `landmark', not `lm'.
  
 -** D-Bus
 +** MH-E has been upgraded to MH-E version 8.2.93.
 +See MH-E-NEWS for details.
  
 -*** It is possible now, to access alternative buses than the default
 -system or session bus.
 +** Modula-2 mode provides auto-indentation.
  
 -*** dbus-register-{service,method,property}
 -The -method and -property functions do not automatically register
 -names anymore.
 +** mpc.el: Can use pseudo tags of the form tag1|tag2 as a union of two tags.
  
 -The new function dbus-register-service registers a service known name
 -on a D-Bus without simultaneously registering a property or a method.
 +** Prolog mode has been completely revamped, with lots of additional
 +functionality such as more intelligent indentation, electricity, support for
 +more variants, including Mercury, and a lot more.
 +
 +** Rmail
 +
 +*** The command `rmail-epa-decrypt' decrypts OpenPGP data
 +in the Rmail incoming message.
 +
 +** shell-mode can track your cwd by reading it from your prompt.
 +Just set shell-dir-cookie-re to an appropriate regexp.
 +
 +---
 +** SQL Mode enhancements.
 +
 +*** `sql-dialect' is an alias for `sql-product'.
 +
 +*** New variable `sql-port' specifies the port number for connecting
 +to a MySQL or Postgres server.
 +
 +*** The command `sql-product-interactive' now takes a prefix argument,
 +which causes it to prompt for an SQL product instead of the current
 +value of `sql-product'.
 +
 +*** Product-specific SQL interactive commands now take prefix args.
 +These commands (`sql-sqlite', `sql-postgres', `sql-mysql', etc.),
 +given a prefix argument, prompt for a name for the SQL interactive
 +buffer.  This reduces the need for calling `sql-rename-buffer'.
 +
 +*** SQL interactive modes suppress command continuation prompts, and
 +replace tabs with spaces.  The first change impacts multiple line SQL
 +statements entered with C-j between each line, statements yanked into
 +the buffer and statements sent with `sql-send-*' functions.  The
 +second change prevents the MySQL and Postgres interpreters from
 +listing object name completions when sent text via `sql-send-*'
 +functions.
 +
 +*** New custom variables control prompting for login parameters.
 +Each supported product has a custom variable `sql-*-login-params',
 +which is a list of the parameters to be prompted for before a
 +connection is established.
 +
 +*** New variable `sql-connection-alist' for login parameter values.
 +This can be used to store different username, database and server
 +values.  Connections defined in this variable appear in the submenu
 +SQL->Start... for making new SQLi sessions.
 +
 +*** New command `sql-connect' starts a predefined SQLi session,
 +using the login parameters from `sql-connection-alist'.
 +
 +*** New "Save Connection" menu item in SQLi buffers.
 +This gathers the login params specified for the SQLi session, if it
 +was not started by a connection, and saves them as a new connection.
 +
 +*** Commands for listing database objects and details.
 +In an SQLi session, you can get a list of objects in the database.
 +The contents of these lists are product specific.
 +
 +**** `C-c C-l a' or the "SQL->List all objects" menu item
 +lists all the objects in the database.  With a prefix argument, it
 +displays additional details or extend the listing to include other
 +schemas objects.
 +
 +**** `C-c C-l t' or the "SQL->List Table details" menu item
 +prompts for the name of a database table or view and displays the list
 +of columns in the relation.  With a prefix argument, it displays
 +additional details about each column.
 +
 +*** New options `sql-send-terminator' and `sql-oracle-scan-on'.
 +
 +*** An API for manipulating SQL product definitions has been added.
 +
 +** TeX modes
 +
 +*** latex-electric-env-pair-mode keeps \begin..\end matched on the fly.
  
  ** Tramp
  
  *** The option `ange-ftp-binary-file-name-regexp' has changed its
  default value to "".
  
 -** Rmail
 -
 -*** The command `rmail-epa-decrypt' decrypts OpenPGP data
 -in the Rmail incoming message.
 +** `url-queue-retrieve' downloads web pages asynchronously, but allow
 +controlling the degree of parallelism.
  
  ** VC and related modes
  
@@@ -775,21 -862,9 +784,21 @@@ binding `log-view-expanded-log-entry-fu
  *** New command `vc-ediff' allows visual comparison of two revisions
  of a file similar to `vc-diff', but using ediff backend.
  
 -** CC Mode (C, C++, etc.)
 +** FIXME: xdg-open for browse-url and reportbug, 2010/08.
  
 -*** New feature to "guess" the style in an existing buffer.
 +** Obsolete modes
 +
 +*** partial-completion-mode is obsolete.
 +You can get a comparable behavior with:
 +(setq completion-styles '(partial-completion initials))
 +(setq completion-pcm-complete-word-inserts-delimiters t)
 +
 +*** pc-mode.el is obsolete.
 +
 +*** sregex.el is obsolete, since rx.el is a strict superset.
 +
 +*** s-region.el and pc-select are obsolete.
 +They are superseded by shift-select-mode enabled by default in 23.1.
  
  ** Miscellaneous
  
  
  *** New command `nato-region' converts text to NATO phonetic alphabet.
  
 -*** The new command `info-display-manual' will display an Info manual
 -specified by its name.  If that manual is already visited in some Info
 -buffer within the current session, the command will display that
 -buffer.  Otherwise, it will load the manual and display it.  This is
 -handy if you have many manuals in many Info buffers, and don't
 -remember the name of the buffer visiting the manual you want to
 -consult.
 -
  \f
  * New Modes and Packages in Emacs 24.1
  
@@@ -846,7 -929,6 +855,7 @@@ bidirectional editing introduced in Ema
  bidirectional properties of a character, use `get-char-code-property'
  with the last argument `bidi-class'.
  
 ++++
  ** `copy-directory' now copies the source directory as a subdirectory
  of the target directory, if the latter is an existing directory.  The
  new optional arg COPY-CONTENTS, if non-nil, makes the function copy
@@@ -862,7 -944,7 +871,7 @@@ coordinate in the POSITION list now cou
  area, excluding any header line.  Previously, it counted from the top
  of the header line.
  
 -** Remove obsolete name `e' (use `float-e' instead).
 +** Removed obsolete name `e' (use `float-e' instead).
  
  ** A backquote not followed by a space is now always treated as new-style.
  
@@@ -873,7 -955,6 +882,7 @@@ programmer-visible consequences
  ** Passing a nil argument to a minor mode function now turns the mode
  ON unconditionally.
  
 ++++
  ** During startup, Emacs no longer adds entries for `menu-bar-lines'
  and `tool-bar-lines' to `default-frame-alist' and `initial-frame-alist'.
  With these alist entries omitted, `make-frame' checks the value of the
@@@ -888,7 -969,8 +897,7 @@@ has now been removed
  
  ** cl.el no longer provides `cl-19'.
  
 -** The following functions and aliases, obsolete since at least Emacs 21.1,
 -have been removed:
 +** The following obsolete functions and aliases were removed:
  comint-kill-output, decompose-composite-char, outline-visible,
  internal-find-face, internal-get-face, frame-update-faces,
  frame-update-face-colors, x-frob-font-weight, x-frob-font-slant,
@@@ -898,11 -980,12 +907,11 @@@ x-make-font-bold-italic, mldrag-drag-mo
  iswitchb-default-keybindings, char-bytes, isearch-return-char,
  make-local-hook
  
 -** The following variables and aliases, obsolete since at least Emacs 21.1,
 -have been removed:
 -checkdoc-minor-keymap, vc-header-alist, directory-sep-char,
 -font-lock-defaults-alist
 +** The following obsolete variables and varaliases were removed:
 +checkdoc-minor-keymap, vc-header-alist, directory-sep-char, and
 +font-lock-defaults-alist.
  
 -** The following files, obsolete since at least Emacs 21.1, have been removed:
 +** The following obsolete files were removed:
  sc.el, x-menu.el, rnews.el, rnewspost.el
  
  ** FIXME finder-inf.el changes.
  \f
  * Lisp changes in Emacs 24.1
  
 +** Code can now use lexical scoping by default instead of dynamic scoping.
 +The `lexical-binding' variable lets code use lexical scoping for local
 +variables.  It is typically set via file-local variables, in which case it
 +applies to all the code in that file.
 +
 +*** `eval' takes a new optional argument `lexical' to choose the new lexical
 +binding instead of the old dynamic binding mode.
 +
 +*** Lexically scoped interpreted functions are represented with a new form
 +of function value which looks like (closure ENV ARGS &rest BODY).
 +
 +*** New macro `letrec' to define recursive local functions.
 +
 +*** New function `special-variable-p' to check whether a variable is
 +declared as dynamically bound.
 +
 +** An Emacs Lisp testing tool is now included.
 +Emacs Lisp developers can use this tool to write automated tests for
 +their code.  See the ERT info manual for details.
 +
 +** Changes for bidirectional display and editing
 +
 ++++
 +*** New function `current-bidi-paragraph-direction'.
 +This returns the actual value of base direction of the paragraph at
 +point.
 +
 ++++
 +*** New function `bidi-string-mark-left-to-right'.
 +Given a string containing characters from right-to-left (RTL) scripts,
 +this function returns another string which can be safely inserted into
 +a buffer, such that any following text will be always displayed to the
 +right of that string.  (This works by appending the Unicode
 +"LEFT-TO-RIGHT MARK" character when the argument string might need that.)
 +
 +This is useful when the buffer has overall left-to-right (LTR)
 +paragraph direction and you need to insert a string whose contents and
 +directionality are not known in advance, without disrupting the layout
 +of the line.
 +
  ** Window changes
  
  *** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
@@@ -960,7 -1003,6 +969,7 @@@ can be used, e.g. if the selected one i
  *** FIXME: buffer-display-alist changes
  
  ** Completion
 +
  *** New variable completion-extra-properties used to specify extra properties
  of the current completion:
  - :annotate-function, same as the old completion-annotate-function.
@@@ -988,7 -1030,34 +997,7 @@@ connection, directly or via STARTTLS.  
  parameters (`:end-of-command', `:success', `:capabilities-command')
  must also be supplied.
  
 -** Code can now use lexical scoping by default instead of dynamic scoping.
 -The `lexical-binding' variable lets code use lexical scoping for local
 -variables.  It is typically set via file-local variables, in which case it
 -applies to all the code in that file.
 -
 -*** `eval' takes a new optional argument `lexical' to choose the new lexical
 -binding instead of the old dynamic binding mode.
 -
 -*** Lexically scoped interpreted functions are represented with a new form
 -of function value which looks like (closure ENV ARGS &rest BODY).
 -
 -*** New macro `letrec' to define recursive local functions.
 -
 -*** New function `special-variable-p' to check whether a variable is
 -declared as dynamically bound.
 -
  +++
 -** New function `bidi-string-mark-left-to-right'.
 -Given a string containing right-to-left (RTL) script, this function
 -returns another string which can be safely inserted into a buffer as a
 -distinct RTL "segment", without causing any following text to be
 -displayed as RTL.  (This is done by appending a Unicode "left-to-right
 -mark" character.)
 -
 -This is useful when the buffer has overall left-to-right (LTR)
 -paragraph direction and you need to insert a string whose contents and
 -directionality are not known in advance.
 -
  ** pre/post-command-hook are not reset to nil upon error.
  Instead, the offending function is removed.
  
@@@ -1000,8 -1069,9 +1009,8 @@@ Emacs server instances
  ** `call-process' allows a `(:file "file")' spec to redirect STDOUT to
  a file.
  
 -** byte-compile-disable-print-circle is obsolete.
 -** deferred-action-list and deferred-action-function are obsolete.
 -** Removed the stack-trace-on-error variable.
 +---
 +** Variable `stack-trace-on-error' removed.
  Also the debugger can now "continue" from an error, which means it will jump
  to the error handler as if the debugger had not been invoked instead of
  jumping all the way to the top-level.
@@@ -1014,8 -1084,8 +1023,8 @@@ The variable is now used to load all ki
  not just image libraries.  The previous name is still available as an
  obsolete alias.
  
 -** New variable syntax-propertize-function to set syntax-table properties.
 -Replaces font-lock-syntactic-keywords which are now obsolete.
 +** New variable `syntax-propertize-function'.
 +This replaces `font-lock-syntactic-keywords' which is now obsolete.
  This allows syntax-table properties to be set independently from font-lock:
  just call syntax-propertize to make sure the text is propertized.
  Together with this new variable come a new hook
@@@ -1028,25 -1098,22 +1037,25 @@@ syntactic rules
  
  +++
  ** Syntax tables support a new "comment style c" additionally to style b.
 +
  ** frame-local variables cannot be let-bound any more.
 +
 ++++
  ** prog-mode is a new major-mode meant to be the parent of programming mode.
  The prog-mode-hook it defines can be used to enable features for
  programming modes.  For example:
  (add-hook 'prog-mode-hook 'flyspell-prog-mode)
  enables on the fly spell checking for comments and strings for
  programming modes.
 +
  ** define-minor-mode accepts a new keyword :variable.
  
 ++++
  ** `delete-file' and `delete-directory' now accept optional arg TRASH.
  Trashing is performed if TRASH and `delete-by-moving-to-trash' are
  both non-nil.  Interactively, TRASH defaults to t, unless a prefix
  argument is supplied (see Trash changes, above).
  
 -** buffer-substring-filters is obsoleted by filter-buffer-substring-functions.
 -
  ** `facemenu-read-color' is now an alias for `read-color'.
  The command `read-color' now requires a match for a color name or RGB
  triplet, instead of signalling an error if the user provides a invalid
@@@ -1069,14 -1136,6 +1078,14 @@@ is being animated
  
  *** `image-extension-data' is renamed to `image-metadata'.
  
 +*** If Emacs is compiled with ImageMagick support (see Startup
 +Changes), the function `imagemagick-types' returns a list of image
 +file extensions that your installation of ImageMagick supports.  The
 +function `imagemagick-register-types' enables ImageMagick support for
 +these image types, minus those listed in `imagemagick-types-inhibit'.
 +
 +See the Emacs Lisp Reference Manual for more information.
 +
  ** XML and HTML parsing
  
  *** If Emacs is compiled with libxml2 support (which is the default),
@@@ -1107,7 -1166,6 +1116,7 @@@ the GnuTLS logging conventions.  The ou
  
  *** New hook `isearch-update-post-hook' that runs in `isearch-update'.
  
 ++++
  ** Progress reporters can now "spin".
  The MIN-VALUE and MAX-VALUE arguments of `make-progress-reporter' can
  now be nil, or omitted.  This makes a "non-numeric" reporter.  Each
@@@ -1130,21 -1188,10 +1139,21 @@@ as well as those in the -*- line
  
  ** keymaps can inherit from multiple parents.
  
 ++++
  ** New reader macro ## which stands for the empty symbol.
  This means that the empty symbol can now be read back.  Also, #: by itself
  (when not immediately followed by a possible symbol character) stands for
  an empty uninterned symbol.
 +
 +** Obsolete functions and variables
 +
 +*** buffer-substring-filters is obsolete.
 +Use `filter-buffer-substring-functions' instead.
 +
 +*** `byte-compile-disable-print-circle' is obsolete.
 +
 +*** `deferred-action-list' and `deferred-action-function' are obsolete.
 +
  \f
  * Changes in Emacs 24.1 on non-free operating systems
  
@@@ -1162,9 -1209,6 +1171,9 @@@ with the USER_LIBS build variable
  
  ** New make target `dist' to create binary distribution for MS Windows.
  
 +** On Nextstep/OSX, the menu bar can be hidden by customizing
 +ns-auto-hide-menu-bar.
 +
  \f
  ----------------------------------------------------------------------
  This file is part of GNU Emacs.
diff --combined lisp/ChangeLog
index 89b43bab43d215e7d4973b1f0759773df17303c0,fcccc80220319745206b57c5bb819bd850440363..d1a219dfb8d7f78d8d50459f07009d895279b6db
++2011-09-10  Eli Zaretskii  <eliz@gnu.org>
++
++      * mail/sendmail.el (mml-to-mime, mml-attach-file)
++      (mm-default-file-encoding): Remove autoload forms, they are
++      replaced with autoload cookies in mml.el and mm-encode.el.
++      (mail-add-attachment): New command.
++      (mail-mode-map): Add a menu-bar item for mail-add-attachment.
++      (mail-mode): Mention mail-insert-file and mail-add-attachment in
++      the doc string.
++      (mml-to-mime, mml-attach-file, mm-default-file-encoding): Declare.
++
 +2011-09-10  Reuben Thomas  <rrt@sc3d.org>
 +
 +      * simple.el (count-words-region): Use buffer if there's no region.
 +
 +2011-09-09  Juri Linkov  <juri@jurta.org>
 +
 +      * wdired.el (wdired-change-to-wdired-mode): Set buffer-local
 +      `isearch-filter-predicate' to `wdired-isearch-filter-read-only'.
 +      (wdired-isearch-filter-read-only): New function.  (Bug#6362)
 +
 +2011-09-09  Alan Mackenzie  <acm@muc.de>
 +
 +      * progmodes/cc-mode.el (awk-mode): Prevent `define-derived-mode'
 +      spuriously generating `awk-mode-syntax-table'.  (Bug #9448).
 +
 +2011-09-09  Eli Zaretskii  <eliz@gnu.org>
 +
 +      Fix for Savannah bug#9392.
 +      * simple.el (mail-encode-mml): New defvar.
 +
 +      * mail/rmail.el (mail-encode-mml): Add a defvar.
 +      (rmail-enable-mime-composing): Default to t.
 +      (rmail-forward): Use MIME method of forwarding only if both
 +      rmail-enable-mime-composing and rmail-enable-mime are non-nil.
 +      Set mail-encode-mml non-nil if the MIME method was used.
 +
 +      * mail/sendmail.el (mml-to-mime): Add autoload form.
 +      (mail-encode-mml): Add a defvar.
 +      (mail-mode): Make mail-encode-mml buffer-local and initialize it
 +      to nil.
 +      (mail-send): If mail-encode-mml is non-nil, run the outgoing
 +      message through mml-to-mime, and reset mail-encode-mml to nil.
 +
 +2011-09-09  Glenn Morris  <rgm@gnu.org>
 +
 +      * woman.el (woman-if-body): When processing an .el block,
 +      do not delete the next .el block as well.  (Bug#9447)
 +      (woman-special-characters): Add oq, cq, and hy characters.
 +
 +2011-09-08  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * window.el (window-deletable-p): Make sure window is live before
 +      invoking window-prev-buffers.
 +
 +2011-09-08  Leo Liu  <sdl.web@gmail.com>
 +
 +      * net/rcirc.el (rcirc-cmd-invite): New rcirc command.  (Bug#9453)
 +
 +2011-09-08  Juri Linkov  <juri@jurta.org>
 +
 +      * progmodes/compile.el (compilation-environment): Make it
 +      a defcustom (bug#8340).
 +
 +2011-09-08  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * window.el (frame-auto-delete): Rename to window-auto-delete.
 +      Make it control auto-deletion of windows and/or frames.
 +      (window-deletable-p): New argument FORCE.  Rewrite conditions
 +      for deleting window/frame.  (Bug#9419)
 +      (switch-to-prev-buffer, replace-buffer-in-windows, quit-window):
 +      Rewrite handling of case when window/frame can be deleted.
 +      (delete-windows-on): Call window-deletable-p with new FORCE
 +      argument t.  (Bug#9456)
 +
 +2011-09-07  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * help-mode.el (help-mode): Restore autoload.
 +
 +2011-09-07  Juri Linkov  <juri@jurta.org>
 +
 +      * progmodes/compile.el (compilation-start): Let-bind `thisenv' to
 +      `compilation-environment'.  Set buffer-local
 +      `compilation-environment' to `thisenv' later after (funcall mode).
 +      (Bug#8340)
 +
 +      * vc/vc-git.el (vc-git-grep): Remove --no-color.  (Bug#9408)
 +      (vc-git-grep): Prepend "PAGER=" to `compilation-environment'
 +      instead of replacing its value.  (Bug#8340)
 +
 +2011-09-07  Juri Linkov  <juri@jurta.org>
 +
 +      * progmodes/grep.el (grep-regexp-alist): Calculate column positions
 +      based on text properties put by `grep-filter' instead of matching
 +      escape sequences.
 +      (grep-mode): Set buffer-local `compilation-error-screen-columns'
 +      to the value of `grep-error-screen-columns' (bug#9438).
 +
 +2011-09-07  Juri Linkov  <juri@jurta.org>
 +
 +      * simple.el (next-error-highlight, next-error-highlight-no-select):
 +      Doc fix (bug#9432).
 +
 +2011-09-07  OKAZAKI Tetsurou  <okazaki.tetsurou@gmail.com>  (tiny change)
 +
 +      * progmodes/cc-fonts.el (c-font-lock-enclosing-decls):
 +      Check for null c-opt-block-decls-with-vars-key.  (Bug#9443)
 +
 +2011-09-07  Leo Liu  <sdl.web@gmail.com>
 +
 +      * net/rcirc.el (rcirc-mode): Conditionally initialize
 +      rcirc-input-ring.
 +
 +2011-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * emacs-lisp/find-func.el (find-function-C-source): Only set
 +      find-function-C-source-directory after checking that we found a source
 +      file there (bug#9440).
 +
 +2011-09-06  Alan Mackenzie  <acm@muc.de>
 +
 +      * isearch.el (isearch-other-meta-char): Wherever a key list is
 +      unread, "unread" the prefix arg, too.  This fixes bug #8901.
 +
 +2011-09-05  Oleksandr Gavenko  <gavenkoa@gmail.com>  (tiny change)
 +
 +      * progmodes/grep.el (rgrep): Add "-type d" (bug#9414).
 +
 +2011-09-05  Juri Linkov  <juri@jurta.org>
 +
 +      * progmodes/grep.el (grep-process-setup): Fix comments (bug#8084).
 +
 +2011-09-05  Juri Linkov  <juri@jurta.org>
 +
 +      * progmodes/grep.el (grep-filter): Avoid incomplete processing by
 +      keeping point where processing of grep matches begins, and
 +      continue to delete remaining escape sequences from the same point.
 +      (grep-filter): Make leading zero optional in "0?1;31m" because
 +      git-grep emits "\033[1;31m" escape sequences unlike expected
 +      "\033[01;31m" as GNU Grep does (bug#9408).
 +      (grep-process-setup): Replace obsolete "ml=" with newer "sl=".
 +
 +2011-09-05  Juri Linkov  <juri@jurta.org>
 +
 +      * subr.el (y-or-n-p): Capitalize "yes".
 +
 +2011-09-04  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/tramp.el (top): Require 'shell.  Use `tramp-unload-hook' but
 +      `tramp-cache-unload-hook' where appropriate.
 +      (tramp-methods): Rename `tramp-remote-sh' to
 +      `tramp-remote-shell'.  Add `tramp-remote-shell-args'.
 +      (tramp-handle-shell-command): New defun, moved from tramp-sh.el.
 +
 +      * net/tramp-sh.el (top): Don't require 'shell.
 +      (tramp-methods): Add `tramp-remote-shell' and
 +      `tramp-remote-shell-args' entries.
 +      (tramp-sh-file-name-handler-alist): Use `tramp-handle-shell-command'.
 +      (tramp-sh-handle-shell-command): Remove.
 +      (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
 +      Use `tramp-remote-shell'.
 +
 +2011-09-03  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * mail/sendmail.el (sendmail-query-once-function): Deleted.
 +      (sendmail-query-once): Save directly to send-mail-function.
 +      Update message-send-mail-function too.
 +
 +      * mail/smtpmail.el (smtpmail-try-auth-methods): Clarify prompt.
 +
 +2011-09-03  Christoph Scholtes  <cschol2112@googlemail.com>
 +
 +      * progmodes/python.el (python-mode-map): Use correct function to
 +      start python interpreter from menu-bar (as reported by Geert
 +      Kloosterman).
 +      (inferior-python-mode-map): Fix typo.
 +      (python-shell-map): Removed.
 +
 +2011-09-03  Deniz Dogan  <deniz@dogan.se>
 +
 +      * net/rcirc.el (rcirc-print): Simplify code for
 +      rcirc-scroll-show-maximum-output.  There is no need to walk
 +      through all windows to find the right one.
 +
 +2011-09-03  Christoph Scholtes  <cschol2112@googlemail.com>
 +
 +      * help.el (help-return-method): Doc fix.
 +
 +2011-09-03  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * window.el (window-deletable-p): Don't return a non-nil value
 +      when there's a buffer that was shown in the window before.
 +      (Bug#9419)
 +      (display-buffer-pop-up-frame, display-buffer-pop-up-window): Set
 +      window's previous buffers to nil.
 +
 +2011-09-03  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * mail/rmailmm.el (rmail-mime-insert-tagline): Insert an extra
 +      newline before and after the tag line, so it doesn't interfere
 +      with determining the paragraph direction of bidirectional text.
 +
 +2011-09-03  Leo Liu  <sdl.web@gmail.com>
 +
 +      * files.el (find-file-not-true-dirname-list): Remove.  (Bug#9422)
 +
 +2011-09-02  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * window.el (pop-to-buffer-1, pop-to-buffer-same-window): Deleted.
 +      (pop-to-buffer): Change interactive spec.  Pass second argument
 +      directly to display-buffer.
 +      (display-buffer): Fix interactive spec.  Use functionp to
 +      distinguish between a function and a list of functions.
 +
 +      * abbrev.el (edit-abbrevs):
 +      * arc-mode.el (archive-extract):
 +      * autoinsert.el (auto-insert):
 +      * bookmark.el (bookmark-bmenu-list):
 +      * files.el (find-file):
 +      * view.el (view-buffer):
 +      * progmodes/compile.el (compilation-goto-locus):
 +      * textmodes/bibtex.el (bibtex-initialize): Use switch-to-buffer.
 +
 +2011-09-02  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * window.el (display-buffer-alist): Doc fix.
 +      (display-buffer): Add docstring.  Don't treat
 +      display-buffer-default specially.
 +      (display-buffer-reuse-selected-window)
 +      (display-buffer-same-window, display-buffer-maybe-same-window)
 +      (display-buffer-reuse-window, display-buffer-pop-up-frame)
 +      (display-buffer-pop-up-window)
 +      (display-buffer-reuse-or-pop-window)
 +      (display-buffer-use-some-window): New functions.
 +      (display-buffer-default-action): Use them.
 +      (display-buffer-default): Deleted.
 +      (pop-to-buffer-1): Fix choice of actions.
 +
 +2011-09-02  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * minibuffer.el (completion--insert-strings): Don't get confused by
 +      completion entries that end with an LF char.
 +
 +2011-09-01  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * window.el (frame-auto-delete, window-deletable-p): Doc fix.
 +
 +2011-09-01  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * window.el (display-buffer): Restore interactive spec.
 +      (display-buffer-same-window, display-buffer-other-window):
 +      New functions.
 +      (pop-to-buffer-1): New function.  Use the above.
 +      (pop-to-buffer, pop-to-buffer-same-window): Use it.
 +      (pop-to-buffer-other-window, pop-to-buffer-other-frame): Delete.
 +
 +      * view.el (view-buffer-other-window, view-buffer-other-frame):
 +      Just use pop-to-buffer.
 +
 +2011-09-01  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
 +
 +      * vc/vc-rcs.el (vc-rcs-responsible-p): Handle directories.  (Bug#9391)
 +
 +2011-09-01  Wilfred Hughes  <wilfred@potatolondon.com>  (tiny change)
 +
 +      * vc/vc-git.el (vc-git-grep): Use --no-color.  (Bug#9408)
 +
 +2011-08-31  Richard Stallman  <rms@gnu.org>
 +
 +      * mail/rmail.el (rmail-epa-decrypt): Rewrite to take account
 +      of the separation of rmail-view-buffer from rmail-buffer.
 +      If you say no to "replace original", the decrypt is in the
 +      view buffer.  If you say yes, the decrypt goes into the
 +      rmail buffer also.
 +
 +2011-08-31  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * window.el (display-buffer-window): Rewrite doc-string.
 +      (display-buffer-record-window): New function.
 +      (display-buffer-macro-specifiers)
 +      (display-buffer-even-window-sizes, display-buffer-set-height)
 +      (display-buffer-set-width, display-buffer-in-window)
 +      (display-buffer-reuse-window, display-buffer-split-specifiers)
 +      (display-buffer-side-specifiers, display-buffer-split-window-1)
 +      (display-buffer-split-window, display-buffer-split-atom-window)
 +      (display-buffer-pop-up-window, display-buffer-pop-up-frame)
 +      (display-buffer-pop-up-side-window, display-buffer-in-side-window)
 +      (display-buffer-other-window-means-other-frame)
 +      (display-buffer-normalize-special)
 +      (display-buffer-normalize-default)
 +      (display-buffer-normalize-argument)
 +      (display-buffer-normalize-alist-1, display-buffer-normalize-alist)
 +      (display-buffer-normalize-specifiers, display-buffer-frame)
 +      (display-buffer-same-window, display-buffer-same-frame)
 +      (display-buffer-other-window)
 +      (display-buffer-same-frame-other-window)
 +      (display-buffer-other-frame, pop-to-buffer-same-window)
 +      (pop-to-buffer-same-frame, pop-to-buffer-other-window)
 +      (pop-to-buffer-same-frame-other-window, pop-to-buffer-other-frame)
 +      (switch-to-buffer-same-frame)
 +      (switch-to-buffer-other-window-same-frame)
 +      (display-buffer-alist-of-strings-p, display-buffer-alist-add)
 +      (display-buffer-alist-set-1, display-buffer-alist-set-2)
 +      (display-buffer-alist-set): Remove.
 +      (display-buffer-function, special-display-buffer-names)
 +      (special-display-regexps, special-display-function):
 +      In doc-string refer to display-buffer-window and quit-restore
 +      parameter.
 +      (pop-up-frame-alist, pop-up-frame-function, special-display-p)
 +      (special-display-frame-alist, special-display-popup-frame)
 +      (same-window-buffer-names, same-window-regexps, same-window-p)
 +      (pop-up-frames, display-buffer-reuse-frames, pop-up-windows)
 +      (split-window-preferred-function, split-height-threshold)
 +      (split-width-threshold, window-splittable-p)
 +      (split-window-sensibly, window--try-to-split-window)
 +      (window--frame-usable-p, even-window-heights)
 +      (window--even-window-heights, window--display-buffer-1)
 +      (window--display-buffer-2, display-buffer-other-frame):
 +      Restore old Emacs 23 code, order and doc-strings where applicable.
 +      (display-buffer-default, display-buffer-assq-regexp): New functions.
 +      (display-buffer-alist): Rewrite doc-string.
 +      (display-buffer-default-action)
 +      (display-buffer-overriding-action): New variables.
 +      (display-buffer, switch-to-buffer): Rewrite.
 +      (pop-to-buffer): Restore Emacs 23 behavior but use
 +      window-normalize-buffer-to-display.
 +      (switch-to-buffer-other-window, switch-to-buffer-other-frame):
 +      Restore Emacs 23 behavior but use
 +      window-normalize-buffer-to-switch-to.
 +      (pop-to-buffer-same-window): Rewrite.
 +      (pop-to-buffer-other-window, pop-to-buffer-other-frame):
 +      Rewrite using Emacs 23 options.
 +
 +2011-08-31  Michael Albinus  <michael.albinus@gmx.de>
 +
 +      * net/tramp.el (tramp-root-regexp): Remove.
 +      (tramp-completion-file-name-regexp-unified)
 +      (tramp-completion-file-name-regexp-separate)
 +      (tramp-completion-file-name-regexp-url): Don't use leading volume
 +      letter on win32 systems.  (Bug#5303, Bug#9311)
 +      (tramp-drop-volume-letter): Simplify definition.
 +      Suggested by Stefan Monnier <monnier@iro.umontreal.ca>.
 +
 +2011-08-30  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * subr.el (event-modifiers): Fix "missing modifier" part of docstring
 +      (bug#9356).
 +
 +2011-08-30  Reuben Thomas  <rrt@sc3d.org>  (tiny change)
 +
 +      * vc/pcvs-defs.el (cvs-find-file-and-jump): Docstring typo (bug#9369).
 +
 +2011-08-29  Juri Linkov  <juri@jurta.org>
 +
 +      * isearch.el (isearch-done): Don't display message "Mark saved"
 +      when arg `edit' is non-nil to prevent its flicker in the echo area.
 +
 +2011-08-28  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * emacs-lisp/package.el (package-menu-mark-delete): Allow marking
 +      obsolete packages for deletion.
 +
 +2011-08-28  Christoph Scholtes  <cschol2112@googlemail.com>
 +
 +      * help-mode.el (help-mode-map): Add special-mode-map to parent.
 +      (help-mode): Derive help-mode from special-mode.  Don't invoke
 +      view-mode from help-mode.
 +      (help-xref-override-view-map): Remove.
 +      (help-make-xrefs): Remove minor-mode-overriding-map-alist since
 +      view-mode is not used anymore.
 +
 +2011-08-28  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * server.el (server-port): Doc fix.
 +
 +      * cus-theme.el (custom-theme-choose-mode): Inherit from
 +      special-mode (Bug#9124).
 +      (custom-theme-choose-mode-map): Add special-mode to parent.
 +
 +2011-08-28  Alan Mackenzie  <acm@muc.de>
 +
 +      * progmodes/cc-fonts.el
 +      (c-make-font-lock-BO-decl-search-function): New function.
 +      (c-basic-matchers-after - "Fontify the clauses after various
 +      keywords"): Extract the three keyword lists for the 3 erroneous
 +      constructs from the list of four, and use the new function above
 +      in place of an old one.
 +
 +2011-08-28  Deniz Dogan  <deniz@dogan.se>
 +
 +      * net/rcirc.el (rcirc-insert-prev-input)
 +      (rcirc-insert-next-input): Remove unused argument.
 +
 +2011-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * shell.el (shell-parse-pcomplete-arguments): Unquote args (bug#9160).
 +
 +2011-08-27  Alan Mackenzie  <acm@muc.de>
 +
 +      * progmodes/cc-menus.el (cc-imenu-c++-generic-expression): Make it
 +      handle function pointer parameters properly.
 +
 +2011-08-27  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * window.el (display-buffer-reuse-window): Fix case where
 +      selected window was reused with non-nil OTHER-WINDOW argument.
 +      (Bug#9381)
 +
 +2011-08-27  Deniz Dogan  <deniz@dogan.se>
 +
 +      * net/rcirc.el (rcirc-check-auth-status): Adding support for
 +      oftc's NickServ messages.
 +
 +2011-08-27  Glenn Morris  <rgm@gnu.org>
 +
 +      * saveplace.el (save-place-limit): Make it finite.  (Bug#9352)
 +
 +2011-08-26  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * emacs-lisp/package.el (package-install): Call package-initialize
 +      if called interactively.
 +
 +2011-08-26  Leo Liu  <sdl.web@gmail.com>
 +
 +      * emacs-lisp/cl-macs.el (defstruct): Fix format.  (Bug#9357)
 +
 +2011-08-25  Juri Linkov  <juri@jurta.org>
 +
 +      * isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to
 +      `search-whitespace-regexp' (bug#9364).
 +
 +2011-08-25  Juri Linkov  <juri@jurta.org>
 +
 +      * isearch.el (isearch-edit-string): Let-bind `search-ring' and
 +      `regexp-search-ring' to their global values to protect from
 +      updating by `read-from-minibuffer' (bug#9185).
 +
 +2011-08-25  Juri Linkov  <juri@jurta.org>
 +
 +      * textmodes/ispell.el (ispell-command-loop): Add newline
 +      at the end of the "Use option `i'..." line.
 +
 +2011-08-25  Juri Linkov  <juri@jurta.org>
 +
 +      * battery.el (display-battery-mode): If `battery-status-function'
 +      or `battery-mode-line-format' is nil, display the message and set
 +      `display-battery-mode' to nil (bug#9363).
 +
 +2011-08-25  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * buff-menu.el (Buffer-menu-buffer+size): Remove calls to
 +      bidi-string-mark-left-to-right; they are unnecessary now.
 +
 +2011-08-25  Deniz Dogan  <deniz@dogan.se>
 +
 +      * net/quickurl.el: Documentation typo fixes.
 +
 +2011-08-25  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * window.el (bury-buffer, quit-window): Use bury-buffer-internal.
 +
 +2011-08-25  Glenn Morris  <rgm@gnu.org>
 +
 +      * emacs-lisp/derived.el (define-derived-mode): Doc fix.
 +
 +      * mail/smtpmail.el (smtpmail-smtp-user): Add version: tag.
 +      (smtpmail-via-smtp): Handle nil response from smtp.
 +
 +2011-08-24  Juri Linkov  <juri@jurta.org>
 +
 +      * proced.el (proced-marked): Inherit from `error' instead of
 +      `font-lock-warning-face'.
 +
 +      * ibuffer.el (ibuffer-marked-face): Change default face from
 +      `font-lock-warning-face' to `warning'.
 +      (ibuffer-deletion-face): Change default face from
 +      `font-lock-type-face' to `error'.
 +
 +      * battery.el (battery-update): Use the face `error' instead of
 +      `font-lock-warning-face' (bug#6117).
 +
 +2011-08-24  Juri Linkov  <juri@jurta.org>
 +
 +      * faces.el (success): Change face color from "Green3" to
 +      "ForestGreen" on light background (bug#9353).
 +
 +2011-08-24  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * window.el (quit-window): Rename from quit-restore-window.
 +      Use same arglist as old quit-window.
 +      (frame-auto-delete): Doc fix.
 +
 +      * view.el (view-mode-exit): Use quit-window.
 +
 +2011-08-24  Juri Linkov  <juri@jurta.org>
 +
 +      * isearch.el (isearch-ring-adjust1): Start visiting previous
 +      search strings from the index 0 (-1 + 1) instead of 1 (0 + 1).
 +      (isearch-repeat, isearch-edit-string): Call `isearch-ring-adjust1'
 +      for empty search string (when the last search string is reused
 +      automatically) to adjust the isearch ring to the last element and
 +      prepare the correct index for further M-p commands (bug#9185).
 +
 +2011-08-24  Kenichi Handa  <handa@m17n.org>
 +
 +      * international/ucs-normalize.el: If decomposition property of
 +      CHAR is the default one (i.e. a list of CHAR itself), treat it as
 +      nil.
 +      (nfd, nfkd): Likewise.
 +
 +2011-08-24  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * mpc.el (mpc--proc-filter): Don't signal mpc-proc-error since signals
 +      from process filters aren't reliably transmitted to the surrounding
 +      accept-process-output.
 +      (mpc-proc-check): New function.
 +      (mpc-proc-sync): Use it (bug#8293)
 +
 +2011-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric):
 +      Add compatibility functions (bug#9313).
 +
 +2011-08-23  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * cus-start.el (all): Add entry for bidi-paragraph-direction.
 +
 +      * international/uni-bidi.el: Regenerated.
 +
 +2011-08-23  Kenichi Handa  <handa@m17n.org>
 +
 +      * international/charprop.el:
 +      * international/uni-bidi.el:
 +      * international/uni-category.el:
 +      * international/uni-combining.el:
 +      * international/uni-comment.el:
 +      * international/uni-decimal.el:
 +      * international/uni-decomposition.el:
 +      * international/uni-digit.el:
 +      * international/uni-lowercase.el:
 +      * international/uni-mirrored.el:
 +      * international/uni-name.el:
 +      * international/uni-numeric.el:
 +      * international/uni-old-name.el:
 +      * international/uni-titlecase.el:
 +      * international/uni-uppercase.el: Regenerate.
 +
 +2011-08-23  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * help.el (help-window-setup): Fix message displayed when other
 +      window is reused.  (Bug#9341)
 +
 +2011-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * shell.el (shell-completion-vars): Set pcomplete-arg-quote-list.
 +      * pcomplete.el (pcomplete-quote-argument): Fix thinko (bug#9161).
 +
 +      * pcomplete.el (pcomplete-parse-comint-arguments): Fix inf-loop.
 +      Mark obsolete.
 +      * shell.el (shell-parse-pcomplete-arguments): New function.
 +      (shell-completion-vars): Use it instead (bug#9160).
 +
 +2011-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      * progmodes/sh-script.el (sh-maybe-here-document): Disable magic in
 +      strings and comments (bug#9333).
 +
 +      * emacs-lisp/debug.el (debug-arglist): New function.
 +      (debug-convert-byte-code): Use it.  Handle lexical byte-codes.
 +      (debug-on-entry-1): Handle interpreted closures (bug#9120).
 +
 +2011-08-22  Juri Linkov  <juri@jurta.org>
 +
 +      * progmodes/compile.el (compilation-mode-font-lock-keywords):
 +      Revert regexp that highlights output switches to its old
 +      pre-2010-10-28 value and remove one `?' from it (bug#9319).
 +
 +      * progmodes/grep.el (grep-process-setup): Use `buffer-modified-p'
 +      to check for empty output (bug#9226).
 +
 +2011-08-22  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * progmodes/scheme.el (scheme-mode-syntax-table): Don't use
 +      symbol-constituent as the default, as that stops font-lock from
 +      working properly (Bug#8843).
 +
 +2011-08-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * mail/smtpmail.el (smtpmail-via-smtp): Only bind
 +      `coding-system-for-*' around the process open call to avoid
 +      auth-source side effects.
 +      (smtpmail-try-auth-methods): Expand the secret password.
 +      (smtpmail-query-smtp-server): Allow `quit'-ing out in case the
 +      probe hangs.
 +
 +2011-08-21  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * term.el (term-mouse-paste): Yank primary selection (Bug#6845).
 +
 +      * emacs-lisp/find-func.el (find-function-noselect): New arg
 +      lisp-only.
 +
 +      * emacs-lisp/edebug.el (edebug-instrument-function): Use it to
 +      signal an error for built-in functions (Bug#6664).
 +
 +2011-08-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * mail/smtpmail.el (smtpmail-smtp-user): New variable.
 +      (smtpmail-try-auth-methods): Use it.
 +
 +2011-08-21  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * font-lock.el (font-lock-fontify-region)
 +      (font-lock-unfontify-region, font-lock-default-fontify-buffer)
 +      (font-lock-default-unfontify-buffer)
 +      (font-lock-default-fontify-region)
 +      (font-lock-default-unfontify-region): Add docstrings (Bug#8624).
 +
 +      * progmodes/compile.el (compilation-error-properties):
 +      Fix confusion between file struct and message struct (Bug#9319).
 +      (compilation-error-regexp-alist-alist): Fix 2011-05-09 change to
 +      `ant' regexp.
 +
 +      * net/browse-url.el (browse-url-firefox): Don't call
 +      browse-url-firefox-sentinel unless using -remote (Bug#9328).
 +
 +2011-08-20  Glenn Morris  <rgm@gnu.org>
 +
 +      * tutorial.el (help-with-tutorial): Avoid an error on short screens.
 +
 +      * tutorial.el (tutorial--default-keys): Update some default bindings.
 +
 +      * files.el (hack-local-variables): Fully ignore case for "mode:".
 +
 +2011-08-20  Alan Mackenzie  <acm@muc.de>
 +
 +      Resolve invalid use of a regexp in regexp-opt.
 +
 +      * cc-fonts.el (c-complex-decl-matchers): Add in special detection
 +      for a java annotation.
 +
 +      * cc-engine.el (c-forward-decl-or-cast-1): Add in special
 +      detection for a java annotation.
 +
 +      * cc-langs.el (c-prefix-spec-kwds-re): Remove the special handling
 +      for java.
 +      (c-modifier-kwds): Remove the regexp "@[A-za-z0-9]+".
 +
 +2011-08-20  Chong Yidong  <cyd@stupidchicken.com>
 +
 +      * startup.el (normal-top-level-add-subdirs-to-load-path): Doc fix
 +      (Bug#9274).
 +
 +2011-08-20  Alan Mackenzie  <acm@muc.de>
 +
 +      * Fontify CPP expressions correctly when starting in the middle of
 +      such a construct.  Mainly for when jit-lock etc. starts a chunk
 +      here.
 +
 +      * progmodes/cc-fonts.el (c-font-lock-context): new buffer local
 +      variable.
 +      (c-make-font-lock-search-form): new function, extracted from
 +      c-make-font-lock-search-function.
 +      (c-make-font-lock-search-function): Use the above function.
 +      (c-make-font-lock-context-search-function): New function.
 +      (c-cpp-matchers): Enhance the preprocessor expression case with
 +      the above function
 +      (c-font-lock-complex-decl-prepare): Test for being in a CPP form
 +      which takes an expression.
 +
 +      * progmodes/cc-langs.el (c-cpp-expr-intro-re): New lang-variable.
 +
 +2011-08-20  Martin Rudalics  <rudalics@gmx.at>
 +
 +      * window.el (display-buffer-reuse-window)
 +      (display-buffer-pop-up-window): Don't reuse or split a side
 +      window.
 +
  2011-08-19  Glenn Morris  <rgm@gnu.org>
  
        * files.el (hack-local-variables-prop-line, hack-local-variables):
 -      Downcase "Mode:". (Bug#9331)
 +      Downcase "Mode:".  (Bug#9331)
  
  2011-08-18  Chong Yidong  <cyd@stupidchicken.com>
  
        binding variables (bug#9298).  Also clean up some unused
        autoloads.
  
 -      * net/network-stream.el (network-stream-open-starttls): Support
 -      using starttls.el without using gnutls-cli.
 +      * net/network-stream.el (network-stream-open-starttls):
 +      Support using starttls.el without using gnutls-cli.
  
  2011-08-17  Juri Linkov  <juri@jurta.org>
  
        (epa-mail-expand-recipients-2, epa-mail-expand-recipients):
        Remove.
  
 -2011-08-16  Feng Li <fengli@gmail.com> (tiny change)
 +2011-08-16  Feng Li  <fengli@gmail.com>  (tiny change)
  
        * calc/calc-ext.el (math-defintegral-2): Remove nested backquote.
  
diff --combined lisp/gnus/ChangeLog
index b989314557fa01ad6c550bedec5890a196e5258b,744817e68f2ee6e9a4b3af632c587b80932123ff..010070526ef99936c8181131c4cad2029090d7de
++2011-09-10  Eli Zaretskii  <eliz@gnu.org>
++
++      Add autoload cookies for functions used by sendmail.el.
++      * mm-encode.el (mm-default-file-encoding): Add autoload cookie.
++
++      * mml.el (mml-to-mime, mml-attach-file): Add autoload cookies.
++
 +2011-09-09  Katsumi Yamaoka  <yamaoka@jpl.org>
 +
 +      * gnus-art.el (article-date-ut): Work properly even when there are
 +      things like Date header in the body; work for forwarded parts.
 +
 +2011-09-05  Andrew Cohen  <cohen@andy.bu.edu>
 +
 +      * gnus-sum.el (gnus-summary-exit): Ensure we kill the proper
 +      original-article-buffer.
 +
 +2011-09-05  Kan-Ru Chen  <kanru@kanru.info>
 +
 +      * nnir.el (nnir-compose-result): Fix matching of server type.
 +      (nnir-run-swish++): Ditto.
 +      (nnir-run-namazu): Ditto.
 +      (nnir-run-notmuch): Ditto.
 +
 +2011-09-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * gnus.el (gnus-home-directory): Add warning about setting in .gnus.el
 +      (bug#9405).
 +
 +      * gnus-score.el (gnus-summary-increase-score): Doc clarification
 +      (bug#9421).
 +
 +      * gnus-spec.el (gnus-face-0): Make all the face specs into defcustoms
 +      (bug#9425).
 +
 +      * gnus-art.el (gnus-treatment-function-alist): Remove CRs as the first
 +      thing (bug#9426).
 +
 +2011-09-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * nnimap.el (nnimap-open-connection-1): Use the correct port number in
 +      the error message.
 +
 +2011-09-02  Eli Zaretskii  <eliz@gnu.org>
 +
 +      * message.el (message-setup-1): Return t (Bug#9392).
 +
 +2011-09-01  Andrew Cohen  <cohen@andy.bu.edu>
 +
 +      * gnus-sum.el: When adding article headers to a summary buffer also
 +      update gnus-newsgroup-articles (bug#9386).
 +
 +2011-08-30  Katsumi Yamaoka  <yamaoka@jpl.org>
 +
 +      * auth-source.el: Autoload help-mode.
 +
 +2011-08-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * gnus-group.el (gnus-group-name-charset): Don't bug out on server
 +      names.
 +
 +2011-08-27  Daiki Ueno  <ueno@unixuser.org>
 +
 +      * mml-smime.el (mml-smime-epg-verify): Don't use the 4th arg of
 +      mm-replace-in-string for compatibility issues.
 +      * mml2015.el (mml2015-epg-verify): Ditto.
 +
 +2011-08-26  Katsumi Yamaoka  <yamaoka@jpl.org>
 +
 +      * mailcap.el (mailcap-mime-data): Regexp-quote MIME subtype.
 +
 +      * gnus-msg.el (gnus-setup-message): Remove extra apostrophe.
 +
 +2011-08-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 +
 +      * nnmail.el (nnmail-get-new-mail-1): If one mail source bugs out,
 +      continue on and do the clean-up phase (bug#9188).
 +
 +      * gnus-sum.el (gnus-summary-expire-articles): When expiring articles,
 +      just ignore groups that can't be opened instead of erroring out
 +      (bug#9225).
 +
 +      * gnus-art.el (gnus-article-update-date-headers): Flip the default to
 +      nil since some many people are fuddy-duddies.
 +
 +      * gnus-html.el (gnus-html-image-fetched): Don't cache zero-length
 +      images.
 +
 +      * nntp.el (nntp-authinfo-file): Mark as obsolete -- use auth-source
 +      instead.
 +
 +      * pop3.el (pop3-wait-for-messages): Don't use Gnus functions here.
 +
 +      * gnus-util.el (gnus-process-live-p): Copy over compat function.
 +
 +      * pop3.el (pop3-wait-for-messages): If the pop3 process dies, stop
 +      processing.
 +
 +      * nntp.el (nntp-kill-buffer): Kill the process before killing the
 +      buffer to avoid warnings.
 +
 +2011-08-20  Simon Josefsson  <simon@josefsson.org>
 +
 +      * gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format
 +      specified to reduce precision.
 +
  2011-08-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
  
        * nnimap.el (nnimap-transform-headers): Protect against (NIL ...)
diff --combined lisp/gnus/mm-encode.el
index 055ba475b8e18e34a92ab1ba184647ca89dc4971,055ba475b8e18e34a92ab1ba184647ca89dc4971..0fb0e7a0795d2592c3af35af17e241d1bac7f6ea
@@@ -97,6 -97,6 +97,7 @@@ This variable should never be set direc
      (insert "Content-Type: multipart/mixed; boundary=\"" boundary "\"\n")
      boundary))
  
++;;;###autoload
  (defun mm-default-file-encoding (file)
    "Return a default encoding for FILE."
    (if (not (string-match "\\.[^.]+$" file))
diff --combined lisp/gnus/mml.el
index 8b196fa26fc97c4569207510dca86aa9ba63f10a,8b196fa26fc97c4569207510dca86aa9ba63f10a..e3939188a7b4cab2a86b902a51cf08207eb4629d
@@@ -897,6 -897,6 +897,7 @@@ If HANDLES is non-nil, use it instead r
  (autoload 'message-encode-message-body "message")
  (declare-function message-narrow-to-headers-or-head "message" ())
  
++;;;###autoload
  (defun mml-to-mime ()
    "Translate the current buffer from MML to MIME."
    ;; `message-encode-message-body' will insert an encoded Content-Description
@@@ -1294,6 -1294,6 +1295,7 @@@ to specify options.
    :version "22.1" ;; Gnus 5.10.9
    :group 'message)
  
++;;;###autoload
  (defun mml-attach-file (file &optional type description disposition)
    "Attach a file to the outgoing MIME message.
  The file is not inserted or encoded until you send the message with
diff --combined lisp/mail/sendmail.el
index f7dc01e8ebfefc08ec1200b4f00389af29d93b57,a51c2c7e922769a3e1bd1acd127b84659426c055..4a319990b2f071312208f43f84096fef27de2b38
  
  (require 'rfc2047)
  
--(autoload 'mml-to-mime "mml"
--  "Translate the current buffer from MML to MIME.")
 -
 -(autoload 'mml-attach-file "mml"
 -  "Attach a file to the outgoing MIME message.
 -The file is not inserted or encoded until you send the message.")
 -
 -(autoload 'mm-default-file-encoding "mm-encode"
 -  "Return the default encoding for FILE.")
--
  (defgroup sendmail nil
    "Mail sending commands for Emacs."
    :prefix "mail-"
@@@ -159,6 -166,51 +156,6 @@@ This is used by the default mail-sendin
    :version "24.1"
    :group 'sendmail)
  
 -(defvar sendmail-query-once-function 'query
 -  "Either a function to send email, or the symbol `query'.")
 -
 -;;;###autoload
 -(defun sendmail-query-once ()
 -  "Send an email via `sendmail-query-once-function'.
 -If `sendmail-query-once-function' is `query', ask the user what
 -function to use, and then save that choice."
 -  (when (equal sendmail-query-once-function 'query)
 -    (let* ((mail-buffer (current-buffer))
 -         (default
 -           (cond
 -            ((or (and window-system (eq system-type 'darwin))
 -                 (eq system-type 'windows-nt))
 -             'mailclient-send-it)
 -            ((and sendmail-program
 -                  (executable-find sendmail-program))
 -             'sendmail-send-it)))
 -         (function
 -          (if (or (not default)
 -                  ;; We have detected no OS-level mail senders, or we
 -                  ;; have already configured smtpmail, so we use the
 -                  ;; internal SMTP service.
 -                  (and (boundp 'smtpmail-smtp-server)
 -                       smtpmail-smtp-server))
 -              'smtpmail-send-it
 -            ;; Query the user.
 -            (unwind-protect
 -                (progn
 -                  (pop-to-buffer "*Mail Help*")
 -                  (erase-buffer)
 -                  (insert "Sending mail from Emacs hasn't been set up yet.\n\n"
 -                          "Type `y' to configure outgoing SMTP, or `n' to use\n"
 -                          "the default mail sender on your system.\n\n"
 -                          "To change this again at a later date, customize the\n"
 -                          "`send-mail-function' variable.\n")
 -                  (goto-char (point-min))
 -                  (if (y-or-n-p "Configure outgoing SMTP in Emacs? ")
 -                      'smtpmail-send-it
 -                    default))
 -              (kill-buffer (current-buffer))
 -              (set-buffer mail-buffer)))))
 -      (customize-save-variable 'sendmail-query-once-function function)))
 -  (funcall sendmail-query-once-function))
 -
  ;;;###autoload
  (defcustom mail-header-separator (purecopy "--text follows this line--")
    "Line used to separate headers from text in messages being composed."
@@@ -310,6 -362,9 +307,9 @@@ The default value matches citations lik
      (define-key map [menu-bar mail]
        (cons "Mail" (make-sparse-keymap "Mail")))
  
+     (define-key map [menu-bar mail attachment]
+       '("Attach File" . mail-add-attachment))
      (define-key map [menu-bar mail fill]
        '("Fill Citation" . mail-fill-yanked-message))
  
@@@ -501,51 -556,6 +501,51 @@@ by Emacs.)"
    "Additional expressions to highlight in Mail mode.")
  
  \f
 +;;;###autoload
 +(defun sendmail-query-once ()
 +  "Query for `send-mail-function' and send mail with it.
 +This also saves the value of `send-mail-function' via Customize."
 +  (let* ((mail-buffer (current-buffer))
 +       ;; Compute default mail sender, preferring smtpmail if it's
 +       ;; already configured.
 +       (default (cond
 +                 ((and (boundp 'smtpmail-smtp-server)
 +                       smtpmail-smtp-server)
 +                  'smtpmail-send-it)
 +                 ((or (and window-system (eq system-type 'darwin))
 +                      (eq system-type 'windows-nt))
 +                  'mailclient-send-it)
 +                 ((and sendmail-program
 +                       (executable-find sendmail-program))
 +                  'sendmail-send-it)))
 +       (send-function (if (eq default 'smtpmail-send-it)
 +                          'smtpmail-send-it)))
 +    (unless send-function
 +      ;; Query the user.
 +      (with-temp-buffer
 +      (rename-buffer "*Mail Help*" t)
 +      (erase-buffer)
 +      (insert "Emacs has not been set up for sending mail.\n
 +Type `y' to configure and use Emacs as a mail client,
 +or `n' to use your system's default mailer.\n
 +To change your decision later, customize `send-mail-function'.\n")
 +      (goto-char (point-min))
 +      (display-buffer (current-buffer))
 +      (if (y-or-n-p "Set up Emacs for sending SMTP mail? ")
 +          ;; FIXME: We should check and correct the From: field too.
 +          (setq send-function 'smtpmail-send-it)
 +        (setq send-function default))))
 +    (when send-function
 +      (customize-save-variable 'send-mail-function send-function)
 +      ;; HACK: Message mode stupidly has `message-send-mail-function',
 +      ;; so we must update it too or sending again in the current
 +      ;; Emacs session will still call `sendmail-query-once'.
 +      (and (boundp 'message-send-mail-function)
 +         (eq message-send-mail-function 'sendmail-query-once)
 +         (customize-set-variable 'message-send-mail-function
 +                                 send-function))
 +      (funcall send-function))))
 +\f
  (defun sendmail-sync-aliases ()
    (when mail-personal-alias-file
      (let ((modtime (nth 5 (file-attributes mail-personal-alias-file))))
@@@ -700,6 -710,8 +700,8 @@@ Here are commands that move to a heade
  \\[mail-signature]  mail-signature (insert `mail-signature-file' file).
  \\[mail-yank-original]  mail-yank-original (insert current message, in Rmail).
  \\[mail-fill-yanked-message]  mail-fill-yanked-message (fill what was yanked).
 -\\[mail-attach-file] insert a text file into the message.
 -\\[mail-add-attachment] add to the message a file as binary attachment.
++\\[mail-insert-file] insert a text file into the message.
++\\[mail-add-attachment] attach to the message a file as binary attachment.
  Turning on Mail mode runs the normal hooks `text-mode-hook' and
  `mail-mode-hook' (in that order)."
    (make-local-variable 'mail-reply-action)
@@@ -868,6 -880,6 +870,7 @@@ header when sending a message to a mail
    :type '(repeat string)
    :group 'sendmail)
  
++(declare-function mml-to-mime "mml" ())
  
  (defun mail-send ()
    "Send the message in the current buffer.
@@@ -1697,7 -1709,7 +1700,7 @@@ If the current line has `mail-yank-pref
    (split-line mail-yank-prefix))
  
  \f
--(defun mail-attach-file (&optional file)
++(defun mail-insert-file (&optional file)
    "Insert a file at the end of the buffer, with separator lines around it."
    (interactive "fAttach file: ")
    (save-excursion
        (insert-file-contents file)
        (or (bolp) (newline))
        (goto-char start))))
 -  "Add FILE as a MIME attachment to the end of the message."
++(define-obsolete-function-alias 'mail-attach-file 'mail-insert-file "24.1")
++
++(declare-function mml-attach-file "mml"
++                (file &optional type description disposition))
++(declare-function mm-default-file-encoding "mm-encode" (file))
++
+ (defun mail-add-attachment (file)
++  "Add FILE as a MIME attachment to the end of the mail message being composed."
+   (interactive "fAttach file: ")
+   (mml-attach-file file
+                  (or (mm-default-file-encoding file)
+                      "application/octet-stream") nil)
+   (setq mail-encode-mml t))
  \f
  ;; Put these commands last, to reduce chance of lossage from quitting
  ;; in middle of loading the file.