Make `dired-diff' more safe. (Bug#5225)
[bpt/emacs.git] / lisp / ChangeLog
index 0420326..c2a1664 100644 (file)
@@ -1,3 +1,474 @@
+2009-12-17  Juri Linkov  <juri@jurta.org>
+
+       Make `dired-diff' more safe.  (Bug#5225)
+
+       * dired-aux.el (dired-diff): Signal an error when `file' equals to
+       `current' or when `file' is a directory of the `current' file.
+
+2009-12-17  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * emacs-lisp/autoload.el (batch-update-autoloads): Only exclude
+       unconditionally preloaded files.
+
+2009-12-16  Juri Linkov  <juri@jurta.org>
+
+       Revert to old 23.1 logic of using the file at the mark as default.
+       * dired-aux.el (dired-diff): Use the file at the mark as default
+       if it's not the same as the current file, and the target dir is
+       the current dir or the mark is active.  Add the current file
+       as the arg of `dired-dwim-target-defaults'.  Use the default file
+       in the prompt.  (Bug#5225)
+
+2009-12-15  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-echo-mark-marker-length): New defconst.
+       (tramp-echo-mark, tramp-echoed-echo-mark-regexp): Use it.
+       (tramp-check-for-regexp): Check also, when an echoing shell stops
+       to echo sent commands.
+
+2009-12-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * Makefile.in: Revert last change (Bug#5191).
+
+2009-12-14  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * vc-hg.el (vc-hg-print-log): Fix argument order.
+       (vc-hg-working-revision): Make sure the command is executed in a
+       known environment so that we can parse the output.  (Bug#4417)
+
+2009-12-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * progmodes/python.el (python-symbol-completions): Remove text
+       properties from symbol string before calling python-send-receive.
+
+2009-12-14  Nick Roberts  <nickrob@snap.net.nz>
+
+       * progmodes/gdb-mi.el (gdb-frame-handler): Only set gud-lat-frame
+       when there are values for both file and line. (Bug#5060)
+
+2009-12-14  Juri Linkov  <juri@jurta.org>
+
+       * ediff-ptch.el (ediff-context-diff-label-regexp): Don't match
+       whitespace after the file name of the first line of unified format,
+       because git-diff doesn't output whitespace and file modification time
+       after the file name.
+
+2009-12-14  David Kastrup  <dak@gnu.org>
+
+       * info.el (Info-hide-cookies-node): Before hiding a cookie,
+       check if it already has the `display' property added by
+       `Info-display-images-node', and not put the `invisible' property
+       in this case.
+
+2009-12-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cedet/semantic/mru-bookmark.el (global-semantic-mru-bookmark-mode)
+       (semantic-mru-bookmark-mode): Doc fixes.
+
+       * cedet/semantic/db.el (semanticdb-cache-get): Use error instead
+       of assert.
+
+2009-12-13  Glenn Morris  <rgm@gnu.org>
+
+       * mail/emacsbug.el (message-sort-headers): Define for compiler.
+       (report-emacs-bug): In message-mode, sort manually before storing
+       original report text.  (Bug#5178)
+       Remove superfluous save-excursion.
+
+2009-12-12  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/dbus.el (dbus-property-handler): Filter lambda forms out
+       when responding to "GetAll" properties.
+
+2009-12-12  Chong Yidong  <cyd@stupidchicken.com>
+
+       * simple.el (compose-mail): Remove mail-setup-with-from from
+       customization checks.
+
+2009-12-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * arc-mode.el (archive-rar-summarize): Support Attribute fields in
+       RAR archives created on Unix systems.
+
+2009-12-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * minibuffer.el (minibuffer-local-must-match-filename-map): Re-instate
+       the varalias that was accidentally removed by the 2009-11-19 change
+       (bug#5186).
+
+2009-12-12  Kenichi Handa  <handa@m17n.org>
+
+       * language/indian.el (indian-compose-regexp): New function.
+       (malayalam-composable-pattern): Fix the pattern.
+       (composition-function-table): Set malayalam-composable-pattern for
+       Malayalam characters.
+
+2009-12-11  Chong Yidong  <cyd@stupidchicken.com>
+
+       * progmodes/bug-reference.el (bug-reference-map): Bind mouse-2
+       rather than down-mouse-1, based on follow-link conventions.
+
+       * makefile.w32-in: Ensure that Lisp files in CEDET subdirectories
+       are compiled.
+
+2009-12-11  Michael McNamara  <mac@mail.brushroad.com>
+
+       * verilog-mode.el (verilog-vmm-begin-re, verilog-vmm-end-re)
+       (verilog-vmm-statement-re, verilog-ovm-statement-re)
+       (verilog-defun-level-not-generate-re, verilog-calculate-indent)
+       (verilog-leap-to-head, verilog-backward-token):
+       Fix indenting VMM macros.  Reported by Jonathan Ashbrook.
+
+2009-12-11  Wilson Snyder  <wsnyder@wsnyder.org>
+
+       * verilog-mode.el (verilog-auto-lineup, verilog-nameable-item-re):
+       Cleanup user-visible spelling and documentation errors.
+       One reported by Gary Delp.
+       (verilog-submit-bug-report): Mention bug tracking and CC co-author.
+       (verilog-read-decls): Fix AUTOWIRE with types declared in a
+       package, bug195.  Reported by Pierre-David Pfister.
+
+2009-12-11  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/cc-engine.el (safe-pos-list): Define for compiler.
+
+       * mail/emacsbug.el: No longer require sendmail.
+       Replace sendmail's `mail-text' by `rfc822-goto-eoh'.  (Bug#5174)
+       (report-emacs-bug-orig-text): Doc fix.
+       (report-emacs-bug-send-command, report-emacs-bug-send-hook):
+       New local variables, to adapt to different mail-user-agents.
+       (report-emacs-bug): Fix test for a gnu.org address.
+       Use overlays for emphasis, since font-lock defeats 'face property.
+       Pretest bugs also end up at the newsgroup these days.
+       Stop message-mode stripping text properties.
+       Set and use the new buffer-local variables.
+       (report-emacs-bug-hook): Add doc-string.
+       Remove some unnecessary save-excursions and simplify.
+       Use the appropriate hook and send-command.
+
+       * emacs-lisp/lisp-mode.el (emacs-lisp-mode-map): Standardize the
+       capitalization of some menu entries.
+
+2009-12-10  Vinicius Jose Latorre  <viniciusjl@ig.com.br>
+
+       * whitespace.el (whitespace-display-char-on): Ensure
+       `buffer-display-table' is unique when two or more windows are
+       visible.  Reported by Martin Pohlack <mp26@os.inf.tu-dresden.de>.
+       New version 12.1.
+
+2009-12-10  Eli Zaretskii  <eliz@gnu.org>
+
+       * arc-mode.el (archive-rar-summarize): Allow between 6 and 7
+       characters in the Attribute field.
+
+2009-12-10  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * vc-svn.el (vc-svn-after-dir-status): Fix regexp.  (Bug#4741)
+
+2009-12-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Let loaddefs.el adjust to changes in autoload-excludes (bug#5162).
+       * emacs-lisp/autoload.el (autoload-generate-file-autoloads):
+       Disregard autoload-excludes.
+       (update-directory-autoloads): Obey autoload-excludes here instead.
+       But don't store its contents in no-autoloads and remove entries that
+       refer to excludes files.
+
+2009-12-10  Glenn Morris  <rgm@gnu.org>
+
+       * mail/feedmail.el (top-level): Move require 'mail-utils to start.
+       (expand-mail-aliases): Define for compiler.
+
+       * vc-annotate.el (log-view-vc-backend, log-view-vc-fileset):
+       Define for compiler.
+
+       * mail/emacsbug.el (report-emacs-bug): Use whichever send command is
+       appropriate for the mail-user-agent in use.
+
+2009-12-09  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-handle-insert-directory): Suppress error messages.
+
+2009-12-09  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Fix short log parsing and fontification.
+       * vc-bzr.el (vc-bzr-log-view-mode): Match dot in revision number.
+       Fix fontification for the [merge] label.
+
+2009-12-09  Vivek Dasmohapatra  <vivek@etla.org>
+
+       Drop some properties to avoid surprises.
+       * htmlfontify.el (hfy-ignored-properties): New defcustom.
+       (hfy-fontify-buffer): Use it.
+
+2009-12-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Minor cleanup.
+       * ffap.el (ffap-symbol-value): Replace ffap-soft-value.
+       Adjust all callers.
+       (ffap-locate-file): Remove unused arg `dir-ok' and make other
+       args compulsory.  Adjust callers.
+       (ffap-gopher-at-point): Remove unused var `name'.
+
+       Get rid of the ELCFILES abomination.
+       * Makefile.in (update-elclist, ELCFILES, compile-last): Remove.
+       (compile-elcfiles): New phony target.
+       (compile-main): Compute ELCFILES dynamically.
+       (compile-clean): New target to remove left-over elc files.
+       (compile, all): Use it.
+
+2009-12-09  Kenichi Handa  <handa@etlken>
+
+       * international/mule-diag.el: Require help-mode instead of help-fns.
+
+2009-12-09  Kenichi Handa  <handa@m17n.org>
+
+       * international/mule-cmds.el (ucs-names): Supply a sufficiently
+       fine ranges instead of pre-calculating accurate ranges.
+       Iterate with bigger gc-cons-threshold.
+
+2009-12-08  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Add support for stashing a snapshot of the current tree.
+       * vc-git.el (vc-git-stash-snapshot): New function.
+       (vc-git-stash-map, vc-git-extra-menu-map): Add a mapping for it.
+
+2009-12-08  Jose E. Marchesi  <jemarch@gnu.org>
+
+       * play/gomoku.el (gomoku-mode-map): Remap `move-(beginning|end)-of-line'
+       instead of `(beginning|end)-of-line'.
+
+2009-12-08  Glenn Morris  <rgm@gnu.org>
+
+       * vc-mtn.el (vc-mtn-print-log): Fix typo in previous.
+
+       * Makefile.in (ELCFILES): Regenerate.
+
+2009-12-07  Juri Linkov  <juri@jurta.org>
+
+       Don't lazy-highlight the comint output in history Isearch mode.
+
+       * comint.el (comint-history-isearch-search): Instead of
+       `comint-line-beginning-position', use `comint-after-pmark-p'
+       to check if point if before the process mark, and go to
+       `process-mark' in this case.
+
+2009-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * textmodes/tex-mode.el (latex-complete)
+       (latex-indent-or-complete): Remove.
+       (latex-mode): Set completion-at-point-functions instead.
+
+       Provide a standard completion command and hook it into TAB.
+       * minibuffer.el (completion-at-point-functions): New var.
+       (completion-at-point): New command.
+       * indent.el (indent-for-tab-command): Handle the `complete' behavior.
+       * progmodes/python.el (python-mode-map): Use completion-at-point.
+       (python-completion-at-point): Rename from python-partial-symbol and
+       adjust for use in completion-at-point-functions.
+       (python-mode): Setup completion-at-point for Python completion.
+       * emacs-lisp/lisp.el (lisp-completion-at-point): New function
+       extracted from lisp-complete-symbol.
+       (lisp-complete-symbol): Use it.
+       * emacs-lisp/lisp-mode.el (emacs-lisp-mode): Use define-derived-mode,
+       setup completion-at-point for Elisp completion.
+       (emacs-lisp-mode-map, lisp-interaction-mode-map):
+       Use completion-at-point.
+       * ielm.el (ielm-map): Use completion-at-point.
+       (inferior-emacs-lisp-mode): Setup completion-at-point-functions.
+       * progmodes/sym-comp.el: Move to...
+       * obsolete/sym-comp.el: Move from progmodes.
+
+2009-12-07  Eli Zaretskii  <eliz@gnu.org>
+
+       Prevent save-buffer in Rmail buffers from using the coding-system
+       of the current message, and from clobbering the encoding mnemonics
+       in the mode line (Bug#4623).
+
+       * mail/rmail.el (rmail-swap-buffers): Swap encoding and modified
+       flag, too.
+       (rmail-message-encoding): New variable.
+       (rmail-write-region-annotate): Record the encoding of the current
+       message in rmail-message-encoding.
+       (rmail-after-save-hook): New function, restores the encoding of
+       the current message after the message collection is saved.
+
+2009-12-07  Juri Linkov  <juri@jurta.org>
+
+       * progmodes/grep.el (grep-read-files): Use `completing-read'
+       instead of `read-string'.  Set its `collection' arg to
+       `read-file-name-internal'.  (Bug#4301)
+
+2009-12-07  Juri Linkov  <juri@jurta.org>
+
+       Correctly restore original Isearch point.  (Bug#4994)
+
+       * isearch.el (isearch-mode): Move `isearch-push-state' after
+       `(run-hooks 'isearch-mode-hook)'.
+       (isearch-cancel): When `isearch-push-state-function' is defined,
+       let-bind `isearch-cmds' to the first state (the last element of
+       `isearch-cmds') and call `isearch-top-state' (it calls pop-state
+       function and restores the original point).  Otherwise, move point
+       to `isearch-opoint'.
+
+2009-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * international/mule-cmds.el (ucs-names): Weed out at compile-time the
+       chars that don't have names, so the table can be built much faster at
+       run-time.
+
+2009-12-07  Chong Yidong  <cyd@stupidchicken.com>
+
+       * vc-bzr.el (vc-bzr-annotate-command): More elegant form for last
+       change.  Suggested by David Kastrup.
+
+       * simple.el (compose-mail): Check for incompatibilities and warn.
+       (compose-mail-user-agent-warnings): New option.
+
+2009-12-07  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Support showing a single log entry from vc-annotate.
+       * vc.el (print-log): Add a new argument: START-REVISION.
+       (vc-print-log-internal): Add a new optional argument and
+       pass it to the backend.
+       (vc-print-log, vc-print-root-log): Adjust callers.
+       * vc-annotate.el (vc-annotate-show-log-revision-at-line): If a
+       buffer already displays the requested log entry, use it.
+       Otherwise display only the log entry in question.
+       * vc-svn.el (vc-svn-print-log):
+       * vc-mtn.el (vc-mtn-print-log):
+       * vc-hg.el (vc-hg-state):
+       * vc-git.el (vc-git-print-log): Add support for new argument START-REVISION.
+       (vc-git-show-log-entry): Return t on success.
+       * vc-bzr.el (vc-bzr-print-log): Add support new argument START-REVISION.
+       (vc-bzr-show-log-entry): Return t on success.
+       * vc-rcs.el (vc-rcs-print-log):
+       * vc-sccs.el (vc-sccs-print-log):
+       * vc-cvs.el (vc-cvs-print-log): Add new argument, ignore it.
+
+2009-12-07  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * ediff-mult.el (ediff-setup-meta-map, ediff-prepare-meta-buffer): Add
+       menus to the meta mode.  (Bug#5043)
+
+2009-12-07  Michael Kifer <kifer@cs.stonybrook.edu>
+
+       * ediff-init.el (ediff-event-key): Use event-to-character instead of
+       event-key.
+
+       * ediff.el (ediff-buffers-internal): Add unwind-protect.
+
+2009-12-07  Michael Albinus  <michael.albinus@gmx.de>
+
+       Handle prompt rules of ksh in OpenBSD 4.5.  Reported by Raphaël
+       Berbain <raphael.berbain@gmail.com>.
+
+       * net/tramp.el (tramp-end-of-output): Move up.  Use `#' and `$'
+       characters.
+       (tramp-initial-end-of-output): New defconst.
+       (tramp-methods, tramp-find-shell)
+       (tramp-open-connection-setup-interactive-shell)
+       (tramp-maybe-open-connection): Use it.
+       (tramp-shell-prompt-pattern, tramp-wait-for-output): Handle
+       existence of `#' and `$'.
+
+       * net/tramp-fish.el (tramp-fish-maybe-open-connection): Use
+       `tramp-initial-end-of-output'.
+
+2009-12-07  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       Get the background mode from the terminal for xterm, and set
+       faces accordingly.
+       * term/xterm.el (xterm-set-background-mode): New function.
+       (terminal-init-xterm): Use it in case xterm supports background
+       color queries.  Recompute faces after getting the background
+       color.
+
+2009-12-07  Ulrich Mueller  <ulm@gentoo.org>
+
+       * emacs-lisp/bytecomp.el (byte-compile-insert-header): Put the version
+       number comment back on its own line, for easier parsing.
+
+2009-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       Make it work for non-file buffers (bug#5102).
+       * doc-view.el (doc-view-current-cache-dir):
+       Use doc-view-buffer-file-name rather than buffer-file-name.
+       (doc-view-mode): Use buffer-name when buffer-file-name is nil.
+
+2009-12-06  Óscar Fuentes  <ofv@wanadoo.es>
+
+       * vc-bzr.el (vc-bzr-annotate-command): Handle the case where the
+       author field is too short.
+
+2009-12-06  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * vc-git.el (vc-git-print-log): Handle a limit argument.
+       Display the short log in graph form and with labels.
+       (vc-git-log-view-mode): Handle labels.
+
+       Make vc-revert change VC state from 'added to 'unregistered.
+       * vc-git.el (vc-git-revert): Call git reset first.
+
+2009-12-06  Ulf Jasper  <ulf.jasper@web.de>
+
+       * net/newst-backend.el, net/newst-plainview.el:
+       * net/newst-reader.el, net/newst-ticker.el:
+       * net/newst-treeview.el, net/newsticker.el:
+       Require/provide newst-... (instead of newsticker-...).  (Bug#5096)
+
+2009-12-06  Chong Yidong  <cyd@stupidchicken.com>
+
+       * log-view.el (log-view-mode-map): Bind "=" to log-view-diff too.
+
+       * vc-bzr.el (vc-bzr-annotate-command): Show author in annotation.
+       Handle empty author field (Bug#4144).  Suggested by Óscar Fuentes.
+       (vc-bzr-annotate-time, vc-bzr-annotate-extract-revision-at-line):
+       Update annotation regexp.
+
+       * simple.el (beginning-of-visual-line): Constrain to field
+       boundaries (Bug#5106).
+
+2009-12-06  Ulf Jasper  <ulf.jasper@web.de>
+
+       * xml.el (xml-substitute-numeric-entities): Move
+       newsticker--decode-numeric-entities in newst-backend.el to
+       xml-substitute-numeric-entities in xml.el.  (Bug#5008)
+       * net/newst-backend.el (newsticker--parse-generic-feed)
+       (newsticker--parse-generic-items)
+       (newsticker--decode-numeric-entities): Move
+       newsticker--decode-numeric-entities in newst-backend.el to
+       xml-substitute-numeric-entities in xml.el.  (Bug#5008)
+
+2009-12-06  Daniel Colascione  <dan.colascione@gmail.com>
+
+       * progmodes/js.el (js--js-not): Add null to the list of values.
+
+2009-12-06  Chong Yidong  <cyd@stupidchicken.com>
+
+       * ansi-color.el (ansi-color-for-comint-mode): Add :version keyword.
+
+2009-12-06  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
+
+       * textmodes/bibtex.el (bibtex-enclosing-field): Exclude entry
+       delimiter if it is at the end of the current line.
+       (bibtex-generate-url-list): Fix docstring.
+
+2009-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * minibuffer.el (minibuffer-complete-and-exit): Don't replace the
+       minibuffer's content with itself.
+       Fold the confirm-after-completion case into the `confirm' case.
+       (completion-pcm-word-delimiters): Add : and / to the delimiters.
+
+2009-12-06  Kevin Ryde  <user42@zip.com.au>
+
+       * ffap.el (ffap-rfc-path): Make this a defcustom since
+       `ffap-rfc-directories' is also a defcustom.  (Bug#4514.)
+
+       * info-look.el: Add setup for apropos-mode to use emacs-lisp-mode
+       manuals, similar to existing setup for help-mode.  (Bug#3913.)
+
 2009-12-05  Juri Linkov  <juri@jurta.org>
 
        Save and restore dired buffer's point positions too.  (Bug#4880)
        * bindings.el (complete-symbol): Call semantic-ia-complete-symbol
        if possible.
 
-       * cedet/semantic/ia.el (semantic-ia-complete-symbol): Make
-       argument optional.
+       * cedet/semantic/ia.el (semantic-ia-complete-symbol):
+       Make argument optional.
 
        * shell.el (shell): Require ansi-color (Bug#5113).
 
        (bibtex-field-braces-alist, bibtex-field-strings-alist)
        (bibtex-field-re-init): Replace only space characters by regexp
        for whitespace.
-       (bibtex-generate-url-list, bibtex-cite-matcher-alist): Fix
-       docstring.
+       (bibtex-generate-url-list, bibtex-cite-matcher-alist): Fix docstring.
        (bibtex-initialize): Also update bibtex-strings.
        (bibtex-kill-field): Preserve white space at end of entry.
-       (bibtex-kill-entry, bibtex-yank-pop, bibtex-insert-kill): Update
-       bibtex-reference-keys.
+       (bibtex-kill-entry, bibtex-yank-pop, bibtex-insert-kill):
+       Update bibtex-reference-keys.
 
 2009-12-05  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 
        Improve integration of Tramp and ange-ftp in eshell.
 
-       * eshell/em-unix (eshell/whoami): Make it a defun but a defalias.
+       * eshell/em-unix.el (eshell/whoami): Make it a defun but a defalias.
        (eshell/su): Flatten args.  Apply better args parsing.  Use "cd".
        (eshell/sudo): Flatten args.  Let-bind `default-directory'.
 
 2009-11-24  Kevin Ryde  <user42@zip.com.au>
 
        * emacs-lisp/checkdoc.el (checkdoc-proper-noun-regexp):
-       Build value with regexp-opt instead of explicit joining loop.  (My
-       Bug#4927.)
+       Build value with regexp-opt instead of explicit joining loop.  (Bug#4927)
 
        * emacs-lisp/elint.el (elint-add-required-env): Better error message
        when .el source file not found or other error.
 
 2009-11-20  Karl Fogel  <karl.fogel@red-bean.com>
 
-       * bookmark.el Formatting and doc fixes only:
+       * bookmark.el: Formatting and doc fixes only:
        (bookmark-search-delay): Shorten doc string to fit in 80 columns.
        (bookmark-bmenu-search): Wrap to fit within 80 columns.
          Minor grammar and punctuation fixes in doc string.
        * emacs-lisp/checkdoc.el (checkdoc-file-comments-engine):
        When inserting ";;; Code" put it before any ";;;###autoload" cookie on
        the first form.  And insert a blank line after ";;; Code" since
-       that's usual style.  (My Bug#4612.)
+       that's usual style.  (Bug#4612)
 
        * net/dns.el: Add "Keywords: comm", as per net/net-utils.el.