{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/9564","repository_url":"https://api.github.com/repos/syl20bnr/spacemacs","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/9564/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/9564/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/9564/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/9564","id":256325247,"number":9564,"title":"M-backspace does not effectively delete words in ansi-term","user":{"login":"wizmer","id":1685078,"avatar_url":"https://avatars1.githubusercontent.com/u/1685078?v=4","gravatar_id":"","url":"https://api.github.com/users/wizmer","html_url":"https://github.com/wizmer","followers_url":"https://api.github.com/users/wizmer/followers","following_url":"https://api.github.com/users/wizmer/following{/other_user}","gists_url":"https://api.github.com/users/wizmer/gists{/gist_id}","starred_url":"https://api.github.com/users/wizmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wizmer/subscriptions","organizations_url":"https://api.github.com/users/wizmer/orgs","repos_url":"https://api.github.com/users/wizmer/repos","events_url":"https://api.github.com/users/wizmer/events{/privacy}","received_events_url":"https://api.github.com/users/wizmer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-09-08T17:45:54Z","updated_at":"2017-10-03T06:57:54Z","closed_at":"2017-10-03T06:57:54Z","author_association":"NONE","body":"#### Description :octocat:\r\nM-backspace visually delete a word in ansi-term but when Enter is pressed the deleted word is still part of the command.\r\n\r\n#### Reproduction guide :beetle:\r\n- Start Emacs\r\n- M-x ansi-term\r\n- Type \"ls\"\r\n- Delete it using M-backspace\r\n- press Enter\r\n\r\n*Observed behaviour:* :eyes: :broken_heart:\r\nThe \"ls\" command is performed even it had been deleted\r\n\r\n*Expected behaviour:* :heart: :smile:\r\nThe \"ls\" command should not be performed.\r\nThe problem is that M-backspace is overriden by clean-aindent-mode and set to (clean-aindent--bsunindent ARG)\r\n\r\n*Resolution:* :heart: :smile:\r\nDisable clean-aindent-mode in term-mode\r\nIn my init.el I put the following hook:\r\n`(add-hook 'term-mode-hook (lambda () (clean-aindent-mode -1)))`\r\n\r\nBut I think this should be enabled by default, or at least when the shell layer is activated (which is not the case either).\r\nUnfortunatly I don't know about spacemacs internals to provide a PR.\r\n\r\n#### System Info :computer:\r\n- OS: gnu/linux\r\n- Emacs: 24.5.1\r\n- Spacemacs: 0.200.9\r\n- Spacemacs branch: master (rev. 8e1af14)\r\n- Graphic display: t\r\n- Distribution: spacemacs\r\n- Editing style: vim\r\n- Completion: helm\r\n- Layers:\r\n```elisp\r\n(python helm emacs-lisp)\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/333756812","html_url":"https://github.com/syl20bnr/spacemacs/issues/9564#issuecomment-333756812","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/9564","id":333756812,"user":{"login":"wizmer","id":1685078,"avatar_url":"https://avatars1.githubusercontent.com/u/1685078?v=4","gravatar_id":"","url":"https://api.github.com/users/wizmer","html_url":"https://github.com/wizmer","followers_url":"https://api.github.com/users/wizmer/followers","following_url":"https://api.github.com/users/wizmer/following{/other_user}","gists_url":"https://api.github.com/users/wizmer/gists{/gist_id}","starred_url":"https://api.github.com/users/wizmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wizmer/subscriptions","organizations_url":"https://api.github.com/users/wizmer/orgs","repos_url":"https://api.github.com/users/wizmer/repos","events_url":"https://api.github.com/users/wizmer/events{/privacy}","received_events_url":"https://api.github.com/users/wizmer/received_events","type":"User","site_admin":false},"created_at":"2017-10-03T06:57:53Z","updated_at":"2017-10-03T06:57:53Z","author_association":"NONE","body":"I understand. I'll will open in [clean-aindent](https://github.com/pmarinov/clean-aindent-mode).\r\nHence I am closing it there."}}
{"actor":{"display_login":"wizmer"}}