{"action":"created","issue":{"url":"https://api.github.com/repos/erlang/otp/issues/932","labels_url":"https://api.github.com/repos/erlang/otp/issues/932/labels{/name}","comments_url":"https://api.github.com/repos/erlang/otp/issues/932/comments","events_url":"https://api.github.com/repos/erlang/otp/issues/932/events","html_url":"https://github.com/erlang/otp/pull/932","id":124557075,"number":932,"title":"Do not consider \".\" part of names in edlin","user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-01T18:47:24Z","updated_at":"2016-01-02T03:46:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/erlang/otp/pulls/932","html_url":"https://github.com/erlang/otp/pull/932","diff_url":"https://github.com/erlang/otp/pull/932.diff","patch_url":"https://github.com/erlang/otp/pull/932.patch"},"body":"Today, if you press Ctrl+W inside erl, it will erase word chars including dots.\r\n\r\nThis may have made sense in the past when Erlang had packages, but today\r\nconsidering the most common case for dots inside erl is to work with records,\r\nconsidering the dot part of the word is rather a mistake.\r\n\r\nFor example, imagine the following code, where [] is the cursor:\r\n\r\n    1> S#elixir_scope.name[]\r\n\r\nWhen I press Ctrl+W it erases all up to #:\r\n\r\n    1> S#[]\r\n\r\nThis patch changes it to the dot is no longer considered part of the name:\r\n\r\n    1> S#elixir_scope.[]\r\n\r\nWhich is rather expected behaviour for most use cases of dot in Erlang."},"comment":{"url":"https://api.github.com/repos/erlang/otp/issues/comments/168361607","html_url":"https://github.com/erlang/otp/pull/932#issuecomment-168361607","issue_url":"https://api.github.com/repos/erlang/otp/issues/932","id":168361607,"user":{"login":"ferd","id":111141,"avatar_url":"https://avatars.githubusercontent.com/u/111141?v=3","gravatar_id":"","url":"https://api.github.com/users/ferd","html_url":"https://github.com/ferd","followers_url":"https://api.github.com/users/ferd/followers","following_url":"https://api.github.com/users/ferd/following{/other_user}","gists_url":"https://api.github.com/users/ferd/gists{/gist_id}","starred_url":"https://api.github.com/users/ferd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferd/subscriptions","organizations_url":"https://api.github.com/users/ferd/orgs","repos_url":"https://api.github.com/users/ferd/repos","events_url":"https://api.github.com/users/ferd/events{/privacy}","received_events_url":"https://api.github.com/users/ferd/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T03:46:37Z","updated_at":"2016-01-02T03:46:37Z","body":"+1 on this. Seems reasonable for very common cases. The downsides might be that 12.523[] now yields 12.[] instead, but that might be acceptable?"}}