* lisp/emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to
[bpt/emacs.git] / lisp / ChangeLog
index 781e0e2..f324ebb 100644 (file)
@@ -1,3 +1,388 @@
+2013-01-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/nadvice.el (advice--tweak): Make it possible for `tweak'
+       to return an explicit nil.
+       (advice--remove-function): Change accordingly.
+
+       * emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to
+       the use of nadvice.el.
+
+       * progmodes/which-func.el (which-function): Silence imenu errors
+       (bug#13433).
+
+2013-01-15  Michael R. Mauger  <mmaug@yahoo.com>
+
+       * progmodes/sql.el: (sql-imenu-generic-expression):
+       (sql-mode-font-lock-object-name): Match schema qualified names.
+       (sql-connect): Use string keys.
+       (sql-product-interactive): Wait for interpreter prompt.
+       (sql-comint-oracle): Set process coding based on NLS_LANG.
+
+2013-01-15  Michael R. Mauger  <mmaug@yahoo.com>
+
+       * progmodes/sql.el (sql-output-to-send): Remove, unused.
+       (sql-interactive-remove-continuation-prompt):
+       (sql-send-magic-terminator, sql-interactive-mode): Remove references.
+
+2013-01-14  Leo Liu  <sdl.web@gmail.com>
+
+       * calendar/calendar.el (calendar-redraw): Sync window-point and point.
+       (Bug#13420)
+
+2013-01-14  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/compile.el (compilation-error-regexp-alist-alist):
+       Fix interpretation of gnu line.col1-col2 format.  (Bug#13335)
+
+2013-01-13  Fabián Ezequiel Gallina  <fgallina@cuca>
+
+       * progmodes/python.el (python-nav-end-of-statement):
+       Fix cornercase when handling multiline strings.
+
+2013-01-13  Richard Stallman  <rms@gnu.org>
+
+       * mail/sendmail.el (mail-position-on-field): Add doc string.
+
+       * mail/rmailmm.el (rmail-insert-mime-forwarded-message):
+       Get current message boundaries and pass them to
+       message-forward-make-body-mime.  Minor style changes.
+
+2013-01-13  Eli Zaretskii  <eliz@gnu.org>
+
+       * cus-start.el (all): Avoid warnings about
+       scroll-bar-adjust-thumb-portion on platforms where it is not defined.
+
+2013-01-11  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * cus-start.el (all): Add scroll-bar-adjust-thumb-portion.
+
+2013-01-13  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * jit-lock.el (jit-lock-debug-mode): New minor mode.
+       (jit-lock--debug-fontifying): New var.
+       (jit-lock--debug-fontify): New function.
+       * subr.el (condition-case-unless-debug): Don't prevent catching the
+       error, just let the debbugger run.
+       * emacs-lisp/timer.el (timer-event-handler): Don't prevent debugging
+       timer code and don't drop errors silently.
+
+2013-01-12  Michael Albinus  <michael.albinus@gmx.de>
+
+       * autorevert.el (auto-revert-notify-watch-descriptor): Give it
+       `permanent-local' property.
+       (auto-revert-notify-handler): Use `file-equal-p'.
+
+2013-01-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * autorevert.el (auto-revert-notify-handler): Fix filtering of
+       file notification by ACTION. For filtering by file name, compare
+       only the non-directory part of the file name.
+
+2013-01-12  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * autorevert.el: Use cl-lib instead of cl.
+
+       * vc/vc-bzr.el (vc-bzr--sanitize-header): New function (bug#13307).
+       (vc-bzr-checkin): Use it.
+       * vc/log-edit.el (log-edit-extract-headers): Don't presume FUNCTION
+       will preserve match-data.
+
+2013-01-11  Felix H. Dahlke  <fhd@ubercode.de>
+
+       * progmodes/js.el: Fix multiline declarations's indentation (bug#8576).
+       (js--declaration-keyword-re): New var.
+       (js--multi-line-declaration-indentation): New function.
+       (js--proper-indentation): Use it.
+
+2013-01-11  Aaron S. Hawley  <Aaron.Hawley@vtinfo.com>
+
+       * calc/calc.el (calc-highlight-selections-with-faces)
+        (calc-dispatch):
+       * comint.el (comint-history-isearch-message):
+       * emacs-lisp/edebug.el (edebug-read, edebug-eval-defun):
+       * ffap.el (ffap-string-at-point-region, ffap-next)
+       (ffap-string-at-point, ffap-string-around)
+       (ffap-copy-string-as-kill, ffap-highlight-overlay)
+       (ffap-literally):
+       * font-lock.el (font-lock-keywords-alist)
+       (font-lock-removed-keywords-alist):
+       * help-mode.el (help-xref-symbol-regexp):
+       * info.el (Info-find-emacs-command-nodes):
+       * international/mule.el (add-to-coding-system-list):
+       * isearch.el (isearch-message-function, isearch-fail-pos):
+       * misearch.el (multi-isearch-next-buffer-function):
+       * newcomment.el (comment-box):
+       * printing.el (pr-txt-printer-alist, pr-ps-printer-alist)
+       (pr-setting-database):
+       * progmodes/cc-fonts.el (c-font-lock-keywords-3)
+       (c++-font-lock-keywords-3, objc-font-lock-keywords-3)
+       (java-font-lock-keywords-3, idl-font-lock-keywords-3)
+       (pike-font-lock-keywords-3):
+       * progmodes/compile.el (compile):
+       * progmodes/etags.el (tags-table-files)
+       (tags-table-files-function, tags-included-tables-function):
+       * progmodes/gdb-mi.el (gdb, gdb-setup-windows)
+       (gdb-restore-windows):
+       * ps-print.el (ps-even-or-odd-pages, ps-spool-buffer-with-faces)
+       (ps-n-up-filling-database):
+       * server.el (server-buffer, server-log):
+       * simple.el (newline, delete-backward-char, delete-forward-char)
+       (minibuffer-history-isearch-message, kill-line, track-eol)
+       (temporary-goal-column):
+       * textmodes/flyspell.el (flyspell-mark-duplications-flag)
+       (flyspell-default-deplacement-commands):
+       * textmodes/ispell.el (ispell-accept-output):
+       * textmodes/sgml-mode.el (html-tag-help):
+       * vc/compare-w.el (compare-ignore-whitespace)
+       (compare-ignore-case, compare-windows-dehighlight):
+       * vc/diff.el (diff):
+       * whitespace.el (whitespace-point)
+       (whitespace-font-lock-refontify, whitespace-bob-marker)
+       (whitespace-eob-marker): Fix ambiguous doc string cross-reference(s).
+
+2013-01-11  Michael Albinus  <michael.albinus@gmx.de>
+
+       * autorevert.el (top): Require 'cl in order to pacify byte compiler.
+       (auto-revert-notify-rm-watch): Ignore errors.
+       (auto-revert-notify-add-watch): Ignore errors.  Use '(modify) for
+       inotify, and '(size last-write-time) for w32notify.
+       Set buffer-local `auto-revert-use-notify' to nil when adding a file
+       watch fails - this is a fallback to the file modification check.
+       (auto-revert-notify-event-p, auto-revert-notify-event-descriptor)
+       (auto-revert-notify-event-action)
+       (auto-revert-notify-event-file-name): New defuns.
+       (auto-revert-notify-handler): Use them.  Implement first
+       plausibility checks.
+       (auto-revert-handler): Handle also `auto-revert-tail-mode'.
+
+2013-01-11  Julien Danjou  <julien@danjou.info>
+
+       * color.el (color-rgb-to-hsv): Fix conversion computing in case min and
+       max are almost equal. Also return the correct value for V which is
+       already between 0 and 1.
+
+2013-01-11  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * emacs-lisp/ert.el (ert-run-test): Use point-max-marker.
+
+2013-01-11  Eli Zaretskii  <eliz@gnu.org>
+
+       * autorevert.el (auto-revert-notify-rm-watch)
+       (auto-revert-notify-add-watch): Fix typos in w32notify function
+       names.
+
+2013-01-10  Michael Albinus  <michael.albinus@gmx.de>
+
+       * autorevert.el (auto-revert-notify-enabled): Move up.
+       (auto-revert-use-notify): New defcustom.
+       (auto-revert-mode, global-auto-revert-mode)
+       (auto-revert-notify-add-watch, auto-revert-handler)
+       (auto-revert-buffers): Use `auto-revert-use-notify' instead of
+       `auto-revert-notify-enabled'.
+
+2013-01-10  Elias Pipping  <pipping@exherbo.org>
+
+       * files.el (auto-mode-alist): Use doc-view for djvu files (bug#13164).
+       * doc-view.el (doc-view-document->bitmap):
+       Use doc-view-single-page-converter-function instead of
+       single-page-converter arg; adjust callers.
+
+2013-01-10  Feng Li  <fengli@gmail.com>  (tiny change)
+
+       * progmodes/which-func.el (which-function): Understand Semantic's use
+       of overlays in imenu--index-alist.
+
+2013-01-10  Wolfgang Jenkner  <wjenkner@inode.at>
+
+       * man.el: Handle different "man -k" behaviors (bug#13160).  Use utf-8.
+       (Man-man-k-use-anchor): New var.
+       (Man-parse-man-k): New function.
+       (Man-completion-table): Use it.
+       (man): Flush the completion cache between uses.
+
+2013-01-10  Michael Albinus  <michael.albinus@gmx.de>
+
+       * autorevert.el: Add file watch support.
+       (auto-revert-notify-enabled): New defconst.
+       (auto-revert-notify-watch-descriptor-hash-list)
+       (auto-revert-notify-watch-descriptor)
+       (auto-revert-notify-modified-p): New defvars.
+       (auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
+       (auto-revert-notify-handler): New defuns.
+       (auto-revert-mode, global-auto-revert-mode): Remove file watches
+       when mode is disabled.
+       (auto-revert-handler): Check for `auto-revert-notify-modified-p'.
+       (auto-revert-buffers): Add file watches for active buffers.
+
+2013-01-10  Dmitry Antipov  <dmantipov@yandex.ru>
+
+       * cus-start.el (toplevel): Only allow float values for
+       scroll-up-aggressively and scroll-down-aggressively.
+       Allow any number for line-spacing.
+
+2013-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * doc-view.el (doc-view-pdfdraw-program): Allow "pdfdraw" name.
+       (doc-view-pdf->png-converter-function): Use mupdf if available.
+       (doc-view-djvu->png-converter-function)
+       (doc-view-ps->png-converter-function): Remove.
+       (doc-view--image-file-pattern): Replace doc-view--image-file-extension.
+       (doc-view-goto-page, doc-view-convert-current-doc, doc-view-display)
+       (doc-view-already-converted-p): Adjust accordingly.
+       (doc-view-mode-p): Simplify.
+       (doc-view-enlarge): Use setq-local.
+       (doc-view-pdf->png-converter-ghostscript)
+       (doc-view-djvu->png-converter-ddjvu)
+       (doc-view-pdf->png-converter-mupdf): Rework to call
+       doc-view-start-process directly.
+       (doc-view-pdf/ps->png): Simplify accordingly.
+       (doc-view-pdf->png-1, doc-view-djvu->png-1): Remove.
+       (doc-view-document->bitmap): Rename from doc-view-document->png.
+       (doc-view-convert-current-doc): Merge pdf and djvu cases.
+       (doc-view-set-slice-from-bounding-box): Fix completion table.
+       (doc-view-mode): Use add-hook for after-revert-hook.
+
+2013-01-10  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/authors.el (authors-ignored-files)
+       (authors-valid-file-names, authors-renamed-files-alist):
+       Add some more entries.
+
+2013-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * image-mode.el (image-mode-winprops): Don't throw away the fallback
+       `t' pseudo-window entry.
+
+2013-01-10  Alan Mackenzie  <acm@muc.de>
+
+       Fix bugs in the c-parse-state mechanism.  Reuse some markers
+       instead of continually generating new ones.
+
+       * progmodes/cc-engine.el (c-state-old-cpp-beg-marker)
+       (c-state-old-cpp-end-marker): New variables.
+       (c-append-lower-brace-pair-to-state-cache): Start a backward
+       search for "}" definitively outside CPP constructs.
+       (c-remove-stale-state-cache): Inform the caller of a need to
+       search back for a brace pair in certain circumstances.
+       (c-state-maybe-marker): New macro.
+       (c-parse-state): Reuse markers when appropriate.
+
+2013-01-10  Glenn Morris  <rgm@gnu.org>
+
+       * simple.el (execute-extended-command): Doc fix.
+       Bind prefix-arg around read-extended-command, for prompt.  (Bug#13395)
+
+2013-01-10  Chong Yidong  <cyd@gnu.org>
+
+       * faces.el (read-face-name): Doc fix.
+
+2013-01-10  Roland Winkler  <winkler@gnu.org>
+
+       * emacs-lisp/crm.el: Allow any regexp for separators.
+       (crm-default-separator): All spaces around the default comma separator.
+       (crm--completion-command): New macro.
+       (crm-completion-help, crm-complete, crm-complete-word): Use it.
+       (crm-complete-and-exit): Handle non-single-char separators.
+
+2013-01-09  Elias Pipping  <pipping@lavabit.com>
+
+       * doc-view.el: Add support for DjVu (bug#13164).
+       (doc-view-djvu->png-converter-function): New config var.
+       (doc-view-single-page-converter-function, doc-view--image-type)
+       (doc-view--image-file-extension): New vars.
+       (doc-view-mode): Initialize them.
+       (doc-view-goto-page): Use them.
+       (doc-view-mode-p): Add support for ddjvu.
+       (doc-view-djvu->png-converter-ddjvu, doc-view-djvu->png-1)
+       (doc-view-set-up-single-converter): New funs.
+       (doc-view-pdf/ps->png): Extend for djvu.
+       (doc-view-document->png): Rename from doc-view-pdf->png.
+       (doc-view-convert-current-doc): Handle djvu.
+       (doc-view-insert-image, doc-view-display)
+       (doc-view-already-converted-p): Don't hardcode png.
+       (doc-view-set-doc-type): Recognize djvu docs.
+
+2013-01-09  Elias Pipping  <pipping@lavabit.com>
+
+       * doc-view.el: Add support for mupdf converter (bug#13164).
+       (doc-view-pdfdraw-program, doc-view-pdf->png-converter-function)
+       (doc-view-ps->png-converter-function): New config vars.
+       (doc-view-pdf->png-converter-ghostscript)
+       (doc-view-ps->png-converter-ghostscript)
+       (doc-view-pdf->png-converter-mupdf): New functions.
+       (doc-view-pdf/ps->png, doc-view-pdf->png-1): Use them.
+
+2013-01-09  Jürgen Hötzel  <juergen@archlinux.org>
+
+       * net/tramp.el (tramp-eshell-directory-change): Check remote-path
+       first in session cache: When `tramp-own-remote-path' is in
+       `tramp-remote-path', the remote path is only set in the session
+       cache.
+
+2013-01-09  Glenn Morris  <rgm@gnu.org>
+
+       * emacs-lisp/trace.el (trace-function-foreground)
+       (trace-function-background): Doc fix.
+
+2013-01-09  Juri Linkov  <juri@jurta.org>
+
+       * international/mule-cmds.el (read-char-by-name): Move let-binding
+       of completion-ignore-case around completing-read to fix regression
+       exhibited by the test case `C-x 8 RET *acc TAB' and caused by
+       `string-match-p' using the nil value of `case-fold-search' and
+       `completion-ignore-case' in `completion-pcm--all-completions'.
+       (Bug#12615).
+
+2013-01-09  Glenn Morris  <rgm@gnu.org>
+
+       * progmodes/compile.el (compilation-parse-errors):
+       Fix typo.  (Bug#13369)
+
+2013-01-09  Vitalie Spinu  <spinuvit@gmail.com>  (tiny change)
+
+       * comint.el (comint-send-input): Check size of buffer before
+       waiting for process output, in case already accepted.  (Bug#13290)
+
+2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Spelling fixes.
+       * net/tramp-adb.el (tramp-adb-get-toolbox):
+       Fix misspelling of 'unknown'.
+
+2013-01-08  Juri Linkov  <juri@jurta.org>
+
+       * textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate):
+       * progmodes/flymake.el (flymake-errline, flymake-warnline):
+       Use underline style wave on terminals that support it.  (Bug#13000)
+
+2013-01-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * emacs-lisp/pcase.el (pcase--split-equal): Also take advantage if
+       the predicate returns nil.
+
+       * simple.el: Use lexical-binding.
+       (primitive-undo): Use pcase.
+       (minibuffer-history-isearch-push-state): Use a closure.
+
+2013-01-08  Aaron S. Hawley  <aaron.s.hawley@gmail.com>
+
+       * simple.el (primitive-undo): Move from undo.c.
+
+2013-01-08  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * vc/pcvs.el (cvs-cleanup-collection): Extend meaning of `rm-handled'.
+       (cvs-mode-remove-handled): Use it (bug#13380).
+
+       * emacs-lisp/nadvice.el (advice--tweak): New function.
+       (advice--remove-function, advice--subst-main): Use it.
+
+       * emacs-lisp/advice.el: Update commentary.
+
+2013-01-08  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-adb.el (tramp-adb-file-name-handler-alist):
+       Remove spurious entry.
+
 2013-01-08  Glenn Morris  <rgm@gnu.org>
 
        * net/tramp.el (tramp-default-host-alist): Add :version.
 
 2013-01-07  Bastien Guerry  <bzg@gnu.org>
 
-       * menu-bar.el (menu-bar-search-documentation-menu): Use
-       `apropos-user-option' and fix the help message.
+       * menu-bar.el (menu-bar-search-documentation-menu):
+       Use `apropos-user-option' and fix the help message.
 
 2013-01-07  Bastien Guerry  <bzg@gnu.org>
 
 
        * net/tramp-adb.el (tramp-adb-get-ls-command): New defun.
        Suppress coloring, if possible (required for BusyBox based systems like
-       CynagenMod).
+       CyanogenMod).
        (tramp-adb-handle-file-attributes)
        (tramp-adb-handle-insert-directory)
        (tramp-adb-handle-file-name-all-completions): Use it.
 
 2012-08-08  Fabián Ezequiel Gallina  <fgallina@cuca>
 
-       * progmodes/python.el Fixed defsubst warning.
+       * progmodes/python.el: Fix defsubst warning.
        (python-syntax-context) Rename from python-info-ppss-context.
        (python-syntax-context-type): Rename from
        python-info-ppss-context-type.
 
 2012-03-16  Alan Mackenzie  <acm@muc.de>
 
-       Further optimise the handling of large macros.
+       Further optimize the handling of large macros.
 
        * progmodes/cc-engine.el (c-crosses-statement-barrier-p): Use a
        limit to a call of `c-literal-limits'.
 
 2012-01-08  Alan Mackenzie  <acm@muc.de>
 
-       Optimise font locking in long enum definitions.
+       Optimize font locking in long enum definitions.
 
        * progmodes/cc-fonts.el (c-font-lock-declarations): Add an extra
        arm to a cond form to handle enums.