+2013-06-13 Michael Hoffman <9qobl2n02@sneakemail.com> (tiny change)
+
+ * term.el (term-suppress-hard-newline): New option. (Bug#12017)
+ (term-emulate-terminal): Respect term-suppress-hard-newline.
+
2013-06-13 E Sabof <esabof@gmail.com> (tiny change)
* image-dired.el (image-dired-dired-toggle-marked-thumbs):
:type 'boolean
:group 'term)
+(defcustom term-suppress-hard-newline nil
+ "Non-nil means interpreter should not break long lines with newlines.
+This means text can automatically reflow if the window is resized."
+ :version "24.4"
+ :type 'boolean
+ :group 'term)
+
;; Where gud-display-frame should put the debugging arrow. This is
;; set by the marker-filter, which scans the debugger's output for
;; indications of the current pc.
(setq count (length decoded-substring))
(setq temp (- (+ (term-horizontal-column) count)
term-width))
- (cond ((<= temp 0)) ;; All count chars fit in line.
- ((> count temp) ;; Some chars fit.
+ (cond ((or term-suppress-hard-newline (<= temp 0)))
+ ;; All count chars fit in line.
+ ((> count temp) ;; Some chars fit.
;; This iteration, handle only what fits.
(setq count (- count temp))
(setq count-bytes