[comp.emacs] wrap-around text

rkc@XN.LL.MIT.EDU (rkc) (11/10/89)

I'm sure there's a way to stop emacs from wrapping around in a window, but I
don't know what the command is.  Can anybody tell me the command's name?
	Thanks,
	-Rob

mdb@ESD.3Com.COM (Mark D. Baushke) (11/11/89)

On 9 Nov 89 17:51:22 GMT, rkc@XN.LL.MIT.EDU (rkc) said:

rkc> I'm sure there's a way to stop emacs from wrapping around in a
rkc> window, but I don't know what the command is.  Can anybody tell
rkc> me the command's name?

You don't say which emacs you are using. If it is GNU Emacs 18.xx,
then the following code useful:

(defun toggle-truncate-lines ()
  "Toggle the value of truncate-lines"
  (interactive)
  (setq truncate-lines (not truncate-lines))
  (scroll-up 0))

Enjoy!
-- 
Mark D. Baushke <mdb@ESD.3Com.COM>