From: Stefan Monnier Date: Wed, 25 Apr 2012 19:00:18 +0000 (-0400) Subject: Add support for completion of quoted/escaped data. X-Git-Tag: emacs-24.2.90~471^2~273 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dd2ac746d4867e3f2f3ed730a096d310d6ca98e9;p=emacs.git Add support for completion of quoted/escaped data. --- dd2ac746d4867e3f2f3ed730a096d310d6ca98e9 diff --cc lisp/ChangeLog index 55df33b4d30,30d632742bc..eb09afc0b55 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@@ -1,8 -1,40 +1,45 @@@ + 2012-04-25 Stefan Monnier + + * ffap.el: Remove old code for obsolete package. + (ffap-complete-as-file-p): Remove. + + Use completion-table-with-quoting for comint and pcomplete. + * comint.el (comint--unquote&requote-argument) + (comint--unquote-argument, comint--requote-argument): New functions. + (comint--unquote&expand-filename, comint-unquote-filename): Obsolete. + (comint-quote-filename): Use regexp-opt-charset. + (comint--common-suffix, comint--common-quoted-suffix) + (comint--table-subvert): Remove. + (comint-unquote-function, comint-requote-function): New vars. + (comint--complete-file-name-data): Use them with + completion-table-with-quoting. + * pcmpl-unix.el (pcomplete/scp): Use completion-table-subvert. + * pcomplete.el (pcomplete-arg-quote-list) + (pcomplete-quote-arg-hook, pcomplete-quote-argument): Obsolete. + (pcomplete-unquote-argument-function): Default to non-nil. + (pcomplete-unquote-argument): Simplify. + (pcomplete--common-quoted-suffix): Remove. + (pcomplete-requote-argument-function): New var. + (pcomplete--common-suffix): New function. + (pcomplete-completions-at-point): Use completion-table-with-quoting + and completion-table-subvert. + + * minibuffer.el: Use completion-table-with-quoting for read-file-name. + (minibuffer--double-dollars): Preserve properties. + (completion--sifn-requote): New function. + (completion--file-name-table): Rewrite using it and c-t-with-quoting. + + * minibuffer.el: Add support for completion of quoted/escaped data. + (completion-table-with-quoting, completion-table-subvert): New funs. + (completion--twq-try, completion--twq-all): New functions. + (completion--nth-completion): New function. + (completion-try-completion, completion-all-completions): Use it. + +2012-04-25 Leo Liu + - * progmodes/python.el (python-pdbtrack-get-source-buffer): Use - compilation-message if available to find real filename. ++ * progmodes/python.el (python-pdbtrack-get-source-buffer): ++ Use compilation-message if available to find real filename. + 2012-04-25 Chong Yidong * vc/diff-mode.el (diff-setup-whitespace): New function.