window-width instead of frame-width.
2001-03-20 Gerd Moellmann <gerd@gnu.org>
+ * comint.el (comint-exec-1): Set columns of the terminal to
+ window-width instead of frame-width.
+
* info.el (Info-scroll-down): Add missing WINDOW arg for
pos-visible-in-window-p.
;; if TERM is not a valid terminal type.
(if (and (boundp 'system-uses-terminfo) system-uses-terminfo)
(list "TERM=dumb" "TERMCAP="
- (format "COLUMNS=%d" (frame-width)))
+ (format "COLUMNS=%d" (window-width)))
(list "TERM=emacs"
- (format "TERMCAP=emacs:co#%d:tc=unknown:" (frame-width))))
+ (format "TERMCAP=emacs:co#%d:tc=unknown:" (window-width))))
(if (getenv "EMACS") nil (list "EMACS=t"))
process-environment))
(default-directory