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

insert-flash-boilerplate in find-file-not-found-hooks #198

Closed
rothmichaels opened this issue May 18, 2015 · 2 comments
Closed

insert-flash-boilerplate in find-file-not-found-hooks #198

rothmichaels opened this issue May 18, 2015 · 2 comments

Comments

@rothmichaels
Copy link
Contributor

actionscript-mode adds insert-flash-boilerplate to find-file-not-found-hooks. Not only is this being global unnecessary, but it was also introducing bugs.

insert-flash-boilerplate expects a filename variable to be set which is not always the case when running functions in find-file-not-found-hooks (e.g. when calling org-odt-export-to-odt).

FIX: Either remove this function from the hook list, or do this and add a replacement to the actionscript-mode-hook.

rothmichaels added a commit to rothmichaels/emacs-live that referenced this issue May 18, 2015
@rothmichaels
Copy link
Contributor Author

I discovered this issue while trying to run org-odt-export-to-odt. My quick workaround to reset find-file-not-found-hooks after loading actionscript-config.el is available at rothmichaels/as-boilerplate-bug. (EDIT: removed branch as updated action script mode, austinhaas/actionscript-mode@f7dd1d7, fixes this bug)

After adding this fix, I noticed some other bugs I was having (e.g. correct mode not being set when creating new files in directories other than $PWD) where the message "Wrong type argument: stringp, nil" was displayed. If I remember from my debugging last year, this most likely was what was causing me extra confusion trying to deal with my magic issue at #153. This might also be related to #122, #135, and #144.

I have worked on a better fix for actionscript-mode and opened a pull request: austinhaas/actionscript-mode#9; if it is not accepted, and you'd like my changes as a submodule you can find them here: rothmichaels/actionscript-mode.

rothmichaels added a commit to rothmichaels/emacs-live that referenced this issue May 19, 2015
Fixes overtone#198.

See austinhass/actionscrcipt-mode#9.
@rothmichaels
Copy link
Contributor Author

This was fixed in #200

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

Successfully merging a pull request may close this issue.

1 participant