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
Yasnippets in .Rnw files: TAB-expansion not working anymore #231
Comments
Please try upgrading to the latest HEAD version of yasnippet, found on On Sat, Mar 31, 2012 at 7:33 AM, mhofert <
Joo Tvora |
Thanks a lot for your quick response. I'll give it a try and get back to you. |
I installed the latest version from https://github.com/capitaomorte/yasnippet/tree/jit-loading. The problem remains. I can use M-x yas/expand to expand a snippet when the point is in the LaTeX part of an .Rnw file, but I can't use TAB to expand a snippet. |
Hi, did you have a chance to look at it so far? |
Hi. The problem is that
in the normal master branch, and maybe even the older 0.6 version (though I Either way, as always, if yasnippet finds nothing to do, it should call the Hope this works, On Wed, Apr 4, 2012 at 12:30 PM, mhofert <
Joo Tvora |
Dear Joo,
cd ~/.emacs.d/plugins Something I am wondering: That's precisely the same git command as is used for
Cheers, Marius |
On Sun, Apr 8, 2012 at 9:22 AM, mhofert <
or maybe try this variation
If the second variation works, use that instead of the one I provided in Joo Tvora |
Thanks very much, Joo. I could switch to the tighter-tab branch and it now works! |
Unfortunately, I was too fast. Switching to the tighter-tab branch interferes with org-mode. It is not possible to expand sections in an org-file anymore with tab.... |
Concerning your other solution:
|
I guess I found something. This code solved it (for now): (add-hook 'LaTeX-mode-hook I was wondering about the ess-mode-hook since at the point where I want to expand snippets the mode of the file is LaTeX and not ESS/R anymore. So simply replace ess-mode-hook by LaTeX-mode-hook and it should work. I will test that and (if necessary) get back to you (if it doesn't work). Cheers, Marius |
Closing as solved. |
Hi,
I have exactly the problem as described here:
http://groups.google.com/group/smart-snippet/browse_thread/thread/8206a23037f598b1/39ed819692df63ad?lnk=gst&q=rnw&pli=1
Unfortunately, the described solution does not work -- TAB does not
expand (ya)snippets in my .Rnw files. You can find a detailed
description of the problem on:
http://tex.stackexchange.com/questions/49530/yasnippet-sweave-how-to-make-snippets-work-from-rnw-files
I work on Mac OS X 10.7.3 with the very latest version of R (and ESS) and yasnippet-0.6.1c.
Cheers,
Marius
The text was updated successfully, but these errors were encountered: