Clean up scoping rule of predefined single-word vars.
[bpt/emacs.git] / lisp / ChangeLog
index c2c6e0d..4609954 100644 (file)
+2012-06-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * startup.el (argv, argi): Make lexically scoped.
+       * emacs-lisp/float-sup.el (pi): Use internal-make-var-non-special.
+       * emacs-lisp/cl-macs.el: Use lexical-binding.
+       Rename cl-bind-* to cl--bind-*.
+       * files.el: Don't require `cl' since it doesn't use it.
+       * emacs-lisp/pcase.el, emacs-lisp/macroexp.el: Add coding cookie.
+
+2012-06-08  Juanma Barranquero  <lekktu@gmail.com>
+
+       * textmodes/texinfmt.el: Fix bug#11640 (reverts part of 2008-07-31T05:33:56Z!dann@ics.uci.edu).
+       (texinfo-format-printindex): Use `texinfo-sort-region' in all platforms,
+       instead of calling external sort utility.
+       (texinfo-sort-region, texinfo-sort-startkeyfun): Restore functions.
+
+2012-06-08  Eli Zaretskii  <eliz@gnu.org>
+
+       * descr-text.el (describe-char): Mention how to insert the
+       character, if the current input method doesn't support it.
+       See the discussion in this thread for the details:
+       http://lists.gnu.org/archive/html/emacs-devel/2012-05/msg00533.html.
+
+2012-06-08  Sam Steingold  <sds@gnu.org>
+
+       * bindings.el (global-map): Bind XF86Forward to next-buffer and
+       XF86Back to previous-buffer.
+       (minibuffer-local-map): Bind them to next-history-element and
+       previous-history-element respectively.
+       * help-mode.el (help-mode-map): Bind them to help-go-forward and
+       help-go-back respectively.
+       * info.el (Info-mode-map): Bind them to Info-history-forward and
+       Info-history-back respectively.
+       These are the keys next to Up on the ThinkPad keyboard.
+
+2012-06-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Get rid of cl-lexical-let, keeping only lexical-let for compatibility.
+       * emacs-lisp/cl-macs.el: Provide itself.
+       (cl--labels-convert-cache): New var.
+       (cl--labels-convert): New function.
+       (cl-flet, cl-labels): New implementation with new semantics, relying on
+       lexical-binding.
+       * emacs-lisp/cl.el: Mark compatibility aliases as obsolete.
+       (cl-closure-vars, cl--function-convert-cache)
+       (cl--function-convert): Move from cl-macs.el.
+       (lexical-let, lexical-let*, flet, labels): Move from cl-macs.el and
+       rename by removing the "cl-" prefix.
+       * emacs-lisp/macroexp.el (macroexp-unprogn): New function.
+
+2012-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl.el (cl-macroexpand, cl-macro-environment)
+       (cl-macroexpand-all, cl-not-hash-table, cl-builtin-gethash)
+       (cl-builtin-remhash, cl-builtin-clrhash, cl-builtin-maphash)
+       (cl-map-keymap, cl-copy-tree, cl-gethash, cl-puthash, cl-remhash)
+       (cl-clrhash, cl-maphash, cl-make-hash-table, cl-hash-table-p)
+       (cl-hash-table-count): Add old compatibility aliases.
+
+       * emacs-lisp/cl-macs.el (cl-macro-environment): Remove var.
+       Use macroexpand-all-environment instead.
+       (cl--old-macroexpand): New var.
+       (cl--sm-macroexpand): New function.
+       (cl-symbol-macrolet): Use it during macro expansion.
+       (cl--function-convert-cache): New var.
+       (cl--function-convert): New function, extracted from
+       cl-macroexpand-all.
+       (cl-lexical-let): Use it.
+
+       * emacs-lisp/cl-lib.el (cl-macro-environment): Remove decl.
+       (cl-macroexpand): Move to cl-macs.el and rename to cl--sm-macroexpand.
+       (cl-member): Remove old alias.
+
+       * emacs-lisp/cl-extra.el (cl-map-keymap, cl-copy-tree)
+       (cl-not-hash-table, cl-builtin-gethash, cl-builtin-remhash)
+       (cl-builtin-clrhash, cl-builtin-maphash, cl-gethash, cl-puthash)
+       (cl-remhash, cl-clrhash, cl-maphash, cl-make-hash-table)
+       (cl-hash-table-p, cl-hash-table-count): Move to cl.el.
+       (cl-macroexpand-cmacs): Remove var.
+       (cl-macroexpand-all, cl-macroexpand-body): Remove funs.
+       Use macroexpand-all instead.
+
+2012-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/macroexp.el (macroexp-progn, macroexp-let*, macroexp-if)
+       (macroexp-let², macroexp--const-symbol-p, macroexp-const-p)
+       (macroexp-copyable-p): New functions and macros.
+       * emacs-lisp/edebug.el (edebug-unwrap):
+       * emacs-lisp/disass.el (disassemble-internal): Use macroexp-progn.
+       * emacs-lisp/pcase.el: Use macroexp-let*, macroexp-if, ...
+       (pcase--let*): Remove.
+       * emacs-lisp/bytecomp.el (byte-compile-const-symbol-p)
+       (byte-compile-constp): Remove.  Use macroexp--const-symbol-p and
+       macroexp-const-p instead.
+       * emacs-lisp/byte-opt.el: Use macroexp-const-p and macroexp-progn.
+
+       * emacs-lisp/cl-macs.el: Clean up the name space by using "cl--"
+       instead of "cl-" for internal definitions.  Use macroexp-const-p.
+       (cl-old-bc-file-form): Remove var.
+       (cl-const-exprs-p): Remove fun.
+       (cl-labels, cl-macrolet): Use backquote.
+       (cl-lexical-let): Use cl-symbol-macrolet.  Don't use cl-defun-expander.
+       (cl-defun-expander, cl-byte-compile-compiler-macro): Remove fun.
+       (cl-define-setf-expander): Rename from cl-define-setf-method.
+       * emacs-lisp/cl.el: Adjust alias for define-setf-method.
+
+       * international/mule-cmds.el: Don't require CL.
+       (view-hello-file): Don't use `letf'.
+
+2012-06-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * tmm.el (tmm-prompt): Use string-prefix-p.
+       (tmm-completion-delete-prompt): Don't affect current-buffer outside.
+       (tmm-add-prompt): Use minibuffer-completion-help.
+       (tmm-delete-map): Remove.
+
+       * subr.el (kbd): Make it its own function.
+
+2012-06-07  Stefan Merten  <smerten@oekonux.de>
+
+       * textmodes/rst.el: Use `eval-when-compile' for requiring `cl.el'.
+       Silence compiler warnings.  Fix versions.
+       (rst-position-if, rst-position, rst-some, rst-signum): New functions.
+       (rst-shift-region, rst-adornment-level, rst-compute-tabs)
+       (rst-indent-line, rst-shift-region, rst-forward-line): Use them.
+       (rst-package-emacs-version-alist): Correct Emacs version to
+       represent major merge with upstream.
+       (rst-transition, rst-adornment, rst-compile-toolsets): Fix versions.
+
+2012-06-06  Glenn Morris  <rgm@gnu.org>
+
+       * mail/emacsbug.el (report-emacs-bug): Add relevant EMACS env-vars.
+       Only print environment variables if set.
+
+2012-06-06  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/macroexp.el: Don't require CL since we don't use it.
+       (macroexp--cons): Rename from maybe-cons.
+       (macroexp--accumulate): Rename from macroexp-accumulate.
+       (macroexp--all-forms): Rename from macroexpand-all-forms.
+       (macroexp--all-clauses): Rename from macroexpand-all-clauses.
+       (macroexp--expand-all): Rename from macroexpand-all-1.
+
+2012-06-06  Sam Steingold  <sds@gnu.org>
+
+       * calendar/calendar.el (calendar-in-read-only-buffer):
+       Call `special-mode' to enable the standard read-only keybindings.
+
+2012-06-06  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/macroexp.el (macroexpand-all-1): Don't spam the output
+       with "loading" messages (bug#11635).
+
+2012-06-06  Michael Albinus  <michael.albinus@gmx.de>
+
+       * files.el (enable-remote-dir-locals): New option.
+       (hack-dir-local-variables): Use it.  (Bug#1933, Bug#6731)
+
+       * net/tramp-compat.el (tramp-compat-temporary-file-directory):
+       Ensure, that the temp directory is local.
+
+       * net/tramp-sh.el (tramp-sh-handle-write-region): Let-bind
+       `temporary-file-directory'.
+
+       * progmodes/python.el (python-send-region): Ensure, that the
+       temporary file is created also in the remote case.
+
+2012-06-06  Glenn Morris  <rgm@gnu.org>
+
+       * vc/vc-rcs.el (vc-rcs-rcs2log-program): New.
+       (vc-rcs-update-changelog): Use it.
+
+       * emacs-lisp/authors.el (authors-fixed-entries): Remove vcdiff
+
+       * vc/vc-sccs.el (vc-sccs-write-revision): New function.
+       (vc-sccs-workfile-unchanged-p): Use vc-sccs-write-revision.
+       (vc-sccs-diff): Replace use of the external vcdiff script.
+
+2012-06-05  Glenn Morris  <rgm@gnu.org>
+
+       * ledit.el: Move to obsolete/.
+
+2012-06-05  Sam Steingold  <sds@gnu.org>
+
+       * calendar/calendar.el (calendar-exit): reinstate the 2012-03-28
+       patch (Bug#11140).
+
+2012-06-05  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-list/cust-print.el: Move to obsolete.
+
+       * emacs-lisp/macroexp.el (macroexpand-all-1): Tolerate errors during
+       compiler-macro expansion.
+
+       Add native compiler-macro support.
+       * emacs-lisp/macroexp.el (macroexpand-all-1):
+       Support compiler-macros directly.  Properly follow aliases and apply
+       the compiler macros more thoroughly.
+       * emacs-lisp/cl.el: Don't copy compiler-macro properties any more since
+       macroexpand now properly follows aliases.
+       * emacs-lisp/cl-macs.el (toplevel, cl-define-compiler-macro)
+       (cl-compiler-macroexpand): Use new prop.
+       * emacs-lisp/byte-opt.el (featurep): Optimize earlier.
+
+       * emacs-lisp/cl-lib.el (custom-print-functions): Add alias.
+
+2012-06-05  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.el (get-lru-window, get-mru-window, get-largest-window):
+       New argument NOT-SELECTED to avoid picking the selected window.
+       (window--display-buffer-1, window--display-buffer-2): Replace by
+       new function window--display-buffer
+       (display-buffer-same-window, display-buffer-reuse-window)
+       (display-buffer-pop-up-frame, display-buffer-pop-up-window):
+       Use window--display-buffer.
+       (display-buffer-use-some-window): Remove temporary dedication
+       hack by calling get-lru-window and get-largest-window with
+       NOT-SELECTED argument non-nil.  Call window--display-buffer.
+
+2012-06-05  Glenn Morris  <rgm@gnu.org>
+
+       * vc/vc-sccs.el (vc-sccs-workfile-unchanged-p):
+       Replace external vcdiff script.
+
+2012-06-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-lib.el (cl-values, cl-values-list): Fix up last change.
+
+2012-06-04  Chong Yidong  <cyd@gnu.org>
+
+       * image.el (imagemagick-types-inhibit): Revert last change.
+       Add INFO and M.
+       (imagemagick-enabled-types): Remove CIN and EPS*.
+
+2012-06-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-lib.el: Rename from cl.el.
+       * emacs-lisp/cl.el: New compatibility file.
+       * emacs-lisp/cl-lib.el, emacs-lisp/cl-seq.el, emacs-lisp/cl-macs.el:
+       * emacs-lisp/cl-extra.el: Rename all top-level functions and variables
+       to obey the "cl-" prefix.
+       * emacs-lisp/macroexp.el (macroexpand-all-1): Adjust to new name.
+
+2012-06-03  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/authors.el (authors-aliases): Addition.
+
+       * cus-start.el (tool-bar-style, tool-bar-max-label-size):
+       Fix :version.
+
+2012-06-03  Stefan Merten  <smerten@oekonux.de>
+
+       * textmodes/rst.el: Add comments.
+       (rst-transition, rst-adornment): New faces.
+       (rst-adornment-faces-alist): Make default safe to reevaluate.
+       Fixes
+       http://sourceforge.net/tracker/?func=detail&atid=422030&aid=3479603&group_id=38414.
+       Improve customization tags.
+       (rst-define-level-faces): Clarify meaning.
+
+2012-06-03  Chong Yidong  <cyd@gnu.org>
+
+       * progmodes/compile.el (compilation-mode-line-fail)
+       (compilation-mode-line-run, compilation-mode-line-exit):
+       New faces.
+       (compilation-start, compilation-handle-exit): Use them (Bug#11032).
+
+2012-06-03  Jack Duthen  <duthen.mac.01@gmail.com>  (tiny change)
+
+       * progmodes/which-func.el (which-func-update-ediff-windows):
+       New function.  Use it in ediff-select-hook (Bug#11478).
+
+2012-06-03  Chong Yidong  <cyd@gnu.org>
+
+       * bindings.el: Remove explicit help text from format-mode-line.
+       It is now supplied by mode-line-default-help-echo.
+       (mode-line-front-space, mode-line-end-spaces)
+       (mode-line-misc-info): New variables.
+       (mode-line-modes, mode-line-position): Move the default value to
+       the variable definition.
+       (mode-line-default-help-echo): New defcustom.
+       (mode-line-mule-info-help-echo, mode-line-read-only-help-echo)
+       (mode-line-modified-help-echo): New functions.
+       (mode-line-mule-info, mode-line-modified): Use them.
+       (mode-line-eol-desc, propertized-buffer-identification):
+       Consistency fixes for help text.
+       (mode-line-coding-system-map): Allow using mouse-3 to invoke
+       set-buffer-file-coding-system (Bug#289).
+       (mode-line-mule-info-help-echo): Update help text.
+
+2012-06-02  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * simple.el (execute-extended-command): Set real-this-command
+       (bug#11506).
+
+2012-06-02  Chong Yidong  <cyd@gnu.org>
+
+       Remove incorrect uses of "modeline" in comments, docstrings, and
+       function/variable names (Bug#10329).
+
+       * cus-edit.el (mode-line):
+       * dframe.el (dframe-mouse-hscroll):
+       * emacs-lisp/re-builder.el:
+       * emacs-lisp/easy-mmode.el (define-minor-mode):
+       * frame.el (set-frame-name):
+       * help.el (lookup-minor-mode-from-indicator):
+       * net/rcirc.el (rcirc-activity-string, rcirc-short-buffer-name):
+       * progmodes/cc-cmds.el (c-toggle-auto-newline)
+       (c-toggle-hungry-state):
+       * progmodes/antlr-mode.el (antlr-language-alist):
+       * progmodes/idlw-shell.el (idlwave-shell-electric-stop-line-face):
+       * progmodes/vhdl-mode.el (vhdl-mode):
+       * progmodes/which-func.el (which-func, which-func-cleanup-function):
+       * term/ns-win.el (ns-face-at-pos):
+       * term/sup-mouse.el (sup-mouse-report):
+       * textmodes/flyspell.el (flyspell-mode-line-string):
+       * textmodes/ispell.el (ispell-highlight-face):
+       * textmodes/reftex-global.el:
+       * vc/vc-arch.el (vc-arch-mode-line-string):
+       * vc/vc-cvs.el (vc-cvs-mode-line-string):
+       * vc/vc-git.el (vc-git-mode-line-string):
+       * vc/vc-hooks.el (vc-display-status)
+       (vc-default-mode-line-string):
+       * vc/vc-mtn.el (vc-mtn-mode-line-string): Doc fixes.
+
+       * ansi-color.el (ansi-color-faces-vector): Change default faces.
+
+       * dired.el (dired-sort-set-mode-line): Rename from
+       dired-sort-set-modeline.  All callers changed.
+
+       * eshell/esh-mode.el (eshell-status-in-mode-line): Rename from
+       eshell-status-in-modeline.
+
+       * foldout.el (foldout-mode-line-string): Rename from
+       foldout-modeline-string.  All callers changed.
+       (foldout-update-mode-line): Rename from foldout-update-modeline.
+
+       * subr.el (redraw-modeline): Make into obsolete alias.
+
+       * calendar/timeclock.el (timeclock-mode-line-display): Rename from
+       timeclock-modeline-display.  Make old name an alias.
+       (timeclock-update-mode-line): Likewise.  All callers changed.
+       (timeclock-mode-line-display): No need to check before using
+       add-hook.
+       (timeclock-relative, timeclock-day-over-hook)
+       (timeclock-use-elapsed, timeclock-mode-string)
+       (timeclock-mode-line-display): Doc fix, "modeline" -> "mode line".
+
+       * emulation/crisp.el (crisp-mode-mode-line-string): Rename from
+       crisp-mode-modeline-string.
+
+       * play/solitaire.el (solitaire-build-mode-line): Rename from
+       solitaire-build-modeline.  All callers changed.
+
+       * play/zone.el (zone-hiding-mode-line): Rename from
+       zone-hiding-modeline.  All callers changed.
+       (zone): Remove unusued `modeline-hidden-level' property.
+
+       * progmodes/xscheme.el (xscheme-mode-line-initialize): Rename from
+       xscheme-modeline-initialize.  All callers changed.
+
+       * strokes.el (strokes-lighter): Rename from
+       strokes-modeline-string.
+
+       * textmodes/sgml-mode.el (html-face-tag-alist)
+       (html-tag-face-alist): Use mode-line face instead of obsolete
+       alias modeline.
+
+2012-06-02  Stefan Merten  <smerten@oekonux.de>
+
+       * textmodes/rst.el: Always require `cl'.
+       (rst-mode-map): Fix meaning of C-M-a / C-M-e.
+
+2012-06-02  Chong Yidong  <cyd@gnu.org>
+
+       * image.el (imagemagick-enabled-types): Rename from
+       imagemagick-types-enable.  Add many more types.
+       (imagemagick-types-inhibit): Change default to nil.
+       (imagemagick-filter-types): Caller changed.
+
+2012-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-macs.el: Use backquotes.
+       (cl-transform-function-property): Use eval-and-compile rather than
+       abusing `require'.
+       (defstruct): Use declare-function instead of with-no-warnings.
+
+       * emacs-lisp/bytecomp.el: Fix last change (bug#11594).
+       (byte-compile-output-docform): Re-add the print-circle bindings.
+       (byte-compile-fix-header): Use #$ just because it's shorter.
+       (byte-compile-output-file-form): Remove defun/defmacro.
+
+2012-06-01  Martin Rudalics  <rudalics@gmx.at>
+
+       * simple.el (choose-completion): Remove now obsolete binding for
+       owindow.
+
+2012-06-01  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-check-for-regexp): Search from buffer end,
+       in order to avoid "Stack overflow in regexp matcher".
+
 2012-05-31  Glenn Morris  <rgm@gnu.org>
 
        * image.el: For clarity, call imagemagick-register-types at
        top-level, rather than relying on a custom :initialize.
        (imagemagick-types-enable): New option.  (Bug#11557)
-       (imagemagick-register-types): Respect imagemagick-types-inhibit.
+       (imagemagick-filter-types): New function.  (Bug#7406)
+       (imagemagick-register-types): Use imagemagick-filter-types.
        If disabling support, remove elements altogether rather
        than using an impossible regexp.
        (imagemagick-types-inhibit): Give it the default init function.
 
 2012-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
 
-       * emacs-lisp/bytecomp.el (byte-compile-fix-header): Handle
-       arbitrary file name lengths (Bug#11585).
+       * emacs-lisp/bytecomp.el (byte-compile-fix-header):
+       Handle arbitrary file name lengths (Bug#11585).
 
 2012-05-31  Martin Rudalics  <rudalics@gmx.at>
 
        * desktop.el (desktop-read): Clear previous and next buffers for
        all windows and bury *Messages* buffer (bug#11556).
 
-2012-05-31  Eli Zaretskii  <eliz@gnu.org>
-
-       * mail/sendmail.el (mail-yank-region): Recognize
-       rmail-yank-current-message in addition to insert-buffer.  Fixes
-       mail-mode's "C-c C-r" that otherwise does nothing when invoked in
-
 2012-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        Add `declare' for `defun'.  Align `defmacro's with it.