home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4066 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.0 KB  |  32 lines

  1. Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!epx.cis.umn.edu!tdt
  2. From: tdt@epx.cis.umn.edu
  3. Newsgroups: gnu.emacs.help
  4. Subject: Partial redraw-display
  5. Message-ID: <1992Sep10.142721.25446@news2.cis.umn.edu>
  6. Date: 10 Sep 92 14:27:21 GMT
  7. References: <TNT.92Sep10070442@netcom.com>
  8. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  9. Distribution: gnu
  10. Organization: University of Minnesota
  11. Lines: 18
  12. Nntp-Posting-Host: epx.cis.umn.edu
  13.  
  14. Greetings.  I'm trying to write a lisp function which automatically
  15. sets the variable 'tab-width to 4.  This works, but the display does
  16. not update.  When I add the (redraw-display) line of code, the ENTIRE
  17. display gets updated, not just the affected window.
  18. Where is the redraw-window command? (Or how do you fool emacs?)
  19.  
  20. thanks,
  21. tim
  22.  
  23. CODE:
  24. (defun tabstop-to-four ()
  25.   "Sets the tab-width variable to 4 in this buffer"
  26.   (interactive)
  27.   (set-variable 'tab-width 4)
  28. ; i can't for the life of me find out how to redraw a single window
  29. ; instead of the whole ??FKJWEFIOJ?? display!!!  9/9/92 tdt
  30. ;  (redraw-display)
  31. )
  32.