Do not double variables in the lambda-list.
[bpt/emacs.git] / lisp / ChangeLog
index 836b037..e745026 100644 (file)
+2001-10-12  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * newcomment.el (comment-region-internal): Don't rebind
+       invisibility_spec now that the C routines handle it correctly.
+
+       * help-funs.el (locate-library): Use load-suffixes and abbrev filename.
+
+       * frame.el (special-display-popup-frame): Obey new specs `same-window'
+       and `same-frame'.
+
+       * menu-bar.el (minibuffer-local-*map): Take inheritance into account.
+
+       * simple.el (minibuffer-local*-map): Remove redundant bindings.
+
+       * bindings.el (minibuffer-local-map): Also bind next, C-n, C-s, prior,
+       C-p and C-r.  Remove redundant bindings from inheriting maps.
+
+       * progmodes/cperl-mode.el: Merged in changes from v4.32.
+        After 4.23 and: After 4.24:
+       (cperl-contract-levels): Restore position.
+       (cperl-beautify-level): Likewise.
+       (cperl-beautify-regexp): Likewise.
+       (cperl-commentify): Rudimental support for length=1 runs
+       (cperl-find-pods-heres): Process 1-char long REx comments too /a#/x
+        After 4.25:
+       (cperl-commentify): Was recognizing length=2 "strings" as length=1.
+       (imenu-example--create-perl-index): Was not enforcing
+       syntaxification-to-the-end.
+       (cperl-invert-if-unless): Allow `for', `foreach'.
+       (cperl-find-pods-heres): Quote `cperl-nonoverridable-face'.
+       Mark qw(), m()x as indentable.
+       (cperl-init-faces): Highlight `sysopen' too.
+       Highlight $var in `for my $var' too.
+       (cperl-invert-if-unless): Was leaving whitespace at end.
+       (cperl-linefeed): Was splitting $var{$foo} if point after `{'.
+       (cperl-calculate-indent): Remove old commented out code.
+       Support (primitive) indentation of qw(), m()x.
+        After 4.26:
+       (cperl-problems): Mention `fill-paragraph' on comment. \"" and
+       q [] with intervening newlines.
+       (cperl-autoindent-on-semi): New customization variable.
+       (cperl-electric-semi): Use `cperl-autoindent-on-semi'.
+       (cperl-tips): Mention how to make CPerl the default mode.
+       (cperl-mode): Support `outline-minor-mode'.  From Mark A. Hershberger.
+       (cperl-outline-level): New function.
+       (cperl-highlight-variables-indiscriminately): New customization var.
+       (cperl-init-faces): Use `cperl-highlight-variables-indiscriminately'.
+       From Sean Kamath <kamath@pogo.wv.tek.com>.
+       (cperl-after-block-p): Support CHECK and INIT.
+       (cperl-init-faces, cperl-short-docs): Likewise and "our".
+       From Doug MacEachern <dougm@covalent.net>.
+        After 4.27:
+       (cperl-find-pods-heres): Recognize \"" as a string.
+       Mark whitespace between q and [] as `syntax-type' => `prestring'.
+       Allow whitespace between << and "FOO".
+       (cperl-problems): Remove \"" and q [] with intervening newlines.
+       Mention multiple <<EOF as unsupported.
+       (cperl-highlight-variables-indiscriminately): Doc misprint fixed.
+       (cperl-indent-parens-as-block): New configuration variable.
+       (cperl-calculate-indent): Merge cases of indenting non-BLOCK groups.
+       Use `cperl-indent-parens-as-block'.
+       (cperl-find-pods-heres): Test for =cut without empty line instead of
+       complaining about no =cut.
+       (cperl-electric-pod): Change the REx for POD from "\n\n=" to "^\n=".
+       (cperl-find-pods-heres): Likewise.
+       (cperl-electric-pod): Change `forward-sexp' to `forward-word':
+       POD could've been marked as comment already.
+       (cperl-unwind-to-safe): Unwind before start of POD too.
+        After 4.28:
+       (cperl-forward-re): Throw an error at proper moment REx unfinished.
+        After 4.29:
+       (x-color-defined-p): Make an extra case to peacify the warning.
+       Toplevel: `defvar' to peacify the warnings.
+       (cperl-find-pods-heres): Could access `font-lock-comment-face' in -nw.
+       No -nw-compile time warnings now.
+       (cperl-find-tags): TAGS file had too short substring-to-search.
+       Be less verbose in non-interactive mode
+       (imenu-example--create-perl-index): Set index-marker after name
+       (cperl-outline-regexp): New variable.
+       (cperl-outline-level): Made compatible with `cperl-outline-regexp'.
+       (cperl-mode): Made use `cperl-outline-regexp'.
+        After 4.30:
+       (cperl-find-pods-heres): =cut the last thing, no blank line, was error.
+       (cperl-outline-level): Make start-of-file same level as `package'.
+        After 4.31:
+       (cperl-electric-pod): `head1' and `over' electric only if empty.
+       (cperl-unreadable-ok): New variable.
+       (cperl-find-tags): Use `cperl-unreadable-ok', do not fail
+       on an unreadable file.
+       (cperl-write-tags): Use `cperl-unreadable-ok', do not fail
+       on an unreadable directory.
+
+       * progmodes/compile.el (compile-mouse-goto-error, compile-goto-error):
+       Consider the text between two errors as belonging to the first error.
+       (compilation-goto-locus): Use pop-to-buffer rather than
+       switch-to-buffer-other-frame.
+
+       * progmodes/awk-mode.el (awk-mode-syntax-table): / has string syntax.
+       (awk-font-lock-syntactic-keywords): New var.
+       (awk-mode): Use it.
+
+       * expand.el (expand-c-for-skeleton): Add explicit terminating \n.
+
+       * faces.el (describe-face): Call help-setup-xref earlier.
+
+       * jka-compr.el (jka-compr-load-suffixes): New var.
+       (jka-compr-install): Add its content to load-suffixes.
+       (jka-compr-uninstall): Remove its content from load-suffixes.
+
+2001-10-12  Sam Steingold  <sds@gnu.org>
+
+       * bindings.el (completion-ignored-extensions): CL-related
+       extensions are platform-independent.
+
+       * net/ange-ftp.el (ange-ftp-copy-files-async): New function for
+       asynchronous multiple file copying.
+
+2001-10-12  Gerd Moellmann  <gerd@gnu.org>
+
+       * emacs-lisp/bytecomp.el (byte-compile-check-lambda-list):
+       Turn error for repeated variables into warning.
+
+       * emacs-lisp/bytecomp.el (byte-compile-check-lambda-list):
+       New function checking that lambda-list consists of non-constant
+       symbols, that &rest and &optional are followed by variable names,
+       that &rest VAR is the last element, and that variables aren't doubled.
+       (byte-compile-lambda): Use it.
+
+2001-10-12  Eli Barzilay <eli@barzilay.org>
+
+       * calculator.el (calculator-eng-display): Don't call concat
+       with an integer argument.
+
+2001-10-12  Miles Bader  <miles@gnu.org>
+
+       * help-mode.el (help-customize-face): New button-type.
+
+       * faces.el (list-faces-display): Fix args to `help-xref-button'.
+       (describe-face): Fix args to `help-xref-button'.
+       Don't switch to help-buffer around call to `help-setup-xref'.
+       Use `help-buffer' instead of hard-wired "*Help*".
+       Require `help-mode'.
+
+2001-10-11  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * net/goto-addr.el (goto-address-mail-regexp): Allow + in username.
+
+       * help-mode.el (help-buffer): New function.
+       Returns the buffer-name to use for help output.
+       Change all the code to use it instead of hard-coding *Help*.
+       (help-mode-map): Put back the mouse-2 binding.
+       (help-xref-stack): Change the format and make buffer-local.
+       (help-xref-stack-item): Make buffer-local.
+       (help-setup-xref): Do the `push' here rather than in help-do-xref.
+       (help-xref-interned): Display the face doc as well.
+       (help-follow-mouse): Re-introduce.
+       (help-xref-go-back): Adapt to the new use of help-xref-stack.
+       (help-do-xref): Don't `push' any more.
+       (help-follow): Also follow face names.
+
+       * help-funs.el (describe-function-1): Remove unused `parens' arg.
+       Don't call help-setup-xref anymore and remove its `interactive-p' arg.
+       Autoload and cleanup.
+       (describe-function): Call help-setup-xref.
+       (describe-variable): Call help-setup-xref earlier.
+
+       * help.el (describe-bindings-internal): New fun moved from keymap.c.
+       (view-lossage): Call help-setup-xref correctly and earlier.
+       (describe-bindings): Call help-setup-xref earlier.
+       (describe-key): Call help-setup-xref.  Fix call to describe-function-1.
+       (describe-mode): Don't autoload.  Call help-setup-xref earlier.
+
+2001-10-11  Gerd Moellmann  <gerd@gnu.org>
+
+       * master.el (master-mode): Use define-minor-mode instead of
+       easy-mmode-define-minor-mode.  Add autload cookie.
+       (Commentary): Remove the line showing how to autoload master-mode,
+       since it's always autoloaded.
+
+       * master.el: New file.
+
+2001-10-11  Dave Love  <fx@gnu.org>
+
+       * emacs-lisp/byte-opt.el (byte-optimize-lapcode)
+       <byte-constref-ops>: Consider byte-constant2 and clarify the code.
+       <const-C varset-X const-C>: Fix car/cdr typo.
+
+2001-10-11  Gerd Moellmann  <gerd@gnu.org>
+
+       * emacs-lisp/bytecomp.el (byte-compile-display-log-head-p):
+       New function extracted from byte-compile-log-1.
+       (byte-compile-log-1): Change output to be more in line with
+       the output of other GNU tools.
+       (byte-compile-warn): Emit `warning' instead of `**' for warnings.
+       (byte-compile-report-error): Downcase error message.
+       Use `error' instead of `!!' for error messages.
+       (byte-compile-print-syms): Treat non-interactive case specially.
+       (displaying-byte-compile-warnings): Use backquote.
+       (byte-compile-from-buffer): Bind byte-compile-last-line.
+       (batch-byte-compile): Remove `Done' message.
+
+2001-10-10  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * emacs-lisp/copyright.el (copyright): Add final \n.
+
+2001-10-11  Miles Bader  <miles@gnu.org>
+
+       * diff.el (diff): Display default values in prompts as
+       `(default ...)', not `(...)'.
+
+       * info.el (Info-follow-reference): Likewise.
+
+2001-10-10  Stefan Monnier  <monnier@cs.yale.edu>
+
+       * emacs-lisp/autoload.el (doc-string-elt): Remove.
+
+       * newcomment.el (comment-indent): Be a little more robust in case
+       comment-indent-function does funny things.
+       (comment-normalize-vars): Autoload.
+       (comment-region-internal): Fiddle with the visibility spec.
+       (comment-valid-prefix): New function.
+       (comment-indent-new-line): Use it.  Ignore adaptive-fill-prefixes
+       that would turn comment-text into non-comment-text.
+
+       * emacs-lisp/syntax.el: New file.
+
+       * progmodes/tcl.el: Change maintainer to FSF and remove loads of
+       compatibility cruft.
+       (tcl-using-emacs-19, tcl-using-emacs-19-23, tcl-using-xemacs-19)
+       (tcl-version, tcl-maintainer, tcl-use-hairy-comment-detector): Remove.
+       (tcl-mode-map): Remove bindings for tcl-beginning-of-defun,
+       tcl-end-of-defun, tcl-mark-defun, tcl-indent-for-comment,
+       tcl-submit-bug-report.
+       (tcl-mode-syntax-table): Leave \f alone.
+       (inferior-tcl-mode-map): Remove bindings for tcl-beginning-of-defun,
+       tcl-end-of-defun, tcl-submit-bug-report.
+       (tcl-xemacs-menu): Fix up and pass it directly to easymenu.
+       (tcl-add-emacs-menu): Remove.
+       (tcl-fill-mode-map, tcl-fill-inferior-map): Moved into the defvar.
+       (tcl-keyword-list): Add `chain'.
+       (tcl-font-lock-syntactic-keywords): New variable.
+       (tcl-pps-has-arg-6): Remove.
+       (tcl-internal-beginning-of-defun, tcl-internal-end-of-defun)
+       (tcl-internal-mark-defun): Remove.
+       (tcl-set-proc-regexp, tcl-set-font-lock-keywords): Use regexp-opt.
+       (tcl-mode): Use define-derived-mode.  Simplify.
+       Set comment-indent-function.
+       (tcl-indent-command): Use line-beginning-position and comment-indent.
+       (tcl-calculate-indent): Renamed from calculate-tcl-indent.
+       (tcl-indent-line): Use tcl-calculate-indent.
+       (tcl-indent-exp): Renamed from indent-tcl-exp.  Use new names.
+       (tcl-add-log-defun): Renamed from add-log-tcl-defun.  Use match-string.
+       (tcl-filter): Use with-current-buffer, simplify.
+       (inferior-tcl-mode): Use define-derived-mode.
+       (tcl-hairy-in-comment): Renamed tcl-in-comment.
+       (tcl-simple-in-comment, tcl-in-comment): Removed.
+       (tcl-files-alist): New function.
+       (tcl-help-snarf-commands): Use it and return the result directly
+       rather than through a global variable.
+       (tcl-reread-help-files): Fix up the call to tcl-help-snarf-commands.
+       (tcl-help-on-word): Provide the default value to completing-read.
+       (tcl-hilit): Remove.
+       (tcl-hashify-buffer, tcl-popup-menu): Simplify.
+       (tcl-comment-indent): New function.
+       (tcl-submit-bug-report): Remove.
+       (tcl-uncomment-region, tcl-indent-for-comment, add-log-tcl-defun)
+       (indent-tcl-exp, calculate-tcl-indent, tcl-beginning-of-defun)
+       (tcl-end-of-defun, tcl-mark-defun, tcl-mark): Redefine as aliases.
+
+2001-10-10  Miles Bader  <miles@gnu.org>
+
+       * info.el (Info-insert-dir): Don't call `Info-fontify-menu-headers'.
+       (Info-fontify-node): Don't fontify the node if it's already been done.
+
+2001-10-10  Gerd Moellmann  <gerd@gnu.org>
+
+       * international/iso-transl.el (iso-transl-e-caret)
+       (iso-transl-i-caret, iso-transl-o-caret, iso-transl-u-caret):
+       Fix duplicates.  From Dave Love <d.love@dl.ac.uk>.
+
+       * simple.el (end-of-buffer): Fix code scrolling specially
+       for the buffer end.
+
+       * startup.el (command-line-1): Bind tab-width to 8.
+
 2001-10-10  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
 
        * emulation/tpu-edt.el: Use defalias instead of fset for
        user-visible commands.  From Rob Riepel
        <riepel@Networking.Stanford.EDU>.
 
+2001-10-09  Gerd Moellmann  <gerd@gnu.org>
+
+       * ruler-mode.el: New file.
+
 2001-10-09  Miles Bader  <miles@gnu.org>
 
        * apropos.el (button): New require.
 
        * help-funs.el: New file, contents mostly from `help.el'.
        (describe-variable): Use `condition-case' instead of `ignore-errors'.
+
        * help-mode.el: New file, contents mostly from `help.el'.
+
        * help.el: Don't require `view' when compiling.
        (help-with-tutorial, describe-function, describe-function-1)
        (variable-at-point, describe-variable, locate-library):
        Functions moved into `subr.el'.
        (symbol-file-load-history-loaded): Variable moved into `subr.el'.
        (view-lossage): Call `help-setup-xref' instead of doing it manually.
-       * subr.el (symbol-file-load-history-loaded) 
+
+       * subr.el (symbol-file-load-history-loaded)
        (load-symbol-file-load-history, symbol-file): Moved from `help.el'.
+
        * loadup.el ("button"): Load removed.
 
        * button.el (define-button-type): Respect any `supertype' property.
 
        * comint.el (comint-insert-previous-argument): New function.
        (comint-mode-map): Bind `C-c .' to `comint-input-previous-argument'.
-       (comint-insert-previous-argument-last-start-pos) 
+       (comint-insert-previous-argument-last-start-pos)
        (comint-insert-previous-argument-last-index): New variables.
 
        * apropos.el (apropos-next-label-button): Use the presence of a
        * apropos.el (apropos-next-label-button): Update arguments to
        `next-button'.
        (apropos-symbol): Add `skip' property.
-       (apropos-function, apropos-macro, apropos-command) 
-       (apropos-variable, apropos-face, apropos-group, apropos-widget) 
+       (apropos-function, apropos-macro, apropos-command)
+       (apropos-variable, apropos-face, apropos-group, apropos-widget)
        (apropos-plist): New button types.
        (apropos-label-properties): Variable removed.
        (apropos-print): Pass button-type to apropos-print-doc, rather
        (setenv): Add parameter SUBSTITUTE-ENV-VARS.  If set, substitute
        environment variables in VALUE.  Return VALUE.
 
+2001-10-04  Gerd Moellmann  <gerd@gnu.org>
+
+       * Branch for 21.1.
+
 2001-10-03  Stefan Monnier  <monnier@cs.yale.edu>
 
        * pcvs-util.el (cvs-prefix-define): Typo cons->concat.