codesite | 1 Oct 01:10 2011
Picon

Issue 191 in yasnippet: yas/expand-snippet fails

Status: New
Owner: joaotav...@...
Labels: Type-Defect Priority-Medium

New issue 191 by this...@...: yas/expand-snippet fails
http://code.google.com/p/yasnippet/issues/detail?id=191

What steps will reproduce the problem?
1. In scratch buffer:
2. M-: (yas/expand-snippet "time") fails to expand "time" snippet

What is the expected output? What do you see instead?
"time" snippet is not expanded; "time" is just inserted.

What version of the product are you using? On what operating system?
I tried with yasnippet-0.6.1c and revision 671 on emacs 24.0.50.1.

--

-- 
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To post to this group, send email to smart-snippet@...
To unsubscribe from this group, send email to smart-snippet+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.

codesite | 1 Oct 10:09 2011
Picon

Re: Issue 190 in yasnippet: yasnippet inserts newline although the snippet does *not* contain a newline


Comment #2 on issue 190 by marius.h...@...: yasnippet inserts  
newline although the snippet does *not* contain a newline
http://code.google.com/p/yasnippet/issues/detail?id=190

I checked again, with a minimal installation. I double-checked the  
line-endings. Each line of the bm-snippet ends exactly where it should. I  
still get the newlines which is quite annoying (not for larger snippets,  
but for the small ones you use all the time). It would at least be helpful  
to get a comment from the developer either saying "sorry, can't reproduce  
this" or "yes, it's a bug, I'm working on it/I'll put it on the TODO list".

--

-- 
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To post to this group, send email to smart-snippet@...
To unsubscribe from this group, send email to smart-snippet+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.

codesite | 1 Oct 16:00 2011
Picon

Re: Issue 190 in yasnippet: yasnippet inserts newline although the snippet does *not* contain a newline


Comment #3 on issue 190 by marius.h...@...: yasnippet inserts  
newline although the snippet does *not* contain a newline
http://code.google.com/p/yasnippet/issues/detail?id=190

The problem was now solved (for me) on stack overflow:
http://stackoverflow.com/questions/7619640/emacs-latex-yasnippet-why-are-newlines-inserted-after-a-snippet
It's a setting in emacs that adds a newline, so it's not an issue of  
yasnippet anymore.

--

-- 
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To post to this group, send email to smart-snippet@...
To unsubscribe from this group, send email to smart-snippet+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.

codesite | 1 Oct 21:57 2011
Picon

Re: Issue 191 in yasnippet: yas/expand-snippet fails

Updates:
	Status: Invalid

Comment #1 on issue 191 by joaotav...@...: yas/expand-snippet fails
http://code.google.com/p/yasnippet/issues/detail?id=191

This is not they way `yas/expand-snippet' works. It expands snippet  
contents, that is, it's argument is a snippet code with placeholders and  
such. It does not take a reference to a snippet name.

--

-- 
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To post to this group, send email to smart-snippet@...
To unsubscribe from this group, send email to smart-snippet+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.

codesite | 1 Oct 22:01 2011
Picon

Re: Issue 190 in yasnippet: yasnippet inserts newline although the snippet does *not* contain a newline

Updates:
	Status: Invalid

Comment #4 on issue 190 by joaotav...@...: yasnippet inserts
newline  
although the snippet does *not* contain a newline
http://code.google.com/p/yasnippet/issues/detail?id=190

Yes, I was going to suggest this as well. It's a problem with  
`require-final-newline'.

--

-- 
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To post to this group, send email to smart-snippet@...
To unsubscribe from this group, send email to smart-snippet+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.

codesite | 5 Oct 18:34 2011
Picon

Issue 192 in yasnippet: Compatibility with Fill-Column-Indicator

Status: New
Owner: joaotav...@...
Labels: Type-Defect Priority-Medium

New issue 192 by wirt...@...: Compatibility with Fill-Column-Indicator
http://code.google.com/p/yasnippet/issues/detail?id=192

