summaryrefslogtreecommitdiff
path: root/lisp/comint.el
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes.Paul Eggert2011-12-111-1/+1
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-141-1/+1
|
* * comint.el (comint-get-old-input-default): Fix thinko in last change.Stefan Monnier2011-10-251-1/+1
| | | | Fixes: debbugs:9865
* * lisp/comint.el (comint-get-old-input-default): Fix use-prompt-regexp case.Stefan Monnier2011-10-241-2/+4
| | | | Fixes: debbugs:9865
* * lisp/comint.el (comint-insert-input): Fix last change.Stefan Monnier2011-10-171-3/+4
|
* comint.el: Don't let `insert' break an `input' field into two.Stefan Monnier2011-10-171-7/+5
| | | | | | | | | * lisp/comint.el (comint-insert-input, comint-send-input) (comint-get-old-input-default, comint-backward-matching-input) (comint-next-prompt): Use nil instead of `input' for field property of past user input (bug#114). Fixes: debbugs:9160
* * lisp/comint.el (comint--table-subvert): Quote the all-completions output.Stefan Monnier2011-10-171-5/+7
| | | | Fixes: debbugs:9160
* * lisp/pcmpl-unix.el (pcomplete/scp): Don't assume pcomplete-all-entriesStefan Monnier2011-10-031-38/+41
| | | | | | | | | | | returns a list. Add remote file name completion. * lisp/comint.el (comint--table-subvert): Curry and get quote&unquote functions as arguments. (comint--complete-file-name-data): Adjust call accordingly. * lisp/pcomplete.el (pcomplete--table-subvert): Remove. (pcomplete-completions-at-point): Use comint--table-subvert instead. Fixes: debbugs:9554
* * lisp/pcomplete.el: Require comint.Stefan Monnier2011-10-021-6/+21
| | | | | | | | | | | | | | | (pcomplete--common-suffix): Remove. (pcomplete--common-quoted-suffix): Use comint--common-suffix instead. (pcomplete--table-subvert): Sync with comint--table-subvert. (pcomplete--entries): Use comint-completion-file-name-table. * lisp/comint.el (comint-unquote-filename): Simplify. (comint-completion-file-name-table): New function. (comint--complete-file-name-data): Use it. * src/dired.c (file_name_completion): Don't expand file name. (Ffile_name_completion, Ffile_name_all_completions): Expand file name before checking file name handler. Fixes: debbugs:9616
* * comint.el (comint-password-prompt-regexp): Accept "Response" asLars Magne Ingebrigtsen2011-07-011-1/+1
| | | | | | | | | | | | a password-like phrase. This fixes the [larsi@quimbies ~/]$ ssh root@quimby Password: Response: case.
* * lisp/comint.el (comint-dynamic-complete-as-filename)Andreas Schwab2011-06-061-2/+4
| | | | | (comint-dynamic-complete-filename): Correctly call completion-in-region.
* Add an :exit-function for completion-at-point.Stefan Monnier2011-05-231-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (completion--done): New fun. (completion--do-completion): Use it. New arg `expect-exact'. (minibuffer-complete, minibuffer-complete-word): Don't output message, since completion--do-completion does it for us now. (minibuffer-force-complete): Use completion--done and completion--replace. Handle sole-completion case with more care. (minibuffer-complete-and-exit): Use new `expect-exact' arg. (completion-extra-properties): New var. (completion-annotate-function): Make obsolete. (minibuffer-completion-help): Adjust accordingly. Use completion-list-insert-choice-function. (completion-at-point, completion-help-at-point): Bind completion-extra-properties. (completion-pcm-word-delimiters): Add | (for uniquify, for example). * lisp/simple.el (completion-list-insert-choice-function): New var. (completion-setup-function): Preserve it. (choose-completion): Pay attention to it, shuffle the code a bit. (choose-completion-string): New arg `insert-function'. * lisp/textmodes/bibtex.el: Convert to lexical binding. (bibtex-mode-map): Use completion-at-point. (bibtex-mode): Use define-derived-mode&completion-at-point-functions. (bibtex-completion-at-point-function): New fun, from bibtex-complete. (bibtex-complete): Define as obsolete alias. (bibtex-complete-internal): Remove. (bibtex-format-entry): Remove unused sub-group in regexp. * lisp/shell.el (shell--command-completion-data) (shell-environment-variable-completion): * lisp/pcomplete.el (pcomplete-completions-at-point): * lisp/comint.el (comint--complete-file-name-data): Use :exit-function instead of completion-table-with-terminator so it also works for choose-completion.
* * lisp/shell.el: Use lexical-binding and std completion UI.Stefan Monnier2011-04-201-23/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | (shell-filter-ctrl-a-ctrl-b): Work as a preoutput filter. (shell-mode): Put shell-filter-ctrl-a-ctrl-b on comint-preoutput-filter-functions rather than on comint-output-filter-functions. (shell-command-completion, shell--command-completion-data) (shell-filename-completion, shell-environment-variable-completion) (shell-c-a-p-replace-by-expanded-directory): New functions. (shell-dynamic-complete-functions, shell-dynamic-complete-command) (shell-dynamic-complete-filename, shell-replace-by-expanded-directory) (shell-dynamic-complete-environment-variable): Use them. (shell-dynamic-complete-as-environment-variable) (shell-dynamic-complete-as-command): Remove. (shell-match-partial-variable): Match past point. * lisp/comint.el: Clean up use of completion-at-point-functions. (comint-completion-at-point): New function. (comint-mode): Use it completion-at-point-functions. (comint-dynamic-complete): Make it obsolete. (comint-replace-by-expanded-history-before-point): Add dry-run arg. (comint-c-a-p-replace-by-expanded-history): New function. (comint-dynamic-complete-functions) (comint-replace-by-expanded-history): Use it. * lisp/minibuffer.el (completion-table-with-terminator): Allow dynamic termination strings. Try harder to avoid second try-completion. (completion-in-region-mode-map): Disable bindings that don't work yet.
* * lisp/comint.el: Use lexical-binding. Use std completion UI. Require CL.Stefan Monnier2011-04-201-93/+137
| | | | | | | | | | | | | | | (comint-dynamic-complete-functions): Use comint-filename-completion. (comint-completion-addsuffix): Tweak custom type. (comint-filename-completion, comint--common-suffix) (comint--common-quoted-suffix, comint--table-subvert) (comint--complete-file-name-data): New functions. (comint-dynamic-complete-as-filename, comint-dynamic-complete-filename) (comint-dynamic-list-filename-completions): Use them. (comint-dynamic-simple-complete): Make obsolete. * lisp/minibuffer.el (completion-in-region-mode): Keep completion-in-region-mode--predicate global. (completion-in-region--postch): Assume completion-in-region-mode--predicate is not null.
* lisp/*.el: Lexical-binding cleanup.Juanma Barranquero2011-04-191-6/+6
|
* First step towards using standard completion in comint.Stefan Monnier2011-03-241-23/+25
| | | | | | | | | | | | | | * lisp/minibuffer.el (completion--flush-all-sorted-completions): Remove itself from hook. (completion-at-point): Let the functions perform the completion immediately and return nil or t. * lisp/comint.el (comint-dynamic-complete-functions): Now identical to completion-at-point-functions. (comint-dynamic-list-input-ring): Remove unused var `index'. (comint--match-partial-filename, comint--unquote&expand-filename): New funs, split from comint-match-partial-filename. (comint-dynamic-complete): Use completion-at-point. (comint-dynamic-complete-filename): Use comint--match-partial-filename.
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-3/+1
|
* Merge from emacs-23.Glenn Morris2011-01-241-2/+3
|\ | | | | | | Note setting of CANNOT_DUMP on ia64 hpux is still to be merged manually.
| * * lisp/comint.el (comint-mode): Doc fix. (Bug#7897)Glenn Morris2011-01-241-3/+3
| |
* | Merge from emacs-23Glenn Morris2011-01-221-1/+3
|\|
| * * lisp/comint.el (comint-replace-by-expanded-history-before-point): FixRoland McGrath2011-01-211-1/+3
| | | | | | | | | | | | expansion of !$ and !!:N syntax to pick the indicated word. Fixes: debbugs:7883
* | Don't mess with *temp*.Stefan Monnier2011-01-201-32/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/obsolete/spell.el: Move from textmodes/spell.el. (spell-string): * lisp/term.el (term-read-input-ring): * lisp/startup.el (display-startup-echo-area-message): * lisp/progmodes/antlr-mode.el (antlr-directory-dependencies): * lisp/gnus/message.el (message-mailer-swallows-blank-line): * lisp/comint.el (comint-read-input-ring): Use with-temp-buffer. * lisp/international/mule.el (ctext-pre-write-conversion): Don't hardcode point-min==1. * lisp/gnus/mm-util.el (mm-find-buffer-file-coding-system): Don't forget to kill the temp buffer.
* | Refill some copyright headers.Glenn Morris2011-01-151-3/+3
| |
* | Merge from emacs-23Stefan Monnier2011-01-141-3/+3
|\|
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | * lisp/comint.el (comint-highlight-prompt): Inherit from minibuffer-prompt.Chong Yidong2011-01-091-3/+1
| |
* | Merge from emacs-23Stefan Monnier2010-12-131-18/+19
|\|
| * Doc fixes for comint functions (Bug#7499).Chong Yidong2010-12-041-18/+19
| | | | | | | | | | | | | | | | | | * lisp/comint.el (comint-dynamic-list-input-ring) (comint-dynamic-complete-filename) (comint-replace-by-expanded-filename) (comint-dynamic-simple-complete) (comint-dynamic-list-filename-completions) (comint-dynamic-list-completions): Doc fix (Bug#7499).
* | * lisp/comint.el (comint-input-ring-file-name): Doc fix.Glenn Morris2010-12-091-2/+2
| |
* | Merge from emacs-23Stefan Monnier2010-11-171-0/+1
|\|
| * * comint.el (comint-kill-region): Fix last change.Stefan Monnier2010-11-171-1/+1
| |
| * Make the yank-handler argument obsolete.Stefan Monnier2010-11-171-0/+1
| | | | | | | | | | * simple.el (kill-new, kill-append, kill-region): * comint.el (comint-kill-region): Make the yank-handler argument obsolete.
| * Fix bug#7224.Glenn Morris2010-10-231-1/+2
| | | | | | | | * lisp/comint.el (comint-password-prompt-regexp): Match "enter the password".
* | * lisp/comint.el (comint-password-prompt-regexp): Make it less vague.Glenn Morris2010-10-231-5/+7
| | | | | | | | | | | | | | | | | | Bump custom version. The initial regexp-opt was bracketed by \\( \\)?, so it might as well have not been there at all. This change makes it non-optional, and adds back "^". Hopefully the behaviour is now closer to that of emacs-23, before it was re-written in http://debbugs.gnu.org/2817.
* | Remove some functions, variables and aliases obsolete since at least 21.1.Glenn Morris2010-10-011-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/misc/misc.texi (Shell Mode): Remove reference to old function name. * src/character.c (Fchar_bytes): Remove obsolete function. (syms_of_character): Remove Schar_bytes. * lisp/subr.el (char-bytes): Remove obsolete function. * lisp/emacs-lisp/checkdoc.el (checkdoc-minor-keymap): Remove obsolete alias. * lisp/isearch.el (isearch-return-char): Remove obsolete function. * lisp/mouse.el: No longer provide mldrag. (mldrag-drag-mode-line, mldrag-drag-vertical-line): Remove obsolete aliases. * lisp/comint.el (comint-kill-output): Remove obsolete alias. * lisp/shell.el: Comment fix. * lisp/composite.el (decompose-composite-char): Remove obsolete function. * lisp/ps-def.el (decompose-composite-char): Remove unused function. * lisp/iswitchb.el (iswitchb-default-keybindings): Remove obsolete function. * lisp/outline.el (outline-visible): Remove obsolete function. * lisp/term/pc-win.el (x-frob-font-slant, x-frob-font-weight): * lisp/faces.el (internal-find-face, internal-get-face) (frame-update-faces, frame-update-face-colors) (x-frob-font-weight, x-frob-font-slant) (internal-frob-font-weight, internal-frob-font-slant) (x-make-font-bold, x-make-font-demibold, x-make-font-unbold) (x-make-font-italic, x-make-font-oblique, x-make-font-unitalic) (x-make-font-bold-italic): Remove functions and aliases, obsolete since Emacs 21.1. * lisp/emulation/viper-util.el (viper-get-face): * lisp/obsolete/lucid.el (find-face, get-face): Use facep. * lisp/vc/ediff-init.el (ediff-valid-color-p, ediff-get-face): Remove unused functions. * lisp/vc/ediff-util.el (ediff-submit-report): Doc fix. * etc/NEWS: Mention above changes.
* | Tiny comint.el change.Glenn Morris2010-09-231-8/+6
| | | | | | | | | | * lisp/comint.el (comint-use-prompt-regexp-instead-of-fields): Move alias before definition, so it does not need autoloading.
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | * comint.el (comint-mode): Make directory tracking functionsMichael Albinus2010-08-061-0/+3
| | | | | | | | functional on remote files. (Bug#6764)
* | Merge changes from emacs-23 branch.Chong Yidong2010-07-101-2/+6
|\|
| * Doc fix.Štěpán Němec2010-06-231-2/+6
| | | | | | | | | | * lisp/comint.el (make-comint, make-comint-in-buffer): Mention return value in the docstrings. (Bug#6498)
* | Fix for comint-password-prompt-regexp (Bug#6367).Chong Yidong2010-06-111-1/+1
| | | | | | | | | | | | | | * lisp/comint.el (comint-password-prompt-regexp): Fix 2010-04-10 change (Bug#6367). * comint-testsuite.el: New file.
* | Remove obsolete comment.Juri Linkov2010-05-211-1/+0
| |
* | Update comint-password-prompt-regexp (Bug#2817).Chong Yidong2010-04-101-5/+11
|/ | | | | * comint.el (comint-password-prompt-regexp): Use regexp-opt, and recognize ssh-keygen prompt (Bug#2817).
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* * comint.el (comint-input-ring-size): Make it a defcustom andChong Yidong2010-01-011-2/+5
| | | | increase the default to 500.
* Don't lazy-highlight the comint output in history Isearch mode.Juri Linkov2009-12-071-5/+5
| | | | | | | * 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.
* (comint-insert-input): Ignore clicks to the right ofStefan Monnier2009-12-011-1/+4
| | | | the field. Reported by Bob Nnamtrop <bobnnamtrop@gmail.com>.
* (comint-mode-map): Rebind `M-r' fromJuri Linkov2009-11-301-6/+6
| | | | | | | | `comint-previous-matching-input' to `comint-history-isearch-backward-regexp'. Unbind `M-s' to allow global key binding `M-s'. Add menu items for `comint-history-isearch-backward' and `comint-history-isearch-backward-regexp'. (Bug#3746)