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
create a single-file gist from the web interface, setting the file type to shell (or whatever)
Edit it in Emacs using gist.el. The mode in Emacs is correctly set to sh-mode
Save the gist from within Emacs
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.
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
gist.el
. The mode in Emacs is correctly set tosh-mode
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.