From: Eli Zaretskii Date: Sat, 10 Sep 2011 08:26:12 +0000 (+0300) Subject: Add to sendmail.el a new command mail-add-attachment. X-Git-Tag: emacs-pretest-24.0.90~104^2~119 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/c3760c17bd1d2b81a05c50c1b1f7236fc34adb33 Add to sendmail.el a new command mail-add-attachment. 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. --- c3760c17bd1d2b81a05c50c1b1f7236fc34adb33 diff --cc doc/emacs/ChangeLog index 5695841730,6874ef75ef..b9dbddad3c --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@@ -1,61 -1,3 +1,65 @@@ ++2011-09-10 Eli Zaretskii ++ ++ * sending.texi (Mail Misc): Document mail-add-attachment. ++ +2011-09-04 Eli Zaretskii + + * basic.texi (Inserting Text): Add index entries. (Bug#9433) + +2011-08-29 Chong Yidong + + * modes.texi (Choosing Modes): auto-mode-case-fold is now t. + +2011-08-28 Chong Yidong + + * files.texi (File Archives): + * cal-xtra.texi (Diary Display): + * help.texi (Help Mode): Add xref to View Mode. + +2011-08-28 Chong Yidong + + * 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 + + * frames.texi (Frame Commands): Advise setting focus-follows-mouse + even on MS-Windows. Fix a typo. + +2011-08-26 Chong Yidong + + * package.texi: New file, documenting the package manager. + + * emacs.texi: Include it. + + * help.texi (Help Summary): Add describe-package. + +2011-08-25 Chong Yidong + + * 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 * dired.texi (Operating on Files): Rewrite according to the fact diff --cc doc/emacs/sending.texi index 02857459cc,02857459cc..50ec852d74 --- a/doc/emacs/sending.texi +++ b/doc/emacs/sending.texi @@@ -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 --cc etc/NEWS index dbeca0b521,ec863dacef..aaeeed4803 --- a/etc/NEWS +++ b/etc/NEWS @@@ -156,23 -165,6 +156,32 @@@ If you had that set, then then you nee 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 +++ diff --cc lisp/ChangeLog index 89b43bab43,fcccc80220..d1a219dfb8 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@@ -1,670 -1,3 +1,681 @@@ ++2011-09-10 Eli Zaretskii ++ ++ * 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 + + * simple.el (count-words-region): Use buffer if there's no region. + +2011-09-09 Juri Linkov + + * 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 + + * progmodes/cc-mode.el (awk-mode): Prevent `define-derived-mode' + spuriously generating `awk-mode-syntax-table'. (Bug #9448). + +2011-09-09 Eli Zaretskii + + 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 + + * 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 + + * window.el (window-deletable-p): Make sure window is live before + invoking window-prev-buffers. + +2011-09-08 Leo Liu + + * net/rcirc.el (rcirc-cmd-invite): New rcirc command. (Bug#9453) + +2011-09-08 Juri Linkov + + * progmodes/compile.el (compilation-environment): Make it + a defcustom (bug#8340). + +2011-09-08 Martin Rudalics + + * 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 + + * help-mode.el (help-mode): Restore autoload. + +2011-09-07 Juri Linkov + + * 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 + + * 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 + + * simple.el (next-error-highlight, next-error-highlight-no-select): + Doc fix (bug#9432). + +2011-09-07 OKAZAKI Tetsurou (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 + + * net/rcirc.el (rcirc-mode): Conditionally initialize + rcirc-input-ring. + +2011-09-07 Stefan Monnier + + * 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 + + * 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 (tiny change) + + * progmodes/grep.el (rgrep): Add "-type d" (bug#9414). + +2011-09-05 Juri Linkov + + * progmodes/grep.el (grep-process-setup): Fix comments (bug#8084). + +2011-09-05 Juri Linkov + + * 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 + + * subr.el (y-or-n-p): Capitalize "yes". + +2011-09-04 Michael Albinus + + * 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 + + * 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 + + * 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 + + * 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 + + * help.el (help-return-method): Doc fix. + +2011-09-03 Martin Rudalics + + * 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 + + * 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 + + * files.el (find-file-not-true-dirname-list): Remove. (Bug#9422) + +2011-09-02 Chong Yidong + + * 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 + + * 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 + + * minibuffer.el (completion--insert-strings): Don't get confused by + completion entries that end with an LF char. + +2011-09-01 Eli Zaretskii + + * window.el (frame-auto-delete, window-deletable-p): Doc fix. + +2011-09-01 Chong Yidong + + * 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 + + * vc/vc-rcs.el (vc-rcs-responsible-p): Handle directories. (Bug#9391) + +2011-09-01 Wilfred Hughes (tiny change) + + * vc/vc-git.el (vc-git-grep): Use --no-color. (Bug#9408) + +2011-08-31 Richard Stallman + + * 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 + + * 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 + + * 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 . + +2011-08-30 Stefan Monnier + + * subr.el (event-modifiers): Fix "missing modifier" part of docstring + (bug#9356). + +2011-08-30 Reuben Thomas (tiny change) + + * vc/pcvs-defs.el (cvs-find-file-and-jump): Docstring typo (bug#9369). + +2011-08-29 Juri Linkov + + * 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 + + * emacs-lisp/package.el (package-menu-mark-delete): Allow marking + obsolete packages for deletion. + +2011-08-28 Christoph Scholtes + + * 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 + + * 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 + + * 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 + + * net/rcirc.el (rcirc-insert-prev-input) + (rcirc-insert-next-input): Remove unused argument. + +2011-08-28 Stefan Monnier + + * shell.el (shell-parse-pcomplete-arguments): Unquote args (bug#9160). + +2011-08-27 Alan Mackenzie + + * progmodes/cc-menus.el (cc-imenu-c++-generic-expression): Make it + handle function pointer parameters properly. + +2011-08-27 Martin Rudalics + + * 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 + + * net/rcirc.el (rcirc-check-auth-status): Adding support for + oftc's NickServ messages. + +2011-08-27 Glenn Morris + + * saveplace.el (save-place-limit): Make it finite. (Bug#9352) + +2011-08-26 Chong Yidong + + * emacs-lisp/package.el (package-install): Call package-initialize + if called interactively. + +2011-08-26 Leo Liu + + * emacs-lisp/cl-macs.el (defstruct): Fix format. (Bug#9357) + +2011-08-25 Juri Linkov + + * isearch.el (isearch-occur): Let-bind `search-spaces-regexp' to + `search-whitespace-regexp' (bug#9364). + +2011-08-25 Juri Linkov + + * 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 + + * textmodes/ispell.el (ispell-command-loop): Add newline + at the end of the "Use option `i'..." line. + +2011-08-25 Juri Linkov + + * 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 + + * 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 + + * net/quickurl.el: Documentation typo fixes. + +2011-08-25 Chong Yidong + + * window.el (bury-buffer, quit-window): Use bury-buffer-internal. + +2011-08-25 Glenn Morris + + * 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 + + * 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 + + * faces.el (success): Change face color from "Green3" to + "ForestGreen" on light background (bug#9353). + +2011-08-24 Chong Yidong + + * 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 + + * 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 + + * 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 + + * 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 + + * emacs-lisp/eieio.el (eieio-defmethod, eieio-defgeneric): + Add compatibility functions (bug#9313). + +2011-08-23 Eli Zaretskii + + * cus-start.el (all): Add entry for bidi-paragraph-direction. + + * international/uni-bidi.el: Regenerated. + +2011-08-23 Kenichi Handa + + * 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 + + * help.el (help-window-setup): Fix message displayed when other + window is reused. (Bug#9341) + +2011-08-23 Stefan Monnier + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * 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 + + * mail/smtpmail.el (smtpmail-smtp-user): New variable. + (smtpmail-try-auth-methods): Use it. + +2011-08-21 Chong Yidong + + * 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 + + * 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 + + 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 + + * startup.el (normal-top-level-add-subdirs-to-load-path): Doc fix + (Bug#9274). + +2011-08-20 Alan Mackenzie + + * 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 + + * window.el (display-buffer-reuse-window) + (display-buffer-pop-up-window): Don't reuse or split a side + window. + 2011-08-19 Glenn Morris * files.el (hack-local-variables-prop-line, hack-local-variables): diff --cc lisp/gnus/ChangeLog index b989314557,744817e68f..010070526e --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@@ -1,102 -1,3 +1,109 @@@ ++2011-09-10 Eli Zaretskii ++ ++ 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 + + * 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 + + * gnus-sum.el (gnus-summary-exit): Ensure we kill the proper + original-article-buffer. + +2011-09-05 Kan-Ru Chen + + * 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 + + * 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 + + * nnimap.el (nnimap-open-connection-1): Use the correct port number in + the error message. + +2011-09-02 Eli Zaretskii + + * message.el (message-setup-1): Return t (Bug#9392). + +2011-09-01 Andrew Cohen + + * gnus-sum.el: When adding article headers to a summary buffer also + update gnus-newsgroup-articles (bug#9386). + +2011-08-30 Katsumi Yamaoka + + * auth-source.el: Autoload help-mode. + +2011-08-30 Lars Magne Ingebrigtsen + + * gnus-group.el (gnus-group-name-charset): Don't bug out on server + names. + +2011-08-27 Daiki Ueno + + * 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 + + * mailcap.el (mailcap-mime-data): Regexp-quote MIME subtype. + + * gnus-msg.el (gnus-setup-message): Remove extra apostrophe. + +2011-08-21 Lars Magne Ingebrigtsen + + * 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 + + * gnus-agent.el (gnus-agent-expire-done-message): Use %.f as format + specified to reduce precision. + 2011-08-19 Lars Magne Ingebrigtsen * nnimap.el (nnimap-transform-headers): Protect against (NIL ...) diff --cc lisp/gnus/mm-encode.el index 055ba475b8,055ba475b8..0fb0e7a079 --- a/lisp/gnus/mm-encode.el +++ b/lisp/gnus/mm-encode.el @@@ -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 --cc lisp/gnus/mml.el index 8b196fa26f,8b196fa26f..e3939188a7 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el @@@ -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 --cc lisp/mail/sendmail.el index f7dc01e8eb,a51c2c7e92..4a319990b2 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el @@@ -31,9 -31,16 +31,6 @@@ (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-" @@@ -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)) --(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 @@@ -1716,6 -1728,15 +1719,21 @@@ (insert-file-contents file) (or (bolp) (newline)) (goto-char start)))) + ++(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 message." ++ "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)) + ;; Put these commands last, to reduce chance of lossage from quitting ;; in middle of loading the file.