Changeset 4200 for trunk/lisp/comint.el
- Timestamp:
- 04/07/07 15:49:28 (2 years ago)
- Files:
-
- trunk/lisp/comint.el (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/comint.el
r4196 r4200 1503 1503 (let ((proc (get-buffer-process (current-buffer)))) 1504 1504 (if (not proc) (error "Current buffer has no process") 1505 (widen) 1505 1506 (let* ((pmark (process-mark proc)) 1506 1507 (intxt (if (>= (point) (marker-position pmark)) … … 1647 1648 (inhibit-modification-hooks t)) 1648 1649 (add-text-properties (overlay-start comint-last-prompt-overlay) 1649 (overlay-end comint-last-prompt-overlay)1650 (overlay-properties comint-last-prompt-overlay)))))1650 (overlay-end comint-last-prompt-overlay) 1651 (overlay-properties comint-last-prompt-overlay))))) 1651 1652 1652 1653 (defun comint-carriage-motion (start end) … … 2594 2595 (display-buffer proc-buf) 2595 2596 (set-buffer proc-buf) ; but it's not the selected *window* 2596 (let ((proc-win (get-buffer-window proc-buf ))2597 (let ((proc-win (get-buffer-window proc-buf 0)) 2597 2598 (proc-pt (marker-position proc-mark))) 2598 2599 (comint-send-string proc str) ; send the query … … 2960 2961 "List in help buffer sorted COMPLETIONS. 2961 2962 Typing SPC flushes the help buffer." 2962 (let ((window (get-buffer-window "*Completions*" )))2963 (let ((window (get-buffer-window "*Completions*" 0))) 2963 2964 (setq completions (sort completions 'string-lessp)) 2964 2965 (if (and (eq last-command this-command)
