Stefan Monnier
4a47c27573
Merge from emacs-23
2010-11-17 22:54:14 -05:00
Stefan Monnier
b916cbefa4
* comint.el (comint-kill-region): Fix last change.
2010-11-17 22:44:35 -05:00
Stefan Monnier
9fca7811a8
Make the yank-handler argument obsolete.
...
* simple.el (kill-new, kill-append, kill-region):
* comint.el (comint-kill-region): Make the yank-handler argument obsolete.
2010-11-17 21:09:41 -05:00
Glenn Morris
7aa93795cb
* lisp/comint.el (comint-password-prompt-regexp): Make it less vague.
...
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 .
2010-10-23 12:56:57 -07:00
Glenn Morris
0d0d9424a2
Fix bug#7224.
...
* lisp/comint.el (comint-password-prompt-regexp): Match "enter the password".
2010-10-23 12:15:44 -07:00
Glenn Morris
3226d6cacf
Remove some functions, variables and aliases obsolete since at least 21.1.
...
* 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.
2010-10-01 19:46:13 -07:00
Glenn Morris
d97034985a
Tiny comint.el change.
...
* lisp/comint.el (comint-use-prompt-regexp-instead-of-fields):
Move alias before definition, so it does not need autoloading.
2010-09-23 00:09:24 -07:00
Chong Yidong
bd78fa1d54
Add "Package:" file headers to denote built-in packages.
2010-08-29 12:17:13 -04:00
Michael Albinus
942415f397
* comint.el (comint-mode): Make directory tracking functions
...
functional on remote files. (Bug#6764)
2010-08-06 15:53:59 +02:00
Chong Yidong
2ec1b5ee34
Merge changes from emacs-23 branch.
2010-07-10 14:52:53 -04:00
Štěpán Němec
2330fa87a5
Doc fix.
...
* lisp/comint.el (make-comint, make-comint-in-buffer): Mention return
value in the docstrings. (Bug#6498)
2010-06-23 23:38:09 -07:00
Chong Yidong
6534e58a57
Fix for comint-password-prompt-regexp (Bug#6367).
...
* lisp/comint.el (comint-password-prompt-regexp): Fix 2010-04-10 change
(Bug#6367).
* comint-testsuite.el: New file.
2010-06-11 10:39:54 -04:00
Juri Linkov
2ee13033a8
Remove obsolete comment.
2010-05-21 00:38:59 +03:00
Chong Yidong
3acb4c9315
Update comint-password-prompt-regexp (Bug#2817).
...
* comint.el (comint-password-prompt-regexp): Use regexp-opt, and
recognize ssh-keygen prompt (Bug#2817).
2010-04-10 19:54:50 -04:00
Glenn Morris
114f9c9679
Add 2010 to copyright years.
2010-01-13 00:35:10 -08:00
Chong Yidong
a88c46c3a8
* comint.el (comint-input-ring-size): Make it a defcustom and
...
increase the default to 500.
2010-01-01 13:43:25 -05:00
Juri Linkov
d2a1dc7bc1
Don't lazy-highlight the comint output in history Isearch mode.
...
* 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.
2009-12-07 22:36:58 +00:00
Stefan Monnier
e7440df4ec
(comint-insert-input): Ignore clicks to the right of
...
the field. Reported by Bob Nnamtrop <bobnnamtrop@gmail.com>.
2009-12-01 20:31:57 +00:00
Juri Linkov
1f9689eba0
(comint-mode-map): Rebind `M-r' from
...
`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)
2009-11-30 16:11:18 +00:00
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