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

puppet-interpolate inserts braces then a dollar #56

Open
drewr opened this issue Jan 6, 2015 · 6 comments
Open

puppet-interpolate inserts braces then a dollar #56

drewr opened this issue Jan 6, 2015 · 6 comments

Comments

@drewr
Copy link

drewr commented Jan 6, 2015

Switched to this repo today, seeing odd behavior with puppet-interpolate. I type $ inside double quotes and I end up with "{}$". I don't want to have to type C-u $ all the time. Am I missing something?

@bbatsov
Copy link
Contributor

bbatsov commented Jan 7, 2015

You can always rebind $ to nothing. When I added this I assumed people would rarely type $ in double-quoted strings. I might have been wrong.

@swsnr
Copy link
Contributor

swsnr commented Jan 7, 2015

@bbatsov I think the real issue is that he gets {}$ instead of ${}—what he should have got.

@drewr Does that happen in emacs -Q as well?

@drewr
Copy link
Author

drewr commented Jan 7, 2015

I type $ in double quotes a lot for combining strings, which is what I thought the feature was intended to ease. Anyway, when I run emacs -Q, it works fine (and is a useful feature!). I'll debug it on my end. I'm still finding things I need to migrate to 24.4, so it's probably a lingering incompatibility somewhere. Thanks!

@drewr drewr closed this as completed Jan 7, 2015
@swsnr swsnr reopened this Jan 7, 2015
@swsnr
Copy link
Contributor

swsnr commented Jan 7, 2015

@drewr I reopened, because it's still an issue in Puppet Mode, imho. I don't think that any other package should break this specific feature.

Could you give me a list of minor modes that are active in your Puppet Mode buffer? C-h m gives you this information. Also, do you use Autopair, Electric Pair Mode, Smartparens, or a similar extension?

@drewr
Copy link
Author

drewr commented Jan 7, 2015

Sure, thanks @lunaryorn. I don't use any specialized editing tools with puppet mode. The closest I come is paredit, but I only use it with lisp-derived modes.

The closest thing I see in my minor modes here is maybe Electric-Indent, but it's there indirectly.

Enabled minor modes: Auto-Composition Auto-Compression Auto-Encryption                                                                                                                           
Column-Number Diff-Auto-Refine Display-Time Electric-Indent                                                                                                                                      
Erc-Autojoin Erc-Button Erc-Fill Erc-Irccontrols Erc-List Erc-Match                                                                                                                              
Erc-Menu Erc-Move-To-Prompt Erc-Netsplit Erc-Networks Erc-Noncommands                                                                                                                            
Erc-Pcomplete Erc-Readonly Erc-Ring Erc-Stamp Erc-Track                                                                                                                                          
File-Name-Shadow Font-Lock Global-Font-Lock Line-Number Mouse-Wheel                                                                                                                              
Recentf Shell-Dirtrack Show-Paren Tooltip                                                                                                                                                        

I also find that entering $ in various places causes all sorts of weird behavior, like point moving back to another $ in a totally separate context.

@rski
Copy link
Member

rski commented Nov 1, 2016

@drewr if you do "C-h k $" while visiting a buffer in puppet-mode what do you get?
For what it's worth, i get "$ runs the command puppet-interpolate" in puppet mode and self-insert-command in other modes and its behaviour is fine for me in general.

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

4 participants