home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!epx.cis.umn.edu!tdt
- From: tdt@epx.cis.umn.edu
- Newsgroups: gnu.emacs.help
- Subject: Partial redraw-display
- Message-ID: <1992Sep10.142721.25446@news2.cis.umn.edu>
- Date: 10 Sep 92 14:27:21 GMT
- References: <TNT.92Sep10070442@netcom.com>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Distribution: gnu
- Organization: University of Minnesota
- Lines: 18
- Nntp-Posting-Host: epx.cis.umn.edu
-
- Greetings. I'm trying to write a lisp function which automatically
- sets the variable 'tab-width to 4. This works, but the display does
- not update. When I add the (redraw-display) line of code, the ENTIRE
- display gets updated, not just the affected window.
- Where is the redraw-window command? (Or how do you fool emacs?)
-
- thanks,
- tim
-
- CODE:
- (defun tabstop-to-four ()
- "Sets the tab-width variable to 4 in this buffer"
- (interactive)
- (set-variable 'tab-width 4)
- ; i can't for the life of me find out how to redraw a single window
- ; instead of the whole ??FKJWEFIOJ?? display!!! 9/9/92 tdt
- ; (redraw-display)
- )
-