{"action":"created","issue":{"url":"https://api.github.com/repos/Fuco1/smartparens/issues/451","labels_url":"https://api.github.com/repos/Fuco1/smartparens/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/Fuco1/smartparens/issues/451/comments","events_url":"https://api.github.com/repos/Fuco1/smartparens/issues/451/events","html_url":"https://github.com/Fuco1/smartparens/issues/451","id":66792651,"number":451,"title":"Double quote behaviour is wrong in slime-repl","user":{"login":"tmccombs","id":2541726,"avatar_url":"https://avatars.githubusercontent.com/u/2541726?v=3","gravatar_id":"","url":"https://api.github.com/users/tmccombs","html_url":"https://github.com/tmccombs","followers_url":"https://api.github.com/users/tmccombs/followers","following_url":"https://api.github.com/users/tmccombs/following{/other_user}","gists_url":"https://api.github.com/users/tmccombs/gists{/gist_id}","starred_url":"https://api.github.com/users/tmccombs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmccombs/subscriptions","organizations_url":"https://api.github.com/users/tmccombs/orgs","repos_url":"https://api.github.com/users/tmccombs/repos","events_url":"https://api.github.com/users/tmccombs/events{/privacy}","received_events_url":"https://api.github.com/users/tmccombs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-07T06:28:16Z","updated_at":"2015-04-09T16:08:09Z","closed_at":null,"body":"In the slime-repl, double quotes do not work at all.\r\n\r\nThe first time you enter a double quote it inserts a single quote, but the second time, it insertst two:\r\n\r\n1:   `(format nil |)`\r\n2 :  `(format nil \"|)` After pressing \"\r\n3:   `(format nil \"foo|)` \r\n4:   `(format nil \"foo\"|\")` after pressing \" again\r\n\r\nThis only seems to happen inside of an s-expre (a string as the top level expression works fine).\r\nIt is extremely inconvenient because it leaves me with an odd number of quotes, and I have to either use C-q \" to insert a single quote or C-0 &lt;DEL&gt; to delete one of the quotes. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Fuco1/smartparens/issues/comments/91276081","html_url":"https://github.com/Fuco1/smartparens/issues/451#issuecomment-91276081","issue_url":"https://api.github.com/repos/Fuco1/smartparens/issues/451","id":91276081,"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-04-09T16:08:09Z","updated_at":"2015-04-09T16:08:09Z","body":"This is a recurring problem with REPLs.  A good solution would be to have a hook or some wrapper around the parsing code that would narrow to specific region (in our case, the REPL/comint input line) and does the matching there.\r\n\r\nOne could then add some code to the repl mode hook to set up appropriate narrowing.  In case of comint based modes, there could be a predefined function for this.\r\n\r\nI might look at this over the weekend, or if you think you can fix it, I'm happy to take a patch :package: \r\n\r\nThe top-level entry point to the expression parser is `sp-get-thing`"}}