Merge changes from emacs-23 branch.
[bpt/emacs.git] / lisp / ChangeLog
index 6136b3a..8d9a1a4 100644 (file)
@@ -1,3 +1,286 @@
+2010-10-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * repeat.el (repeat): Use read-key (bug#6256).
+
+2010-10-19  Chong Yidong  <cyd@stupidchicken.com>
+
+       * emacs-lisp/unsafep.el: Don't mark functions that display
+       messages as safe.  Suggested by Johan Bockgård.
+
+2010-10-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * minibuffer.el (completion--replace): Move point where it belongs
+       when there's a common suffix (bug#7215).
+
+2010-10-19  Kenichi Handa  <handa@m17n.org>
+
+       * international/characters.el: Add category '|' (word breakable)
+       to fullwidth characters.
+
+2010-10-19  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-do-file-attributes-with-stat)
+       (tramp-do-directory-files-and-attributes-with-stat): Use "e0" in
+       order to make stat results a float.  Patch by Andreas Schwab
+       <schwab@linux-m68k.org>.
+
+2010-10-18  Julien Danjou  <julien@danjou.info>
+
+       * avoid.el (mouse-avoidance-ignore-p): Ignore mouse when it is
+       hidden by `make-pointer-invisible'.
+
+2010-10-18  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * files.el (locate-file-completion-table): Strip non-matching elements
+       before checking length of list (bug#7238).
+
+2010-10-18  Chong Yidong  <cyd@stupidchicken.com>
+
+       * custom.el (custom-theme-set-variables): Mark as a safe function.
+       (load-theme): Check forms using unsafep.
+
+       * cus-face.el (custom-theme-set-faces): Mark as a safe function.
+
+2010-10-17  Agustín Martín  <agustin.martin@hispalinux.es>
+
+       * textmodes/ispell.el (ispell-aspell-find-dictionary):
+       Fix aspell data file searching (bug#7230).
+
+2010-10-16  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cus-theme.el (custom-theme--migrate-settings): New var.
+       (customize-create-theme): Allow editing the `user' theme.
+       (custom-theme-add-variable, custom-theme-add-var-1)
+       (custom-theme-add-face, custom-theme-add-face-1): Add a checkbox
+       to the front of each variable or face widget.
+       (custom-theme-write): Save theme settings in the correct order.
+       Optionally, remove saved settings from user customizations.
+       (custom-theme-write-variables, custom-theme-write-faces):
+       Save only the checked widgets.
+       (customize-themes): Add a link for migrating custom settings.
+
+       * custom.el (custom-declare-theme, provide-theme):
+       Use custom-theme-name-valid-p.
+       (custom-theme-name-valid-p): Remove checks that are now
+       unnecessary since themes no longer obey load-path.
+
+       * cus-edit.el (custom-variable-value-create): For the simple
+       style, hide documentation string when hidden.
+
+2010-10-16  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cus-edit.el (custom-variable, custom-face): Combine the
+       :inhibit-magic and :display-style properties into a single
+       :custom-style property.
+       (custom-toggle-hide-variable, custom-toggle-hide-face):
+       New functions.  If hiding an edited value, save it to :shown-value.
+       (custom-variable-value-create, custom-face-value-create): Use them.
+       (custom-magic-reset): Allow magic property to be unset.
+
+       * custom.el: Custom themes no longer use load-path.
+       (custom-theme-load-path): New option.  Change built-in theme
+       directory to etc/.
+       (custom-enabled-themes): Add custom-theme-load-path dependency.
+       (custom-theme--load-path): New function.
+       (load-theme, custom-available-themes): Use it.
+
+       * cus-theme.el (describe-theme-1): Use custom-theme--load-path.
+       (customize-themes): Link to custom-theme-load-path variable.
+       (custom-theme-add-var-1, custom-theme-add-face-1): Use the
+       :custom-style property.
+
+       * themes/*.el: Moved to etc/.
+
+2010-10-16  Ralf Angeli  <angeli@caeruleus.net>
+
+       * textmodes/reftex-cite.el
+       (reftex-extract-bib-entries-from-thebibliography): Do not move
+       point when searching for \bibitem entries.  Match entries with
+       spaces or tabs in front of arguments.
+
+2010-10-16  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cus-theme.el (customize-create-theme): Delete overlays after
+       erasing.  If given a THEME arg, display only the faces of that arg
+       instead of custom-theme--listed-faces.
+       (custom-theme-variable-menu, custom-theme-variable-action)
+       (custom-variable-reset-theme, custom-theme-delete-variable): Delete.
+       (custom-theme-add-variable, custom-theme-add-face): Apply value
+       from the theme settings, instead of the current value.
+       (custom-theme-add-var-1, custom-theme-add-face-1): New functions.
+       (custom-theme-visit-theme): Allow calling outside theme buffers.
+       (custom-theme-merge-theme): Don't enable the theme when merging.
+       (custom-theme-write-variables, custom-theme-write-faces): Use the
+       :shown-value properties to save buffer values, not global ones.
+       (customize-themes): Display a warning about user customizations.
+
+       * cus-edit.el (custom-variable-value-create)
+       (custom-face-value-create): Obey new special properties
+       :shown-value and :inhibit-magic.
+
+2010-10-15  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
+       Suppress expansion of tabs to spaces.  Reported by Dale Sedivec
+       <dale@codefu.org>.
+
+2010-10-14  Kenichi Handa  <handa@m17n.org>
+
+       * mail/rmail.el (rmail-show-message-1): Catch an error of
+       base64-decode-region and just show an error message (bug#7165).
+
+       * ps-mule.el (ps-mule-font-spec-list): Delete it.  Not used anymore.
+       (ps-mule-begin-job): Fix for the case that only ENCODING is set in
+       a font-spec (bug#7197).
+
+2010-10-14  Glenn Morris  <rgm@gnu.org>
+
+       * mail/emacsbug.el (report-emacs-bug): Mention debbugs.gnu.org.
+
+2010-10-14  Juanma Barranquero  <lekktu@gmail.com>
+
+       * international/mule.el (define-coding-system):
+       * international/titdic-cnv.el (quail-cxterm-package-ext-info):
+       * composite.el (compose-region): Fix typo in docstring.
+
+2010-10-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cus-face.el (custom-theme-set-faces): Call custom-push-theme
+       only after checking the theme-face property.
+
+       * faces.el (face-spec-reset-face): Reset all attributes in one
+       single call to set-face-attribute.
+       (face-spec-match-p): Make it a defsubst.
+       (frame-set-background-mode): New arg KEEP-FACE-SPECS.
+       (x-create-frame-with-faces, tty-create-frame-with-faces)
+       (tty-set-up-initial-frame-faces): Don't recompute face specs in
+       frame-set-background-mode, since they are recomputed immediately
+       afterwards in face-set-after-frame-default.
+       (face-set-after-frame-default): Minor optimization.
+       (cursor): Provide non-trivial defface spec.
+
+       * custom.el (custom-theme-recalc-face): Simplify.
+
+2010-10-14  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc/calc-alg.el (math-var): Rename from `var'.
+       (math-is-polynomial, math-is-poly-rec): Replace `var'
+       with `math-var'.
+
+       * calc/calcalg2.el (math-var): Rename from `var'.
+       (calcFunc-table, math-scan-for-limits): Replace `var'
+       with `math-var'.
+
+2010-10-13  Glenn Morris  <rgm@gnu.org>
+
+       * subr.el (last): Deal with dotted lists (reported in bug#7174).
+
+2010-10-13  Stephen Berman  <stephen.berman@gmx.net>
+
+       * subr.el (last): Use `safe-length' instead of `length' (bug#7206).
+
+2010-10-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * net/tls.el (tls-program): Remove spurious %s from openssl.
+       (tls-starttls-switches): Remove starttls hack.
+       (open-tls-stream): Ditto.
+       (tls-find-starttls-argument): Ditto.
+
+2010-10-13  Juanma Barranquero  <lekktu@gmail.com>
+
+       * image.el (image-library-alist): Declare as obsolete alias.
+       (image-type-available-p): Use `dynamic-library-alist'.
+
+       * term/w32-win.el (dynamic-library-alist):
+       Use instead of `image-library-alist'.
+
+2010-10-13  IRIE Shinsuke  <irieshinsuke@yahoo.co.jp>  (tiny change)
+
+       * subr.el (last): Make it faster.  (Bug#7174)
+
+2010-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>  (tiny change)
+
+       * Makefile.in (compile-clean): Use `` instead of $().  (Bug#7178)
+
+2010-10-12  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cus-theme.el (custom-theme--listed-faces): Add cursor face.
+       (describe-theme-1): Extract doc from unloaded themes.
+
+       * custom.el (custom-theme-name-valid-p): Don't list color-themes.
+
+       * themes/tango-theme.el:
+       * themes/tango-dark-theme.el:
+       * themes/wheatgrass-theme.el: New files.
+
+2010-10-12  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cus-theme.el (describe-theme, customize-themes)
+       (custom-theme-save): New commands.
+       (custom-new-theme-mode-map): Bind C-x C-s.
+       (custom-new-theme-mode): Use custom--initialize-widget-variables.
+       (customize-create-theme): New optional arg THEME.
+       (custom-theme-revert): Use it.
+       (custom-theme-visit-theme): Remove dead code.
+       (custom-theme-merge-theme): Use custom-available-themes.
+       (custom-theme-write): Make interactive.
+       (custom-theme-write): Use custom-theme-name-valid-p.
+       (describe-theme-1, custom-theme-choose-revert)
+       (custom-theme-checkbox-toggle, custom-theme-selections-toggle):
+       New funs.
+       (custom-theme-allow-multiple-selections): New option.
+       (custom-theme-choose-mode): New major mode.
+
+       * custom.el (custom-theme-set-variables): Remove dead code.
+       Obey custom--inhibit-theme-enable.
+       (custom--inhibit-theme-enable): New var.
+       (provide-theme): Obey it.
+       (load-theme): Replace load with manual read/eval, in order to
+       check for correctness.  Use custom-theme-name-valid-p.
+       (custom-theme-name-valid-p): New function.
+       (custom-available-themes): Use it.
+
+       * cus-edit.el (custom--initialize-widget-variables): New function.
+       (Custom-mode): Use it.
+
+       * cus-face.el (custom-theme-set-faces): Remove dead code.
+       Obey custom--inhibit-theme-enable.
+
+       * help-mode.el (help-theme-def, help-theme-edit): New buttons.
+
+2010-10-12  Juanma Barranquero  <lekktu@gmail.com>
+
+       * net/telnet.el (telnet-mode-map): Fix previous change (bug#7193).
+
+2010-10-12  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * term/ns-win.el (ns-right-alternate-modifier): New defvar.
+       (ns-right-option-modifier): New alias for ns-right-alternate-modifier.
+       (mac-right-option-modifier): New alias for ns-right-option-modifier.
+
+       * cus-start.el (all): ns-right-alternate-modifier is new.
+
+2010-10-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/lisp.el (lisp-completion-at-point):
+       Use emacs-lisp-mode-syntax-table for the whole function.
+
+2010-10-12  David Koppelman  <koppel@ece.lsu.edu>
+
+       * hi-lock.el (hi-lock-font-lock-hook): Check font-lock-fontified
+       instead of font-lock-mode before adding keywords.
+       Remove hi-lock-mode off code.  Remove inhibit hack.
+       (hi-lock-set-pattern): Only add keywords if font-lock-fontified
+       non-nil; removed hook inhibit hack.
+
+2010-10-12  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/shadow.el (find-emacs-lisp-shadows): Rename it...
+       (load-path-shadows-find): ... to this.
+       (list-load-path-shadows): Update for above change.
+
+       * mail/mail-utils.el (mail-mbox-from): Also try return-path.
+
 2010-10-11  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mail/hashcash.el, net/imap.el, pgg-parse.el, pgg.el:
        (custom-available-themes): New function.
        (load-theme): Use it.
 
-       * cus-edit.el (custom-face-edit-fix-value): Use
-       custom-fix-face-spec.
+       * cus-edit.el (custom-face-edit-fix-value): Use custom-fix-face-spec.
 
        * custom.el (custom-push-theme): Cleanup (use cond).
        (disable-theme): Recompute the saved-face property.
        (custom-theme-recalc-face): Follow face alias before setting prop.
 
-       * image.el (image-checkbox-checked, image-checkbox-unchecked): New
-       variables, containing checkbox images.
+       * image.el (image-checkbox-checked, image-checkbox-unchecked):
+       New variables, containing checkbox images.
 
        * startup.el (fancy-startup-tail):
        * wid-edit.el (checkbox): Use them.
 
        * epa.el (epa-passphrase-callback-function): Display filename
        passed as the 3rd arg.
-       * epa-file.el (epa-file-passphrase-callback-function): Pass
-       filename to epa-passphrase-callback-function.
+       * epa-file.el (epa-file-passphrase-callback-function):
+       Pass filename to epa-passphrase-callback-function.
 
 2010-10-09  Chong Yidong  <cyd@stupidchicken.com>
 
        * cc-engine.el (c-forward-type): New &optional param
        "brace-block-too".
        (c-forward-decl-or-cast-1): cdr of return value now indicates the
-       presence of either or both of a "struct"-like keyword and
-       "typedef".
+       presence of either or both of a "struct"-like keyword and "typedef".
 
        * cc-fonts.el (c-complex-decl-matchers): Remove the heuristic
        fontification of declarators which follow a "}".
        querying the password for.
 
        * ibuffer.el (ibuffer-visit-buffer): To mimick list-buffers
-       behaviour, don't bury the ibuffer buffer when visiting other
-       buffers.
+       behaviour, don't bury the ibuffer buffer when visiting other buffers.
 
 2010-10-08  Chong Yidong  <cyd@stupidchicken.com>
 
        (custom-magic-value-create): Pad button tags with spaces.
        (custom-face-edit): New variable.
        (custom-face-value-create): Determine whether to use the usual
-       face editor here, instead of using custom-face-selected.  Pass
-       face defaults to custom-face-edit widget.
+       face editor here, instead of using custom-face-selected.
+       Pass face defaults to custom-face-edit widget.
        (custom-face-selected, custom-display-unselected): Delete widgets.
        (custom-display-unselected-match): Function removed.
-       (custom-face-set, custom-face-mark-to-save): Accept
-       custom-face-edit widgets as the direct widget child.
+       (custom-face-set, custom-face-mark-to-save):
+       Accept custom-face-edit widgets as the direct widget child.
 
        * wid-edit.el (widget--completing-widget): New var.
        (widget-default-complete): Bind it when doing completion.
        * cus-edit.el (custom-variable, custom-face): Doc fix.
        (custom-face-edit): Add value-create attribute.
        (custom-face-edit-value-create)
-       (custom-face-edit-value-visibility-action): New functions.  Hide
-       unused face attributes by default, and add a visibility toggle.
+       (custom-face-edit-value-visibility-action): New functions.
+       Hide unused face attributes by default, and add a visibility toggle.
        (custom-face-edit-deactivate): Show empty values with shadow face.
        (custom-face-selected): Only use this for face specs with default
        attributes.
        (tramp-handle-file-exists-p, tramp-handle-file-newer-than-file-p):
        New defuns, taken from tramp-smb.el.
        (tramp-coding-system-change-eol-conversion)
-       (tramp-set-process-query-on-exit-flag): Removed.
+       (tramp-set-process-query-on-exit-flag): Remove.
 
-       * net/tramp-compat.el (top): Do not check for byte-compiler
-       objects.
+       * net/tramp-compat.el (top): Do not check for byte-compiler objects.
        (tramp-compat-coding-system-change-eol-conversion)
        (tramp-compat-set-process-query-on-exit-flag): New defuns, taken
        from tramp.el.
        * net/tramp-gw.el: Replace `tramp-set-process-query-on-exit-flag'
        by `tramp-compat-set-process-query-on-exit-flag'.
 
-       * net/tramp-imap.el (tramp-imap-file-name-handler-alist): Use
-       `tramp-handle-directory-files-and-attributes',
+       * net/tramp-imap.el (tramp-imap-file-name-handler-alist):
+       Use `tramp-handle-directory-files-and-attributes',
        `tramp-handle-file-exists-p' and
        `tramp-handle-file-newer-than-file-p'.
        (tramp-imap-handle-file-exists-p)
        (tramp-imap-handle-file-executable-p)
        (tramp-imap-handle-file-readable-p)
        (tramp-imap-handle-directory-files-and-attributes)
-       (tramp-imap-handle-file-newer-than-file-p): Removed.
+       (tramp-imap-handle-file-newer-than-file-p): Remove.
 
        * net/tramp-sh.el: Replace `tramp-set-process-query-on-exit-flag'
        by `tramp-compat-set-process-query-on-exit-flag' and
        `tramp-coding-system-change-eol-conversion' by
        `tramp-compat-coding-system-change-eol-conversion'.
 
-       * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Use
-       `tramp-handle-directory-files-and-attributes',
+       * net/tramp-smb.el (tramp-smb-file-name-handler-alist):
+       Use `tramp-handle-directory-files-and-attributes',
        `tramp-handle-file-exists-p' and
        `tramp-handle-file-newer-than-file-p'.
        (tramp-smb-handle-directory-files-and-attributes)
        (tramp-smb-handle-file-exists-p)
-       (tramp-smb-handle-file-newer-than-file-p): Removed.
-       (tramp-smb-maybe-open-connection): Replace
-       `tramp-set-process-query-on-exit-flag' by
+       (tramp-smb-handle-file-newer-than-file-p): Remove.
+       (tramp-smb-maybe-open-connection):
+       Replace `tramp-set-process-query-on-exit-flag' by
        `tramp-compat-set-process-query-on-exit-flag'.
 
 2010-10-05  Glenn Morris  <rgm@gnu.org>
        (tramp-handle-substitute-in-file-name)
        (tramp-handle-unhandled-file-name-directory)
        (tramp-mode-string-to-int, tramp-local-host-p)
-       (tramp-make-tramp-temp-file): Moved from tramp-sh.el.
+       (tramp-make-tramp-temp-file): Move from tramp-sh.el.
 
        * net/tramp-gvfs.el (top):
        * net/tramp-smb.el (top): Do not require 'tramp-sh.
 
        * net/gnutls.el: Improve docs.  Remove starttls and ssl emulation.
        Provide only `open-gnutls-stream' (formerly `open-ssl-stream') and
-       `gnutls-negotiate' (formerly `starttls-negotiate').  Remove
-       trivial wrapper `starttls-open-stream'.
+       `gnutls-negotiate' (formerly `starttls-negotiate').
+       Remove trivial wrapper `starttls-open-stream'.
 
 2010-10-03  Dan Nicolaescu  <dann@ics.uci.edu>
 
 2010-10-03  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * net/gnutls.el (starttls-negotiate): Use the plist interface to
-       `gnutls-boot'.  Make TYPE the only required parameter.  Allow
-       TRUSTFILES and KEYFILES to be lists.
+       `gnutls-boot'.  Make TYPE the only required parameter.
+       Allow TRUSTFILES and KEYFILES to be lists.
        (open-ssl-stream): Use it.
 
 2010-10-03  Glenn Morris  <rgm@gnu.org>
 
 2010-10-03  Chong Yidong  <cyd@stupidchicken.com>
 
-       * emacs-lisp/bytecomp.el (byte-compile-from-buffer): Remove
-       obsolete use of binary-overwrite-mode (Bug#7001).
+       * emacs-lisp/bytecomp.el (byte-compile-from-buffer):
+       Remove obsolete use of binary-overwrite-mode (Bug#7001).
 
 2010-10-03  Glenn Morris  <rgm@gnu.org>
 
 
 2010-10-03  Chong Yidong  <cyd@stupidchicken.com>
 
-       * server.el (server-process-filter, server-return-error): Give
-       emacsclient time to shut down after receiving an error string.
+       * server.el (server-process-filter, server-return-error):
+       Give emacsclient time to shut down after receiving an error string.
 
 2010-10-02  Michael Albinus  <michael.albinus@gmx.de>
 
        * files.el (remote-file-name-inhibit-cache): New defcustom.
 
-       * time.el (display-time-file-nonempty-p): Use
-       `remote-file-name-inhibit-cache'.
+       * time.el (display-time-file-nonempty-p):
+       Use `remote-file-name-inhibit-cache'.
 
-       * net/tramp.el (tramp-completion-reread-directory-timeout): Fix
-       docstring.
+       * net/tramp.el (tramp-completion-reread-directory-timeout):
+       Fix docstring.
 
        * net/tramp-cache.el (tramp-cache-inhibit-cache): Remove.
        (tramp-get-file-property): Replace `tramp-cache-inhibit-cache' by
 
        * net/tramp-sh.el (tramp-handle-verify-visited-file-modtime)
        (tramp-handle-file-name-all-completions)
-       (tramp-handle-vc-registered): Use
-       `remote-file-name-inhibit-cache'.
-       (tramp-open-connection-setup-interactive-shell): Call
-       `tramp-cleanup-connection' directly.
+       (tramp-handle-vc-registered): Use `remote-file-name-inhibit-cache'.
+       (tramp-open-connection-setup-interactive-shell):
+       Call `tramp-cleanup-connection' directly.
 
 2010-10-02  Glenn Morris  <rgm@gnu.org>
 
        (tar-header-block-tokenize): Decode the username and groupname.
        (tar-chown-entry, tar-chgrp-entry): Encode the names (bug#4730).
 
+2009-10-17  Eric Ludlam  <zappo@gnu.org>
+
+       * emacs-lisp/eieio-base.el (eieio-persistent-save): If buffer
+       contains multibyte characters, choose first applicable coding
+       system automatically.
+
 2009-10-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * international/mule-cmds.el (select-safe-coding-system): If the file
        * term/w32-win.el (setup-default-fontset, set-fontset-font):
        Remove unused declarations.
 
+2009-09-30  Eric Ludlam  <zappo@gnu.org>
+
+       * emacs-lisp/eieio.el (boolean-p): Delete.
+
 2009-09-30  Glenn Morris  <rgm@gnu.org>
 
        * emacs-lisp/authors.el (authors-ignored-files): Add "js2-mode.el".
 
        * net/tramp-imap.el: New package.
 
+2009-09-28  Eric Ludlam  <zappo@gnu.org>
+
+       * emacs-lisp/chart.el:
+       * emacs-lisp/eieio-base.el:
+       * emacs-lisp/eieio-comp.el:
+       * emacs-lisp/eieio-custom.el:
+       * emacs-lisp/eieio-datadebug.el:
+       * emacs-lisp/eieio-opt.el:
+       * emacs-lisp/eieio-speedbar.el:
+       * emacs-lisp/eieio.el: New files.
+
 2009-09-27  Vinicius Jose Latorre  <viniciusjl@ig.com.br>
 
        * whitespace.el (whitespace-trailing-regexp)