Loading ...
Sorry, an error occurred while loading the content.

Re: customizing the UnsavedChanges event ?

Expand Messages
  • Bram Moolenaar
    ... No. You could use exception handling when it happens in a script. I ll add a note about adding an event for this, I can see it is useful. -- I m sure that
    Message 1 of 3 , Sep 5, 2003
    • 0 Attachment
      Yakov Lerner wrote:

      > Is there an autoevent for a decision what to do with
      > unsaved changes when leaving the unsaved modified buffer ?
      >
      > For example, customizing such event would allow me to
      > specify:
      > - for *.abc buffers - autowrite
      > - for *.xyz buffers - ask
      > - for *.pqr buffers - autowrite if leaving via commands x,y,z
      > but ask if leaving via commands a,b,c
      > - for *.klm buffers - autowrite with versiosning
      >
      > Does it exist, such autoevent ?

      No. You could use exception handling when it happens in a script.

      I'll add a note about adding an event for this, I can see it is useful.

      --
      I'm sure that I asked CBuilder to do a "full" install. Looks like I got
      a "fool" install, instead. Charles E Campbell, Jr, PhD


      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.