1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00
Commit Graph

410 Commits

Author SHA1 Message Date
Juri Linkov
0d62bcea27 Implement Isearch in comint input history. (Bug#3746)
* comint.el (comint-mode): Add `comint-history-isearch-setup' to
`isearch-mode-hook'.
(comint-history-isearch): New defcustom.
(comint-history-isearch-backward)
(comint-history-isearch-backward-regexp): New commands.
(comint-history-isearch-message-overlay): New buffer-local variable.
(comint-history-isearch-setup, comint-history-isearch-end)
(comint-goto-input, comint-history-isearch-search)
(comint-history-isearch-message, comint-history-isearch-wrap)
(comint-history-isearch-push-state)
(comint-history-isearch-pop-state): New functions.
2009-11-23 20:30:33 +00:00
Dan Nicolaescu
aaa448c984 * widget.el (define-widget): Purecopy the docstring.
* international/mule-cmds.el (charset): Do not purecopy the
docstring here, define-widget does it.

* textmodes/texinfo.el (texinfo-open-quote, texinfo-close-quote):
* textmodes/bibtex-style.el (auto-mode-alist):
* progmodes/inf-lisp.el (inferior-lisp-prompt):
* progmodes/compile.el (compile-command):
* language/korea-util.el (default-korean-keyboard):
* international/mule-conf.el (file-coding-system-alist):
* emacs-lisp/eldoc.el (eldoc-minor-mode-string):
* tooltip.el (tooltip-frame-parameters):
* newcomment.el (comment-end, comment-padding):
* dired.el (dired-trivial-filenames):
* comint.el (comint-file-name-prefix): Purecopy initial values.
2009-11-11 19:24:20 +00:00
Chong Yidong
5b95556284 * comint.el (comint-replace-by-expanded-history-before-point):
Replace !! with the previous input string literally (Bug#1795).
2009-11-03 00:39:10 +00:00
Glenn Morris
6c74d52320 (comint-dynamic-list-completions): Use choose-completion rather than
obsolete alias mouse-choose-completion.
2009-10-24 03:50:20 +00:00
Stefan Monnier
3170b79459 (comint-read-input-ring, comint-write-input-ring)
(comint-substitute-in-file-name)
(comint-dynamic-complete-as-filename)
(comint-dynamic-simple-complete)
(comint-dynamic-list-filename-completions)
(comint-dynamic-list-completions)
(comint-redirect-results-list-from-process): Minor simplifications.
2009-10-22 03:24:31 +00:00
Stefan Monnier
d5e637154f Replace completion-base-size by completion-base-position to fix bugs
such as (bug#4699).
* simple.el (completion-base-position): New var.
(completion-base-size): Mark as obsolete.
(choose-completion): Make it work for mouse events as well.
Pass the new base-position to choose-completion-string.
(choose-completion-guess-base-position): New function, extracted from
choose-completion-delete-max-match.
(choose-completion-delete-max-match): Use it.  Make obsolete.
(choose-completion-string): Use the new base-position info.
(completion-root-regexp): Delete.
(completion-setup-function): Preserve completion-base-position.
Eliminate obsolete base-size manipulation.
* minibuffer.el (display-completion-list): Don't mess with base-size.
(minibuffer-completion-help): Set completion-base-position instead.
* mouse.el (mouse-choose-completion): Redefine as a mere alias to
choose-completion.
* textmodes/bibtex.el (bibtex-complete):
* emacs-lisp/crm.el (crm--choose-completion-string):
Adjust to new calling convention.
* complete.el (partial-completion-mode): Use minibufferp to avoid
bumping into incompatible change to choose-completion-string-functions.
* ido.el (ido-choose-completion-string): Make its calling convention
more permissive.
* comint.el (comint-dynamic-list-input-ring-select): Remove obsolete
base-size manipulation.
(comint-dynamic-list-input-ring): Use dotimes and push.
* iswitchb.el (iswitchb-completion-help): Remove dead-code call to
fundamental-mode.  Use `or'.
2009-10-15 01:50:17 +00:00
Juanma Barranquero
32226619c5 Use called-interactively-p' instead of interactive-p'. 2009-10-02 03:48:36 +00:00
Chong Yidong
21289c5dad * comint.el (comint-exec, comint-run, make-comint): Doc
fixes (Bug#4542).
2009-09-25 03:42:22 +00:00
Nick Roberts
c7d6ddf067 (comint-exec-1): Check command is non-null first.
Part of gdb-mi.el change (2009-08-28).
2009-08-30 22:24:05 +00:00
Stefan Monnier
0aeb71a7e2 (comint-insert-input): Be careful to only set point if we
don't delegate to some other command.
2009-08-30 05:10:22 +00:00
Glenn Morris
b6a44b279c (comint-insert-input): Doc fix. 2009-06-23 07:25:12 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
7ed216d669 (comint-save-input-ring-index): Add missing initial value. 2008-12-20 03:26:00 +00:00
Lute Kamstra
9201cc281b * align.el:
* allout.el:
* apropos.el:
* arc-mode.el:
* autoinsert.el:
* avoid.el:
* battery.el:
* bookmark.el:
* buff-menu.el:
* calculator.el:
* chistory.el:
* cmuscheme.el:
* comint.el:
* compare-w.el:
* dabbrev.el:
* delim-col.el:
* desktop.el:
* diff-mode.el:
* diff.el:
* dired-aux.el:
* dired-x.el:
* dired.el:
* dos-vars.el:
* ediff-diff.el:
* ediff-help.el:
* ediff-init.el:
* ediff-merg.el:
* ediff-mult.el:
* ediff-ptch.el:
* ediff-vers.el:
* ediff-wind.el:
* ediff.el:
* emerge.el:
* facemenu.el:
* faces.el:
* ffap.el:
* filecache.el:
* find-dired.el:
* font-core.el:
* font-lock.el:
* forms.el:
* fringe.el:
* help-at-pt.el:
* hippie-exp.el:
* ido.el:
* image-file.el:
* imenu.el:
* indent.el:
* info.el:
* isearchb.el:
* iswitchb.el:
* jit-lock.el:
* jka-compr.el:
* log-edit.el:
* lpr.el:
* ls-lisp.el:
* man.el:
* menu-bar.el:
* midnight.el:
* mouse-sel.el:
* mouse.el:
* msb.el:
* outline.el:
* paren.el:
* pcmpl-cvs.el:
* pcmpl-gnu.el:
* pcomplete.el:
* pcvs-info.el:
* pcvs-parse.el:
* printing.el:
* ps-mule.el:
* ps-print.el:
* replace.el:
* ruler-mode.el:
* saveplace.el:
* sb-image.el:
* scroll-bar.el:
* sha1.el:
* shadowfile.el:
* shell.el:
* sort.el:
* speedbar.el:
* strokes.el:
* tempo.el:
* term.el:
* terminal.el:
* time-stamp.el:
* time.el:
* tree-widget.el:
* type-break.el:
* vc-cvs.el:
* vc-hg.el:
* vc-mcvs.el:
* vc-rcs.el:
* vc-sccs.el:
* vc.el:
* view.el:
* w32-vars.el:
* whitespace.el:
* wid-edit.el: Remove leading * from docstrings of defcustoms,
deffaces, defconsts and defuns.
2008-12-03 05:48:14 +00:00
Romain Francoise
ddee160471 (comint-show-output): Adjust to stickiness changes of the output field. 2008-09-28 16:56:48 +00:00
Chong Yidong
96342238b6 (comint-dynamic-complete-as-filename): Quote directory name when
reinserting it.
2008-09-25 19:26:03 +00:00
Miles Bader
9d8efa3aab (comint-output-filter): Make output field properties front-sticky
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1420
2008-09-19 00:37:30 +00:00
Chong Yidong
6f214f6705 (comint-dynamic-list-filename-completions): Quote common substring. 2008-08-27 17:14:32 +00:00
Chong Yidong
6294095849 (comint-dynamic-complete-as-filename): Generalize last change to allow
quoting of characters before point.
2008-08-27 17:04:34 +00:00
Chong Yidong
4ecc814eaf (comint-dynamic-complete-as-filename): If case is ignored while
matching, replace the entire filename with completion.
2008-08-26 23:49:01 +00:00
Stefan Monnier
ec4e0abcd2 * progmodes/compile.el (compilation-start): Don't disable undo in
comint buffer.  Don't override the comint-filter with our own.
(compilation-filter): Change point's insertion-type.
* comint.el (comint-output-filter): Use copy-marker.
2008-06-13 16:22:16 +00:00
Stefan Monnier
a1562258dc * window.c (Vwindow_point_insertion_type): New var.
(set_window_buffer): Use it.
(syms_of_window): Init and export it to Lisp.
* progmodes/compile.el (compilation-mode):
Set window-point-insertion-type.
(compilation-filter): Don't use insert-before-markers any more.
* emacs-lisp/trace.el (trace-make-advice):
Set window-point-insertion-type in the trace buffer.
* startup.el (normal-top-level): Set window-point-insertion-type in
*Messages*.
* net/telnet.el (telnet-mode): Set window-point-insertion-type.
(telnet-filter): Don't use insert-before-markers any more.
* comint.el (comint-mode): Set window-point-insertion-type.
(comint-output-filter): Don't use insert-before-markers any more.
* button.el (make-text-button): Allow `start' to be a string.
2008-06-10 16:08:48 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Juri Linkov
c59a65bdac * comint.el (comint-dynamic-simple-complete):
Use variable `stub' for the second arg `common-substring'
of `comint-dynamic-list-completions'.
(comint-dynamic-list-filename-completions):
Use variable `filenondir' for the second arg `common-substring'
of `comint-dynamic-list-completions'.
(comint-dynamic-list-completions): Add new optional arg
`common-substring'. Add `common-substring' as the
second arg of the call to `display-completion-list'.  Doc fix.
2008-03-21 23:58:06 +00:00
Juri Linkov
4b0dc1de40 (comint-dynamic-complete-as-filename)
(comint-dynamic-list-filename-completions)
(comint-dynamic-simple-complete): Use `minibuffer-message'
to display message "No completions of %s" when a command
is called in the minibuffer.
(comint-dynamic-simple-complete): Don't display other
completion messages when a command is called in the minibuffer.
(comint-dynamic-list-completions): Use `minibuffer-message'
to display message " [Type space to flush ...]" when a command
is called in the minibuffer.
2008-03-21 23:51:40 +00:00
Stefan Monnier
f130385591 Fix up indentation and comment style. Remove `function'. 2008-03-12 17:56:57 +00:00
Kenichi Handa
40dd88cfb3 (comint-exec-1): Don't change the coding-system for
decoding to dos-like EOL.
(comint-carriage-motion): Fully rewrite.
2008-03-05 01:57:57 +00:00
Miles Bader
1bad168e59 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1006
2008-01-22 23:53:46 +00:00
Glenn Morris
b11a06ccc7 (comint-regexp-arg): Fix no-input case. 2008-01-16 08:11:05 +00:00
Glenn Morris
2d216b52ea (comint-regexp-arg): Fix no-input case. 2008-01-16 08:10:36 +00:00
Nick Roberts
d1497e8d4d (comint-insert-input): Set point first. 2008-01-10 11:28:33 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
409cc4a3ea Add 2008 to copyright years. 2008-01-07 02:45:14 +00:00
Miles Bader
b17f53abc2 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-966
2007-12-28 22:26:14 +00:00
Richard M. Stallman
6143495cd6 (comint-mode-map): Explicitly bind delete' and kp-delete'
so they never do EOF.
2007-12-25 16:56:28 +00:00
Richard M. Stallman
55a3770f70 (comint-password-prompt-regexp): Match `Enter Password'. 2007-12-22 16:23:36 +00:00
Glenn Morris
d8e27e33f6 Chris Moore <christopher.ian.moore at gmail.com>
(comint-password-prompt-regexp): Handle `[sudo] password'-style prompt.
2007-10-25 03:53:10 +00:00
Glenn Morris
a6151b2c10 Chris Moore <christopher.ian.moore at gmail.com>
(comint-password-prompt-regexp): Handle `[sudo] password'-style
prompt.
2007-10-23 07:10:56 +00:00
Miles Bader
b2529d56b5 Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 116-121)

   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-889
2007-10-15 02:07:53 +00:00
Eli Zaretskii
0506e86613 (comint-password-prompt-regexp): Add 'LDAP'. 2007-10-13 11:34:19 +00:00
Glenn Morris
ae5a55fa6c (comint-mode): Don't set scroll-conservatively. 2007-09-02 01:29:35 +00:00
Glenn Morris
a295dea3ad (comint-mode): Don't set scroll-conservatively. 2007-09-02 01:27:57 +00:00
Michael Albinus
66a100be19 * comint.el (comint-exec-1): Raise an error if
`start-file-process' does not return a process object.

* shell.el (shell): Prompt for `default-directory' if it is a
remote file name, and if called with a prefix arg.
2007-08-22 19:47:57 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
b4aa60262c Switch license to GPLv3 or later. 2007-07-25 04:50:21 +00:00
Jason Rumney
d93290ed10 (comint-simple-send): Concat newline before sending.
(comint-password-prompt-regexp): Recognize plink's passphrase prompt.
2007-07-22 22:55:09 +00:00
Jason Rumney
3af378034d (comint-simple-send): Concat newline before sending.
(comint-password-prompt-regexp): Recognize plink's passphrase prompt.
2007-07-15 01:00:55 +00:00
Stefan Monnier
c788d36681 (comint-dynamic-complete-as-filename,comint-dynamic-list-filename-completions):
Use read-file-name-completion-ignore-case.
2007-07-12 04:14:48 +00:00
Michael Albinus
4b29e550e6 * comint.el (make-comint, make-comint-in-buffer)
(comint-exec-1): Replace `start-process' by `start-file-process'.

* progmodes/compile.el (compilation-start): Revert redefining
`start-process'.
2007-07-10 19:52:11 +00:00
Chong Yidong
2bf75913fc (comint-send-input): Widen the buffer first. 2007-04-02 14:01:02 +00:00