"Richard M. Stallman" <[EMAIL PROTECTED]> writes:
> Bash's magic for telling term.el what directory it's in overrides the
> default-directory set in term-handle-ansi-terminal-messages. It would be
> better if term-handle-ansi-terminal-messages overrode what bash says.
>
> That seems like a reasonable change. Want to send a patch?
How about the attached patch?
--- term.el 2005-11-18 09:54:31.000000000 -0500
+++ term.el.happy 2005-12-05 21:32:24.000000000 -0500
@@ -2687,13 +2687,17 @@
(buffer-undo-list t)
(selected (selected-window))
last-win
+ handled-ansi-message
(str-length (length str)))
(save-selected-window
;; Let's handle the messages. -mm
- (setq str (term-handle-ansi-terminal-messages str))
- (setq str-length (length str))
+ (let* ((newstr (term-handle-ansi-terminal-messages str)))
+ (if (not (eq str newstr))
+ (setq handled-ansi-message t
+ str newstr)))
+ (setq str-length (length str))
(if (marker-buffer term-pending-delete-marker)
(progn
@@ -2849,7 +2853,8 @@
((eq char ?\017)) ; Shift In - ignored
((eq char ?\^G) ;; (terminfo: bel)
(beep t))
- ((eq char ?\032)
+ ((and (eq char ?\032)
+ (not handled-ansi-message))
(let ((end (string-match "\r?$" str i)))
(if end
(funcall term-command-hook
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug