rnkn / fountain-mode

Emacs major mode for screenwriting in Fountain plain-text markup
https://fountain-mode.org
GNU General Public License v3.0
391 stars 16 forks source link

fixed fountain-export-view to actually open the most recent file #128

Closed ZungBang closed 4 years ago

ZungBang commented 4 years ago

was sorting by wrong attribute (access-time), since the car of each entry in file-list is the file name and the attributes follow

ZungBang commented 4 years ago

Originally this was (file-attribute-modification-time (cdr ...)) but this seems to not be backwards compatible with Emacs before v26, so I changed it to (nth 5 (cdr ...)) because 5 is the index of the modification time in the attributes list and is documented as such in file-attributes.

It does look kinda awkward. I'll change this if you want.

rnkn commented 4 years ago

Yeah let's just use 6 👍

ZungBang commented 4 years ago

Done.

rnkn commented 4 years ago

Thanks!