home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / epoch / misc / 1142 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.1 KB  |  42 lines

  1. Newsgroups: gnu.epoch.misc
  2. Path: sparky!uunet!cis.ohio-state.edu!rchland.ibm.COM!mjruss+
  3. From: mjruss+@rchland.ibm.COM (Mike Russell)
  4. Subject: Minibuf truncate-lines
  5. Message-ID: <Af31UcE91Grh1JNF9=@rchland.ibm.com>
  6. Sender: daemon@cis.ohio-state.edu
  7. Reply-To: "Mike Russell" <mjruss@rchland.vnet.ibm.com>
  8. Organization: GNUs Not Usenet
  9. Distribution: gnu
  10. Date: Thu, 19 Nov 1992 10:41:44 GMT
  11. Lines: 29
  12.  
  13. (epoch 4.0.2)
  14. I am using the following  to turn off line wrap in all windows.
  15. (setq default-truncate-lines t)
  16.  
  17. I do not want this as a default in the minibuffer so I wrote the
  18. following elsp to  set the buffer-local variable truncate-lines
  19. in the minibuffer.   Unfortunately this does not work.
  20.  
  21. Does truncate-lines apply to the minibuffer also?
  22.  
  23. (defun set-minibuf-truncate()
  24.   "Set the minibuffer to not wrap lines."
  25.   (save-excursion
  26.     (set-buffer (window-buffer (minibuffer-window)))
  27.     (setq truncate-lines nil)))
  28.  
  29. (set-minibuf-truncate)
  30.  
  31.  
  32.  
  33.  
  34.  
  35.                                                               Mike J. Russell
  36. (507)253-3545
  37. D266/040-3
  38. Rochester Mn. 55901
  39.  
  40. Internet address
  41. MJRUSS@RCHLAND.VNET.IBM.COM
  42.