QUERY
[ Cited in full for the benefit of -beta readers. ]
|--==> "davep" == David A Panariti <davep(a)meduseld.net> writes:
davep> Hi,
davep> I' currently running
davep> XEmacs 21.4 (patch 8) "Honest Recruiter" [Lucid] (i386--freebsd,
Mule)
davep> of Fri May 10 2002 on
baloo.meduseld.net,
davep> but I've had this problem since I switched to xemacs (ca 21.1.14ish).
davep> When I run term (M-x term<RET>) I get stair-stepped output. Running
davep> describe-coding-system in the term buf shows:
davep> ...
davep> decoding output from the process: Auto:T -- undecided-dos
davep> ...
davep> Which leads to stair-stepping since there is no CR to go along with
davep> the LF which is expected in DOS type files. A simple patch uses a
davep> let* to set coding-system-for-read, in my case, to
davep> 'undecided-unix. However, this won't be correct for everyone. Does
davep> anyone know how to set this properly, or why the coding-system guess
davep> is incorrect? I'll enclose a patch and changelog in case this is
davep> acceptable as it is (unlikely).
I'm not too happy with it. I really don't like the idea of hard
coding 'undecided-unix' into it.
davep> At least it points to a place where a corrected setting of
davep> coding-system-for-read can be placed.
Does anyone know how we can do this in a more "dynamic" way?
davep> Please CC me on any responses since I am not subscribed to this list.
davep> regards,
davep> davep
davep> --- term.el.ORIG Sat May 25 18:11:39 2002
davep> +++ term.el Tue May 28 22:15:18 2002
davep> @@ -1002,7 +1002,8 @@
davep> If there is already a running process in that buffer, it is not restarted.
davep> Optional third arg STARTFILE is the name of a file to send the contents of to
davep> the process. Any more args are arguments to PROGRAM."
davep> - (let ((buffer (get-buffer-create (concat "*" name
"*"))))
davep> + (let* ((coding-system-for-read 'undecided-unix)
davep> + (buffer (get-buffer-create (concat "*" name "*"))))
davep> ;; If no process, or nuked process, crank up a new one and put buffer in
davep> ;; term mode. Otherwise, leave buffer and existing process alone.
davep> (cond ((not (term-check-proc buffer))
davep> 2002-05-28 David A. Panariti <davep(a)meduseld.net>
davep> * term.el (make-term): Added let* to set coding-system-for-read to
davep> 'undecided-unix to cure stair stepped output in term buffer.
--
|---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---|
| XEmacs - It's not just an editor. |
| It's a way of life. |
|------------------------------------<youngs(a)xemacs.org>---|