diff options
| author | Joakim Verona | 2013-09-12 22:51:29 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-09-12 22:51:29 +0200 |
| commit | d4082b3d476bb73173680e6bdb361a90f9e6067c (patch) | |
| tree | 92397e0bc7c1c4963e5baf6bfaf0582a28b1111e | |
| parent | 5f7470d118360c67a7a2cf3a0aa29280980a6da3 (diff) | |
| parent | e3066edb0a69064af71f031cc034a94a7d345d6a (diff) | |
| download | emacs-d4082b3d476bb73173680e6bdb361a90f9e6067c.tar.gz emacs-d4082b3d476bb73173680e6bdb361a90f9e6067c.zip | |
merge from trunk
| -rw-r--r-- | lisp/eshell/em-cmpl.el | 20 | ||||
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/automated/eshell.el | 3 |
3 files changed, 23 insertions, 5 deletions
diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el index fe7a79cf952..a940eb5cd36 100644 --- a/lisp/eshell/em-cmpl.el +++ b/lisp/eshell/em-cmpl.el | |||
| @@ -297,16 +297,19 @@ to writing a completion function." | |||
| 297 | (define-key eshell-mode-map [(meta tab)] 'eshell-complete-lisp-symbol) | 297 | (define-key eshell-mode-map [(meta tab)] 'eshell-complete-lisp-symbol) |
| 298 | (define-key eshell-mode-map [(meta control ?i)] 'eshell-complete-lisp-symbol) | 298 | (define-key eshell-mode-map [(meta control ?i)] 'eshell-complete-lisp-symbol) |
| 299 | (define-key eshell-command-map [(meta ?h)] 'eshell-completion-help) | 299 | (define-key eshell-command-map [(meta ?h)] 'eshell-completion-help) |
| 300 | (define-key eshell-command-map [tab] 'pcomplete-expand-and-complete) | ||
| 300 | (define-key eshell-command-map [(control ?i)] | 301 | (define-key eshell-command-map [(control ?i)] |
| 301 | 'pcomplete-expand-and-complete) | 302 | 'pcomplete-expand-and-complete) |
| 302 | (define-key eshell-command-map [space] 'pcomplete-expand) | 303 | (define-key eshell-command-map [space] 'pcomplete-expand) |
| 303 | (define-key eshell-command-map [? ] 'pcomplete-expand) | 304 | (define-key eshell-command-map [? ] 'pcomplete-expand) |
| 304 | (define-key eshell-mode-map [(control ?i)] 'pcomplete) | 305 | (define-key eshell-mode-map [tab] 'eshell-pcomplete) |
| 306 | (define-key eshell-mode-map [(control ?i)] 'eshell-pcomplete) | ||
| 305 | (add-hook 'completion-at-point-functions | 307 | (add-hook 'completion-at-point-functions |
| 306 | #'pcomplete-completions-at-point nil t) | 308 | #'pcomplete-completions-at-point nil t) |
| 307 | ;; jww (1999-10-19): Will this work on anything but X? | 309 | ;; jww (1999-10-19): Will this work on anything but X? |
| 308 | (define-key eshell-mode-map (if (featurep 'xemacs) [iso-left-tab] [backtab]) | 310 | (if (featurep 'xemacs) |
| 309 | 'pcomplete-reverse) | 311 | (define-key eshell-mode-map [iso-left-tab] 'pcomplete-reverse) |
| 312 | (define-key eshell-mode-map [backtab] 'pcomplete-reverse)) | ||
| 310 | (define-key eshell-mode-map [(meta ??)] 'pcomplete-list)) | 313 | (define-key eshell-mode-map [(meta ??)] 'pcomplete-list)) |
| 311 | 314 | ||
| 312 | (defun eshell-completion-command-name () | 315 | (defun eshell-completion-command-name () |
| @@ -455,7 +458,16 @@ to writing a completion function." | |||
| 455 | (all-completions filename obarray 'functionp)) | 458 | (all-completions filename obarray 'functionp)) |
| 456 | completions))))))) | 459 | completions))))))) |
| 457 | 460 | ||
| 458 | (define-obsolete-function-alias 'eshell-pcomplete 'completion-at-point) | 461 | (defun eshell-pcomplete (&optional interactively) |
| 462 | "Eshell wrapper for `pcomplete'." | ||
| 463 | (interactive "p") | ||
| 464 | ;; Pretend to be pcomplete so that cycling works (bug#13293). | ||
| 465 | (setq this-command 'pcomplete) | ||
| 466 | (condition-case nil | ||
| 467 | (if interactively | ||
| 468 | (call-interactively 'pcomplete) | ||
| 469 | (pcomplete)) | ||
| 470 | (text-read-only (completion-at-point)))) ; Workaround for bug#12838. | ||
| 459 | 471 | ||
| 460 | (provide 'em-cmpl) | 472 | (provide 'em-cmpl) |
| 461 | 473 | ||
diff --git a/test/ChangeLog b/test/ChangeLog index 3e42e18b2b4..0587373144a 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-09-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * automated/eshell.el (with-temp-eshell): Avoid hangs in batch mode | ||
| 4 | due to "has a running process; kill it?" prompts. | ||
| 5 | |||
| 1 | 2013-09-12 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2013-09-12 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * automated/eshell.el: Rename from eshell.el. | 8 | * automated/eshell.el: Rename from eshell.el. |
diff --git a/test/automated/eshell.el b/test/automated/eshell.el index a7df2945424..a78c34e4f39 100644 --- a/test/automated/eshell.el +++ b/test/automated/eshell.el | |||
| @@ -34,7 +34,8 @@ | |||
| 34 | (unwind-protect | 34 | (unwind-protect |
| 35 | (with-current-buffer eshell-buffer | 35 | (with-current-buffer eshell-buffer |
| 36 | ,@body) | 36 | ,@body) |
| 37 | (kill-buffer eshell-buffer)))) | 37 | (let (kill-buffer-query-functions) |
| 38 | (kill-buffer eshell-buffer))))) | ||
| 38 | 39 | ||
| 39 | (defun eshell-insert-command (text &optional func) | 40 | (defun eshell-insert-command (text &optional func) |
| 40 | "Insert a command at the end of the buffer." | 41 | "Insert a command at the end of the buffer." |