home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / bug-lucid-emacs / text0072.txt < prev    next >
Encoding:
Text File  |  1993-07-04  |  1.2 KB  |  26 lines

  1. I have a situation in which I would like a command to be able to signal an
  2. (uncaught) error, but still preserve the zmacs region.  Is this a bad idea?
  3.  
  4. In particular I use "improved" versions of the vertical scrolling commands
  5. scroll-{up,down,other-window}, and I would like these commands to preserve the
  6. zmacs region even when they signal buffer boundary errors.  However, I can't do
  7. this because the function cmd_error in "keyboard.c" always deactivates the
  8. region.
  9.  
  10. My question, then, is whether or not it is really necessary for cmd_error to
  11. deactivate the region in all cases.  If not, then maybe it shouldn't do so when
  12. zmacs-region-stays is set.
  13.  
  14. (BTW, even if cmd_error were changed to not deactive the region, the standard
  15. versions of the vertical scrolling commands still wouldn't preserve the region
  16. when they signal buffer boundary errors.  They set zmacs-region-stays after the
  17. scrolling is done -- and after they potentially signal errors.)
  18.  
  19. Eric.
  20.  
  21. --
  22. -------------------------------------------------------------------------------
  23. Eric Eide          |          University of Utah Department of Computer Science
  24. eeide@cs.utah.edu  | Buddhist to hot dog vendor: "Make me one with everything."
  25.  
  26.