{"action":"created","issue":{"url":"https://api.github.com/repos/Fuco1/smartparens/issues/471","labels_url":"https://api.github.com/repos/Fuco1/smartparens/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/Fuco1/smartparens/issues/471/comments","events_url":"https://api.github.com/repos/Fuco1/smartparens/issues/471/events","html_url":"https://github.com/Fuco1/smartparens/issues/471","id":82488526,"number":471,"title":"``'' in LaTeX mode doesn't work properly","user":{"login":"mrkkrp","id":8165792,"avatar_url":"https://avatars.githubusercontent.com/u/8165792?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkkrp","html_url":"https://github.com/mrkkrp","followers_url":"https://api.github.com/users/mrkkrp/followers","following_url":"https://api.github.com/users/mrkkrp/following{/other_user}","gists_url":"https://api.github.com/users/mrkkrp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkkrp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkkrp/subscriptions","organizations_url":"https://api.github.com/users/mrkkrp/orgs","repos_url":"https://api.github.com/users/mrkkrp/repos","events_url":"https://api.github.com/users/mrkkrp/events{/privacy}","received_events_url":"https://api.github.com/users/mrkkrp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Fuco1/smartparens/labels/needs-verification","name":"needs-verification","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-05-29T16:10:48Z","updated_at":"2015-10-27T15:34:12Z","closed_at":"2015-10-27T08:14:32Z","body":"I can't believe such an obvious bug exists, but nevertheless, \\`\\`'' thing doesn't work in LaTeX. How to reproduce:\r\n\r\n```\r\nemacs -Q\r\n\r\n(package-initialize) ; to load the package\r\n(require 'smartparens-config)\r\n(smartparens-global-mode 1)\r\n```\r\n\r\nNow go to any LaTeX file and enter \". Actually \\`\\`' is entered! I guess it should be \\`\\`''. Maybe it has to do with auctex thing, because it has it has its own trickery to handle things like \\`\\`stuff''.\r\n\r\nBut after all I always disable this nasty conversion anyway, because entering quotes like “” is not a problem. So, I just wanted to disable the whole \\`\\`'' pair. Here is what I've got:\r\n\r\n```\r\n(advice-add 'TeX-insert-quote :filter-args (lambda (&rest stuff) '(t)))\r\n;; ↑ disables ``'' magic in vanilla LaTeX mode, I've tried with and without\r\n;; it, with this thing smartparens inserts ``''' — which is no better.\r\n\r\n(sp-local-pair '(tex-mode plain-tex-mode latex-mode)\r\n               \"``\" \"''\"\r\n               :trigger \"\\\"\"\r\n               :unless '(sp-latex-point-after-backslash)\r\n               :post-handlers '(sp-latex-skip-double-quote)\r\n               :actions nil)\r\n;; ↑ I've read documentation for ‘sp-local-pair’ and decided that this\r\n;; should disable this thing, but it does so only when I manually evaluate\r\n;; it after entering LaTeX mode, it doesn't work in config.\r\n```\r\n\r\nI really hope that I just don't understand something, otherwise I don't know what to think.\r\n\r\nP.S. Emacs is compiled from repo a few days ago. smartparens is from MELPA.\r\n"},"comment":{"url":"https://api.github.com/repos/Fuco1/smartparens/issues/comments/151542864","html_url":"https://github.com/Fuco1/smartparens/issues/471#issuecomment-151542864","issue_url":"https://api.github.com/repos/Fuco1/smartparens/issues/471","id":151542864,"user":{"login":"Fuco1","id":2664959,"avatar_url":"https://avatars.githubusercontent.com/u/2664959?v=3","gravatar_id":"","url":"https://api.github.com/users/Fuco1","html_url":"https://github.com/Fuco1","followers_url":"https://api.github.com/users/Fuco1/followers","following_url":"https://api.github.com/users/Fuco1/following{/other_user}","gists_url":"https://api.github.com/users/Fuco1/gists{/gist_id}","starred_url":"https://api.github.com/users/Fuco1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fuco1/subscriptions","organizations_url":"https://api.github.com/users/Fuco1/orgs","repos_url":"https://api.github.com/users/Fuco1/repos","events_url":"https://api.github.com/users/Fuco1/events{/privacy}","received_events_url":"https://api.github.com/users/Fuco1/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T15:34:12Z","updated_at":"2015-10-27T15:34:12Z","body":"Thanks both for confirmation"}}