Improve url matching in ffap.el.
[bpt/emacs.git] / lisp / ChangeLog
index 01d6ce0..b6f03d4 100644 (file)
@@ -1,3 +1,477 @@
+2012-12-05  Chong Yidong  <cyd@gnu.org>
+
+       * ffap.el (ffap-url-regexp): Don't require matching at front of
+       string (Bug#4952).
+       (ffap-url-p): If only a substring matches, return that.
+       (ffap-url-at-point): Use the return value of ffap-url-p.
+       (ffap-read-file-or-url, ffap-read-file-or-url-internal)
+       (find-file-at-point, dired-at-point, dired-at-point-prompter)
+       (ffap-guess-file-name-at-point): Likewise.
+       (ffap-replace-file-component): Fix typo.
+
+       * info.el (info-display-manual): Add existing Info buffers, whose
+       files may not be in Info-directory-list, to the completion.
+       (info--manual-names): New helper function.
+
+2012-12-05  Glenn Morris  <rgm@gnu.org>
+
+       * vc/vc-hg.el (vc-hg-resolve-when-done, vc-hg-find-file-hook):
+       New functions, for detecting and resolving conflicts.  (Bug#10709)
+
+2012-12-04  Jambunathan K  <kjambunathan@gmail.com>
+
+       * hi-lock.el (hi-lock-auto-select-face): New user variable.
+       (hi-lock-auto-select-face-defaults): New buffer local variable.
+       (hi-lock-read-face-name): Honor `hi-lock-auto-select-face'.
+       (hi-lock-unface-buffer): Prompt user with useful defaults.
+       With prefix arg, unhighlight all hi-lock patterns in buffer.
+
+2012-12-04  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * obsolete/terminal.el, obsolete/longlines.el: Add obsolecence info.
+
+2012-12-04  Michael Albinus  <michael.albinus@gmx.de>
+
+       * Makefile.in (TRAMP_SRC):
+       * makefile.w32-in (TRAMP_SRC): Add tramp-adb.el.
+
+2012-12-04  Juergen Hoetzel  <juergen@archlinux.org>
+
+       * net/tramp-adb.el: New package.
+
+2012-12-04  Chong Yidong  <cyd@gnu.org>
+
+       * terminal.el: Move to obsolete/.
+
+       * longlines.el: Move to obsolete/.
+
+       * vc/ediff-diff.el (ediff-extract-diffs, ediff-extract-diffs3):
+       Remove code referring to longlines mode.
+
+2012-12-03  Juri Linkov  <juri@jurta.org>
+
+       * sort.el (delete-duplicate-lines): New command.  (Bug#13032)
+
+2012-12-03  Agustín Martín Domingo  <agustin.martin@hispalinux.es>
+
+       * textmodes/ispell.el (ispell-init-process)
+       (ispell-start-process, ispell-internal-change-dictionary):
+       Make sure personal dictionary name is expanded after initial
+       `default-directory' value. Use expanded strings for
+       keep/restart checks and for value (Bug#13019).
+
+2012-12-03  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc/calc-forms.el (math-date-to-iso-dt): Fix weekday number.
+
+2012-12-03  Leo Liu  <sdl.web@gmail.com>
+
+       * files.el (dir-locals-read-from-file): Check file non-empty
+       before reading.  (Bug#13038)
+
+2012-12-03  Glenn Morris  <rgm@gnu.org>
+
+       * jka-cmpr-hook.el (jka-compr-get-compression-info):
+       Remove any version extension before checking filename.  (Bug#13006)
+       (jka-compr-compression-info-list): Belated :version bump.
+
+2012-12-03  Chong Yidong  <cyd@gnu.org>
+
+       * simple.el (transient-mark-mode): Doc fix (Bug#11523).
+
+       * buff-menu.el (Buffer-menu-delete-backwards, Buffer-menu-mode)
+       (buffer-menu): Doc fix (Bug#12294).
+
+2012-12-03  Roland Winkler  <winkler@gnu.org>
+
+       * calendar/diary-lib.el (diary-header-line-format): Use keybinding
+       of diary-show-all-entries in the diary buffer (Bug#12994).
+
+2012-12-03  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-perl-encode): Use "read STDIN" instead of
+       "<STDIN>".  This is binary safe.
+
+2012-12-03  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc/calc-forms.el (math-absolute-from-iso-dt)
+       (math-date-to-iso-dt, math-parse-iso-date-validate)
+       (math-iso-dt-to-date): New functions.
+       (math-fd-iso-dt, math-fd-isoyear, math-fd-isoweek)
+       (math-fd-isoweekday): New variables.
+       (calc-date-notation, math-parse-standard-date, math-format-date)
+       (math-format-date-part): Add support for more formatting codes.
+
+2012-12-02  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * vc/vc.el (vc-delete-file, vc-rename-file): Default to the
+       current buffer's file name when called interactively (Bug#12488).
+
+2012-12-02  Juri Linkov  <juri@jurta.org>
+
+       * info.el (info-display-manual): Don't clobber an existing Info
+       buffer (Bug#10770).  Add completion (Bug#10771).
+
+2012-12-01  Yuya Nishihara  <yuya@tcha.org>  (tiny change)
+
+       * vc/vc-hooks.el (vc-find-file-hook): Expand buffer-file-truename
+       before using it for comparison (Bug#5297).
+
+2012-12-01  Jari Aalto  <jari.aalto@cante.net>
+
+       * textmodes/css-mode.el (css-current-defun-name): New function.
+       (css-mode): Use it.
+
+       * textmodes/sgml-mode.el (html-current-defun-name): New function.
+       (html-mode): Use it.
+
+2012-12-01  Chong Yidong  <cyd@gnu.org>
+
+       Modularize add-log-current-defun (Bug#2224).
+       Suggested by Jari Aalto.
+
+       * vc/add-log.el (add-log-current-defun-function): Doc fix.
+       (add-log-current-defun): Move mode-specific code to other files.
+       (add-log-lisp-like-modes, add-log-c-like-modes)
+       (add-log-tex-like-modes): Variables deleted.
+
+       * emacs-lisp/lisp-mode.el (lisp-current-defun-name): New.
+       (lisp-mode-variables): Use it.
+
+       * progmodes/cc-mode.el (c-common-init):
+       * progmodes/cperl-mode.el (cperl-mode): Set a value for
+       add-log-current-defun-function.
+
+       * progmodes/m4-mode.el (m4-current-defun-name): New function.
+       (m4-mode): Use it.
+
+       * progmodes/perl-mode.el (perl-current-defun-name): New.
+       (perl-mode): Use it.
+
+       * progmodes/scheme.el (scheme-mode-variables, dsssl-mode): Use
+       lisp-current-defun-name.
+
+       * textmodes/tex-mode.el (tex-current-defun-name): New.
+       (tex-common-initialization): Use it.
+
+       * textmodes/texinfo.el (texinfo-current-defun-name): New.
+       (texinfo-mode): Use it.
+
+2012-12-01  Chong Yidong  <cyd@gnu.org>
+
+       * emacs-lisp/lisp-mode.el (lisp-mode-variables, lisp-mode):
+       * progmodes/autoconf.el (autoconf-mode):
+       * progmodes/js.el (js-mode):
+       * progmodes/make-mode.el (makefile-mode, makefile-makepp-mode)
+       (makefile-bsdmake-mode, makefile-imake-mode, makefile-browse):
+       * progmodes/perl-mode.el (perl-mode):
+       * progmodes/sh-script.el (sh-mode, sh-set-shell):
+       * textmodes/css-mode.el (css-mode):
+       * textmodes/sgml-mode.el (html-mode, sgml-mode)
+       (sgml-tags-invisible, sgml-guess-indent):
+       * textmodes/tex-mode.el (tex-common-initialization)
+       (latex-complete-bibtex-keys, tex-shell, tex-main-file)
+       (doctex-mode, plain-tex-mode, latex-mode):
+       * textmodes/texinfo.el (texinfo-mode): Use setq-local.
+
+2012-12-01  Kirk Kelsey  <kirk.kelsey@0x4b.net>
+
+       * vc/vc-hg.el (vc-hg-next-revision):
+       Ensure use of default "tip" output format.  (Bug#6968)
+
+2012-12-01  Kim F. Storm  <storm@cua.dk>
+
+       * startup.el (fancy-startup-tail): Add a clickable link
+       (Bug#2176).
+
+2012-12-01  Chong Yidong  <cyd@gnu.org>
+
+       * startup.el (fancy-startup-tail): Improve the message about
+       auto-save files (Bug#2176).
+
+       * files.el (recover-session): Improve the descriptive message, and
+       use substitute-command-keys.
+
+2012-12-01  Glenn Morris  <rgm@gnu.org>
+
+       * ido.el (ido-file-internal):
+       Handle other-window, other-frame for dired.  (Bug#13036)
+
+2012-11-30  Glenn Morris  <rgm@gnu.org>
+
+       * icomplete.el (icomplete-separator): Fix :version.
+
+2012-11-30  Chong Yidong  <cyd@gnu.org>
+
+       * shell.el (shell): For C-u M-x shell, use an inactive shell
+       buffer as the default (Bug#1975).
+       (shell-apply-ansi-color, shell-reapply-ansi-color): New functions.
+       (shell-mode): Use them to reapply ansi colorization if Shell mode
+       is re-enabled.
+
+2012-11-30  Yuriy Vostrikov  <delamonpansie@gmail.com>  (tiny change)
+
+       * vc/vc-git.el (vc-git-command): Disable the pager (Bug#6137).
+
+2012-11-30  Samuel Bronson  <naesten@gmail.com>
+
+       * progmodes/grep.el (grep-compute-defaults): Do not pass the -e
+       flag to xargs, for compatibility with BSD xargs (Bug#11703).
+
+2012-11-30  Toru TSUNEYOSHI  <t_tuneyosi@hotmail.com>
+
+       * textmodes/fill.el (fill-region-as-paragraph): Handle overshoot
+       by move-to-column (Bug#3234).
+
+2012-11-30  Chong Yidong  <cyd@gnu.org>
+
+       * longlines.el (longlines-wrap-line, longlines-encode-region):
+       Preserve text properties (Bug#1425).
+
+2012-11-30  OKAZAKI Tetsurou  <okazaki.tetsurou@gmail.com>  (tiny change)
+
+       * vc/vc.el (vc-register): Allow registering a file which is
+       already registered with a different backend (Bug#10589).
+
+2012-11-29  Jambunathan K  <kjambunathan@gmail.com>
+            Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * icomplete.el: Change separator; add ido-style commands.
+       (icomplete-show-key-bindings): Remove custom var.
+       (icomplete-get-keys): Remove function.
+       (icomplete-forward-completions, icomplete-backward-completions):
+       New commands.
+       (icomplete-minibuffer-map): New var.
+       (icomplete-minibuffer-setup): Use it.
+       (icomplete-exhibit): Don't delay if the list of completions is known.
+       (icomplete-separator): New custom.
+       (icomplete-completions): Use it.
+       * minibuffer.el (completion-all-sorted-completions): Delete duplicates.
+       (minibuffer-force-complete-and-exit): New command.
+       (minibuffer--complete-and-exit): New function extracted from
+       minibuffer-complete-and-exit.
+       (minibuffer-complete-and-exit): Use it.
+
+       * progmodes/etags.el (visit-tags-table-buffer): Give a more precise
+       error message when the file doesn't exist (bug#12974).
+
+2012-11-29  Kelly Dean  <kellydeanch@yahoo.com>  (tiny change)
+
+       * simple.el (activate-mark): Run activate-mark-hook (bug#13027).
+
+2012-11-29  Glenn Morris  <rgm@gnu.org>
+
+       * files.el (hack-dir-local-variables): Warn if try to set
+       coding via dir-locals, since it doesn't work.  (Bug#7169)
+
+       Add desktop support for restoring vc-dir buffers.  (Bug#10606)
+       * vc/vc-dir.el (vc-dir-mode): Autoload it (for desktop restore).
+       Set buffer-local value of desktop-save-buffer.
+       (vc-dir-desktop-buffer-misc-data, vc-dir-restore-desktop-buffer):
+       New functions.
+       (desktop-buffer-mode-handlers): Add vc-dir-mode entry.
+       * desktop.el (desktop-save-buffer-p): Treat vc-dir like dired.
+
+       * files.el (inhibit-local-variables-ignore-case): New.  (Bug#10610)
+       (inhibit-local-variables-p): Use inhibit-local-variables-ignore-case.
+       Doc fix.
+       (inhibit-local-variables-regexps, inhibit-local-variables-suffixes):
+       Doc fixes.
+
+2012-11-28  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc/calc-forms.el (calc-date-notation): Fix regexp
+       used to find time codes.  Fix symbol for seconds.
+
+2012-11-27  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/derived.el (derived-mode-make-docstring):
+       Don't mention "abbrev" or "syntax" if nil.  (Bug#11277)
+
+2012-11-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * textmodes/table.el (table-insert): Don't use `symbol-name' on
+       lexically scoped variables (bug#13005).
+
+2012-11-27  Glenn Morris  <rgm@gnu.org>
+
+       * vc/vc-hooks.el (vc-mistrust-permissions):
+       Default to t, to avoid data-loss.  (Bug#11490)
+
+2012-11-27  Fabián Ezequiel Gallina  <fgallina@cuca>
+
+       * progmodes/python.el (python-indent-guess-indent-offset):
+       If indentation is guessed make python-indent-offset buffer-local.
+
+       Fix Imenu regression.
+       * progmodes/python.el (python-nav-beginning-of-defun):
+       Fix forward movement when statement(s) separates point from defun.
+       (python-imenu-prev-index-position): New function.
+
+2012-11-27  Eli Zaretskii  <eliz@gnu.org>
+
+       * subr.el (buffer-file-type): Declare with defvar-local.  Doc fix.
+
+       * dos-w32.el (find-file-not-found-set-buffer-file-coding-system):
+       Don't set buffer-file-type.  Return nil.  (Bug#12989)
+
+2012-11-27  Glenn Morris  <rgm@gnu.org>
+
+       * hippie-exp.el (hippie-expand-try-functions-list):
+       Re-autoload it.  (Bug#12982)
+
+2012-11-27  Eli Zaretskii  <eliz@gnu.org>
+
+       * descr-text.el (describe-char-padded-string):
+       Call internal-char-font only on GUI frames.  (Bug#11964)
+
+2012-11-27  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * buff-menu.el (Buffer-menu-buffer+size-width): Fix customize type
+       and obsoletion message.
+
+2012-11-27  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/cl-macs.el (cl--transform-lambda): Add back `declare' in
+       the constructs to keep outside of the `cl-block' (bug#12977).
+
+2012-11-27  Chong Yidong  <cyd@gnu.org>
+
+       * mouse.el (mouse-drag-line): Even if the line is not draggable,
+       keep reading until we get the up-event anyway, in order to process
+       the up-event for mouse-1-click-follows-link (Bug#12971).
+
+2012-11-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/advice.el (ad-should-compile): Don't compile advice if the
+       base function is not yet defined (bug#12965).
+       (ad-activate-advised-definition): Use ad-compile-function.
+       (ad-activate): Use cond.
+
+2012-11-25  Leo Liu  <sdl.web@gmail.com>
+
+       * textmodes/sgml-mode.el (sgml-tag): Fix indentation for closing tag.
+       (Bug#12979)
+
+2012-11-24  Vincent Belaïche  <vincentb1@users.sourceforge.net>
+
+       * textmodes/reftex-parse.el (reftex-parse-from-file): Use variable
+       reftex-section-info-function in order to be compatible with
+       Texinfo integration.
+
+       * textmodes/reftex.el (reftex-section-pre-regexp)
+       (reftex-section-post-regexp, reftex-section-info-function):
+       New variable.
+       (reftex-compile-variables): Use variables reftex-section-pre-regexp,
+       reftex-section-post-regexp, and reftex-section-info-function in order
+       to be compatible with Texinfo integration.
+
+       * textmodes/reftex-toc.el (reftex-toc-promote-action):
+       use reftex-section-pre-regexp variable in order to be compatible with
+       Texinfo integration.
+
+2012-11-25  Chong Yidong  <cyd@gnu.org>
+
+       * faces.el: Make face-spec-set more analogous to setq.
+       (face-spec-set): Change the third arg to specify whether this
+       function is being called via defface, customize, or a third party.
+       Set the appropriate symbol properties.  Clear the override spec if
+       setting via Custom.  Initialize face if necessary.  (Bug#4988)
+       (face-spec-recalc): Allow theme faces to completely replace the
+       defface spec, in the same way as custom faces (Bug#8454).
+
+       * cus-face.el (custom-declare-face): Move face initialization to
+       face-spec-set.
+       (custom-theme-set-faces): Don't initialize the face name here, as
+       that is now done in face-spec-set.
+
+       * cus-edit.el (custom-face-set, custom-face-mark-to-save)
+       (custom-face-reset-saved, custom-face-mark-to-reset-standard):
+       Simplify by using the new arg to face-spec-set.
+
+       * emacs-lisp/lisp-mode.el (eval-defun-1): When evaluating defface,
+       reset face-override-spec too, and use custom-declare-face.
+
+2012-11-24  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * term/ns-win.el (ns-initialize-window-system): Move creation of
+       fontsets here (Bug#11964).
+
+2012-11-24  Vincent Belaïche  <vincentb1@users.sourceforge.net>
+
+       * ses.el (ses-rename-cell): Correct bug on mode-line update after
+       cell renaming.
+
+2012-11-24  Chong Yidong  <cyd@gnu.org>
+
+       * woman.el (woman-default-faces, woman-monochrome-faces): Mark as
+       obsolete.
+
+       * custom.el (custom-theme-set-variables): Use a topological sort
+       for ordering by custom dependencies (Bug#12952).
+       (custom--sort-vars, custom--sort-vars-1): New functions.
+
+2012-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/bytecomp.el (byte-compile-file): Setup default value for
+       lexical-binding (bug#12938).
+
+2012-11-24  Wolfgang Jenkner  <wjenkner@inode.at>
+
+       * image-mode.el (image-transform-check-size): Use assertions only
+       for images of type imagemagick.
+
+       Otherwise no error, image-transform-fit-to-{width,height} is
+       silently ignored, as before.  Doc fix.
+
+2012-11-24  Chong Yidong  <cyd@gnu.org>
+
+       * faces.el (color-defined-p): Doc fix (Bug#12853).
+
+2012-11-24  Juri Linkov  <juri@jurta.org>
+
+       * dired.el (dired-mark): Add optional arg `interactive'.
+       Check for `use-region-p' if `interactive' is non-nil.
+       (dired-unmark, dired-flag-file-deletion): Add optional arg
+       `interactive'.  Call `dired-mark' with the arg `interactive'.
+       (Bug#10624)
+
+       * wdired.el: Revert 2012-10-17 change partly and replace it with
+       Patch by Christopher Schmidt <christopher@ch.ristopher.com>.
+       (wdired-finish-edit): Add marks for new file names to
+       `wdired-old-marks'.  Restore marks using `dired-mark-remembered'
+       after `revert-buffer'.
+       (wdired-do-renames): Remove calls to `dired-remove-file',
+       `dired-add-file', `dired-add-entry'.  (Bug#11795)
+
+2012-11-24  Alan Mackenzie  <acm@muc.de>
+
+       * progmodes/cc-defs.el (c-version): Bump to 5.32.4.
+
+       Fix bugs in the state cache.  Enhance a debugging mechanism.
+       * progmodes/cc-engine.el (c-parse-state-get-strategy): Don't use
+       "brace at column zero" strategy for C++.
+       (c-append-lower-brace-pair-to-state-cache): Repair algorithm.
+       (c-parse-state-point): New variable.
+       (c-record-parse-state-state): Record old parse state with
+       `copy-tree'.  Record previous value of point.
+       (c-debug-parse-state-double-cons): New debugging function.
+       (c-debug-parse-state): Call the above new function.
+       (c-toggle-parse-state-debug): Output a confirmatory message.
+
+       * progmodes/cc-mode.el (c-before-change, c-after-change):
+       Call c-invalidate-state-cache from `c-before-change' instead of
+       `c-after-change'.
+
+2012-11-23  Chong Yidong  <cyd@gnu.org>
+
+       * find-cmd.el (find-constituents): Add executable, ipath,
+       readable, samefile, writable, daystart, regextype (Bug#12856).
+
+2012-11-23  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/ert.el, emacs-lisp/ert-x.el: Use cl-lib and lexical-binding.
+
 2012-11-22  Paul Eggert  <eggert@cs.ucla.edu>
 
        * calc/calc.el (calc-gregorian-switch): Move to after calc-refresh
@@ -5,8 +479,8 @@
        (calc-gregorian-switch): In menu, put dates before regions.
        This is easier to follow, lines up better in the menu, and lets us
        coalesce regions that switch at the same time.  Give country
-       names, not "Vatican", as that's better for non-expert users.  Use
-       names that are stable between the date of switch and now, e.g.,
+       names, not "Vatican", as that's better for non-expert users.
+       Use names that are stable between the date of switch and now, e.g.,
        Bohemia and Moravia (which existed then and now) and not
        Czechoslovakia (which didn't exist then and doesn't exist now).
        What is now the U.S. mostly did not switch at the same time as
 
 2012-11-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+       Calc by default uses the Gregorian calendar for all dates (Bug#12633).
+       It also uses January 1, 1 AD as its day number 1.
        * calc/calc-forms.el (math-julian-date-beginning)
-       (math-julian-date-beginning-int): Implement [new date numbering].
+       (math-julian-date-beginning-int): Implement this.
 
 2012-11-17  Juanma Barranquero  <lekktu@gmail.com>
 
        * dynamic-setting.el (font-setting-change-default-font): Don't
        change the default face if SET-FONT argument is non-nil (Bug#9982).
 
-2012-01-29  Samuel Bronson  <naesten@gmail.com>  (tiny change)
+2012-01-29  Samuel Bronson  <naesten@gmail.com>
 
        * custom.el (defcustom): Add doc link to Lisp manual (Bug#10635).