defunkt / gist.el

Yet another Emacs paste mode, this one for Gist.
549 stars 90 forks source link

File type reverted to plain text for single-file gists #39

Closed haxney closed 11 years ago

haxney commented 12 years ago

I had gist consisting of a single-file shell script which I edited in Emacs. Upon saving it, the file language had reverted to "Text" on the gist web page. I made a sample case illustrating what happened.

To reproduce

  1. create a single-file gist from the web interface, setting the file type to shell (or whatever)
  2. Edit it in Emacs using gist.el. The mode in Emacs is correctly set to sh-mode
  3. Save the gist from within Emacs
  4. Check the gist web page. The language has reverted to "Text"

    Observation

If the file name is set explicitly, this problem does not occur; Emacs doesn't clobber the existing name of the file. It appears only to occur in "anonymous" gist files.

sigma commented 11 years ago

this doesn't seem to happen anymore (probably because anonymous gist files now have a sensible name) Can you confirm ?