Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!apple!motcsd!hpda!hpcupt1!markd From: markd@hpcupt1.HP.COM (Mark Diekhans) Newsgroups: comp.emacs Subject: Question on truncate-lines Message-ID: <-285219997@hpcupt1.HP.COM> Date: 4 Oct 89 06:48:12 GMT Organization: Hewlett Packard, Cupertino Lines: 14 I would like to have a function to toggle the value of the truncate-lines variable. Unfortunatly doiung a setq or set-variable within a function does not cause the window to be redrawn the was doing a M-x set-variable command. I am forced to use the following function, which redraws the display after toggling the variable. I don't want to wait for the entire screen to be redrawn. How do I force just the current window to be redrawn? (defun toggle-truncate-lines () "Toggle the value of truncate-lines" (interactive) (setq truncate-lines (not truncate-lines)) (redraw-display)) markd@hpsplrf.hp.com or hplabs!hpda!markd