A related issue that annoys me from time to time is I'd like to see a
diff of ne's buffer versus what's on the file system.
For example, after a git rebase will report "File has been modified
since buffer was loaded or saved; are you sure?", since the timestamps
have changed. It would be nice to spawn diff to see if pressing 'y' will
make a mess of my rebase or change nothing but the timestamp.
This feels like it should be possible with a macro, something like
"through diff -u (original file) - | less" but I've not come up with a
formulation that doesn't involve patches to ne. I could have a go at
implementing something but it's hard to know what:
1) Building it into ne, adding a "d" option to the "are you sure?"
option above. Nicest for me, but then you have to configure the diff
tool, is very single-purpose, and you may well want to just check
2) An option to system that pumps the whole buffer to stdin when running
the command, "system-pipe-stdin diff -u (original file) -"
3) A command to dump the buffer to a given temporary file, "dump_buffer
/tmp/unsaved ; system diff -u (original file) /tmp/unsaved ; rm
...I'm not sure if there's an existing way of doing "(original file)"
either. If there isn't, possibly system could set an environment
variable in the shell it sends the command to, to save having to
implement variable substitution?
Or it could be I'm missing something obvious. It wouldn't be the first
> You received this message because you are subscribed to the Google
> Groups "niceeditor" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to niceeditor+...@googlegroups.com
> To view this discussion on the web visit