if(newFile)
if(newFile || mode.getName().equals("text"))
	public boolean save(View view, String path)	{		if(path == null && newFile)			return saveAs(view);		URL saveUrl;		File saveFile;		if(path == null)		{			saveUrl = url;			path = this.path;			saveFile = file;			// only do this check if saving to original file			// if user is doing a `Save As' they should know			// what they're doing anyway			long newModTime = saveFile.lastModified();			if(newModTime > modTime)			{				Object[] args = { path };				int result = JOptionPane.showConfirmDialog(view,					jEdit.getProperty("filechanged.message",					args),jEdit.getProperty("filechanged.title"),					JOptionPane.YES_NO_OPTION,					JOptionPane.WARNING_MESSAGE);				if(result != JOptionPane.YES_OPTION)					return false;			}		}		else		{			try			{				saveUrl = new URL(path);			}			catch(MalformedURLException mu)			{				saveUrl = null;			}			saveFile = new File(path);		}		backup(saveFile);		try		{			OutputStream out;			if(saveUrl != null)			{				URLConnection connection = saveUrl					.openConnection();				out = connection.getOutputStream();			}			else				out = new FileOutputStream(saveFile);			if(path.endsWith(".gz"))				out = new GZIPOutputStream(out);			save(out);			url = saveUrl;			this.path = path;			file = saveFile;			setPath();			saveMarkers();			if(newFile)				setMode();			adirty = dirty = readOnly = newFile = false;			autosaveFile.delete();			modTime = file.lastModified();			fireBufferEvent(new BufferEvent(BufferEvent				.DIRTY_CHANGED,this));			return true;		}		catch(IOException io)		{			Object[] args = { io.toString() };			GUIUtilities.error(view,"ioerror",args);		}		catch(BadLocationException bl)		{		}		return false;	}