Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask about changing filename instead of silently adding an extension. #120

Open
aculich opened this issue Apr 9, 2020 · 0 comments
Open

Comments

@aculich
Copy link

aculich commented Apr 9, 2020

For example, a file named .cvimrc automatically gets renamed as .cvimrc.txt and
there is no way to override that with gist-supported-modes-alist to have no
extension since a . always gets appended.

gist.el/gist.el

Line 210 in 314fe6a

(proposal-fname (concat (file-name-sans-extension name) "." ext))

If the file already has a name, then just use it! If it is a buffer with no file
associated then it's worthwhile guessing/asking about the filename, but don't
otherwise change it.

@aculich aculich changed the title Ask about changing filename instead of silently adding an extension. For Ask about changing filename instead of silently adding an extension. Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant