Changeset 3797


Ignore:
Timestamp:
09/15/03 16:27:00 (20 years ago)
Author:
piso
Message:

save(): call invokeAfterSaveHook() if appropriate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/Buffer.java

    r3164 r3797  
    33 *
    44 * Copyright (C) 1998-2003 Peter Graves
    5  * $Id: Buffer.java,v 1.50 2003-08-01 16:21:28 piso Exp $
     5 * $Id: Buffer.java,v 1.51 2003-09-15 16:27:00 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    13421342            return true;
    13431343        addUndoBoundary();
     1344        boolean succeeded = false;
    13441345        final File file = getFile();
    13451346        if (file != null) {
    13461347            if (file.isLocal())
    1347                 return saveLocal(file);
     1348                succeeded = saveLocal(file);
    13481349            if (file instanceof FtpFile)
    1349                 return saveFtp();
     1350                succeeded = saveFtp();
    13501351            if (file instanceof SshFile)
    1351                 return saveSsh((SshFile)file);
    1352         }
    1353         return false;
     1352                succeeded = saveSsh((SshFile)file);
     1353        }
     1354        if (succeeded && Editor.isLispInitialized())
     1355            LispAPI.invokeAfterSaveHook(this);
     1356        return succeeded;
    13541357    }
    13551358
Note: See TracChangeset for help on using the changeset viewer.