-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Problem with insertion of double-quotes defined as trigger in smartparens-latex #772
Comments
Perhaps related: in the following document
typing |
@nidrissi Not sure if related but this bug is hilarious either way :D I think it would be better if you started a new issue, thanks! The issue from OP actually seems to be already fixed on master, at least I can't reproduce it with the given setup. @TobiasZawada could you please verify that this is fixed? |
I am getting the same problem. |
I had the same problem, but after some experimenting, I managed to fix it. Note that this only applies to german quotes, not to french ones. It seems this issue is caused by Smartparens and AUCTeX disagreeing over the type of quotes to be inserted. I configured AUCTeX to automatically expand I first registered german quote syntax as a new pair. Note the lack of a (sp-with-modes '(tex-mode
plain-tex-mode
latex-mode
LaTeX-mode)
(sp-local-pair "\"`" "\"'"
:unless '(sp-latex-point-after-backslash sp-in-math-p)
:post-handlers '(sp-latex-skip-double-quote))) Then I configured AUCTeX to automatically insert the german opening quote, when '(TeX-quote-language-alist (quote (("ngerman" "\"`" "\"'" nil)))) |
Expected behavior
If I press " in the middle between
Testing
andquotes
of the following LaTeX textI expect to get
with point placed between
`
and'
.Actual behavior
I get the following strange auto-insertion:
Steps to reproduce the problem
Run
(require 'smartparens-latex)
open the above text file, activatesmartparens-mode
and type " in the middle betweenTesting
andquotes
.Environment & version information
smartparens
version: melpa, 20170708.1326latex-mode
from AucTeXM-x emacs-version
): 25.1 on linux and GNU Emacs 25.2.1 (x86_64-unknown-cygwin, GTK+ Version 3.22.10) of 2017-04-21The text was updated successfully, but these errors were encountered: