home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / emacs / help / 5304 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.4 KB  |  40 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.den.mmc.com!traffic!kevin
  3. From: kevin@traffic.den.mmc.com (Kevin Rodgers)
  4. Subject: How enlarge the minibuffer window for read-string?
  5. Message-ID: <1993Jan9.000343.25284@den.mmc.com>
  6. Sender: news@den.mmc.com (News)
  7. Nntp-Posting-Host: traffic.den.mmc.com
  8. Reply-To: kevin@traffic.den.mmc.com
  9. Organization: Martin Marietta Western Internal Systems, Technical Operations
  10. Date: Sat, 9 Jan 1993 00:03:43 GMT
  11. Lines: 27
  12.  
  13.  
  14. I would like to enlarge the minibuffer window when reading strings that
  15. can't be displayed in their entirety in it's normal 1-line
  16. configuration.  (It should be enlarged by the number of newlines in the
  17. default argument to read-string.)
  18.  
  19. When I try this (with x, prompt, and muli-line-default appropriately
  20. bound)
  21.  
  22. (save-window-excursion
  23.   (select-window (minibuffer-window))
  24.   (enlarge-window x)
  25.   (read-string prompt multi-line-default))
  26.  
  27. I get the error "Command attempted to use minibuffer while in
  28. minibuffer".
  29.  
  30. If I move the read-string call outside of the save-excursion-window
  31. form, the enlarge-window call doesn't affect the size of the minibuffer
  32. window when read-string is called.
  33.  
  34. Does anyone know how to do this?
  35. -- 
  36. Kevin Rodgers                kevin@traffic.den.mmc.com
  37. Martin Marietta MS A16401        (303) 790-3971
  38. 116 Inverness Dr. East
  39. Englewood CO 80112 USA            GO BUFFS!
  40.