What steps will reproduce the problem?
1. download and install the Fill-Column-Indicator addon from  
http://www.emacswiki.org/emacs/FillColumnIndicator
2. run emacs and enter the fci-mode (a vertical line on the right edge of  
the buffer should appear)
3. e.g. enter "time" and hit the TAB key somewhere in the middle of the  
buffer (just *scratch* buffer is sufficient)

What is the expected output? What do you see instead?
Current time should be expanded at the cursor position. But it doesn't.  
It's placed right after the vertical line on the same line. That's very  
annoying behaviour.

What version of the product are you using? On what operating system?
GNU/Linux, GNU Emacs 23.3.1, yasnippet 0.6.1 (package version 0.6.1c),  
Fill-Column-Indicator 1.67

Please provide any additional information below.
I don't know whether it is yasnippet's or Fill-Column-Indicator's fault.  
May be it's related to  
https://github.com/alpaker/Fill-Column-Indicator/issues/3 issue. There're  
some comments about improper suspending of auto-updating by yasnippet.  
Thanks for investigating this.
(Continue reading)

codesite | 6 Oct 13:49 2011
Picon

Re: Issue 192 in yasnippet: Compatibility with Fill-Column-Indicator

Updates:
	Status: Accepted
	Labels: -Priority-Medium Priority-High

Comment #1 on issue 192 by joaotav...@...: Compatibility with  
Fill-Column-Indicator
http://code.google.com/p/yasnippet/issues/detail?id=192

Thanks for the heads up I had no idea this mode existed. I read the  
comments on the thread you provided, the author talked about fixing  
stuff "without yasnippet's cooperation" in July :D, but anyway I had a look  
and yasnippet might be abusing `inhibit-modification-hooks'.

I've fixed it but am still cautious of this change (since haven't got any  
automatic tests). So I've I've created a branch of yasnippet.el find it here

http://yasnippet.googlecode.com/svn/branches/TRY-better-inhibit-modification-hooks/yasnippet.el

it seems to fix it. Try it out and check back here if it works. I have to  
do some more testing and then I'll merge this change back to the trunk.

--

-- 
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To post to this group, send email to smart-snippet@...
To unsubscribe from this group, send email to smart-snippet+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.

codesite | 6 Oct 14:39 2011
Picon

Re: Issue 192 in yasnippet: Compatibility with Fill-Column-Indicator


Comment #2 on issue 192 by wirt...@...: Compatibility with  
Fill-Column-Indicator
http://code.google.com/p/yasnippet/issues/detail?id=192

Wow, you're fast. :-) OK, I've just downloaded the whole branch (just  
replacing the yasnippet.el file didn't work, there were no snippets  
available for expanding).

It works much better now. Thank you. :-) Actually there is still one small  
hitch. When I type "inc" for expanding in C++ mode, the dropdown list  
providing #include "..." or #include <..> choices still shows up at the  
wrong place (i.e. behind the vertical line). But it's not a big issue for  
me.

I will keep using this branch. If I discover some other problems related to  
this issue I'll let you know. Thanks again, great work. :-)

--

-- 
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To post to this group, send email to smart-snippet@...
To unsubscribe from this group, send email to smart-snippet+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.

codesite | 7 Oct 01:23 2011
Picon

Re: Issue 192 in yasnippet: Compatibility with Fill-Column-Indicator


Comment #3 on issue 192 by zynode: Compatibility with Fill-Column-Indicator
http://code.google.com/p/yasnippet/issues/detail?id=192

I've been using the branch all day with fci-mode without any problems :)

--

-- 
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To post to this group, send email to smart-snippet@...
To unsubscribe from this group, send email to smart-snippet+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.

codesite | 7 Oct 10:44 2011
Picon

Re: Issue 192 in yasnippet: Compatibility with Fill-Column-Indicator


Comment #4 on issue 192 by joaotav...@...: Compatibility with  
Fill-Column-Indicator
http://code.google.com/p/yasnippet/issues/detail?id=192

I'll try to do some more tests then merge this back onto the trunk then.

--

-- 
You received this message because you are subscribed to the Google Groups "smart-snippet and YASnippet" group.
To post to this group, send email to smart-snippet@...
To unsubscribe from this group, send email to smart-snippet+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/smart-snippet?hl=en.


Gmane