{"action":"created","issue":{"url":"https://api.github.com/repos/akicho8/string-inflection/issues/12","repository_url":"https://api.github.com/repos/akicho8/string-inflection","labels_url":"https://api.github.com/repos/akicho8/string-inflection/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/akicho8/string-inflection/issues/12/comments","events_url":"https://api.github.com/repos/akicho8/string-inflection/issues/12/events","html_url":"https://github.com/akicho8/string-inflection/issues/12","id":95452037,"number":12,"title":"should be using bounds-of-thing-at-point","user":{"login":"jgarvin","id":102322,"avatar_url":"https://avatars.githubusercontent.com/u/102322?v=3","gravatar_id":"","url":"https://api.github.com/users/jgarvin","html_url":"https://github.com/jgarvin","followers_url":"https://api.github.com/users/jgarvin/followers","following_url":"https://api.github.com/users/jgarvin/following{/other_user}","gists_url":"https://api.github.com/users/jgarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/jgarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgarvin/subscriptions","organizations_url":"https://api.github.com/users/jgarvin/orgs","repos_url":"https://api.github.com/users/jgarvin/repos","events_url":"https://api.github.com/users/jgarvin/events{/privacy}","received_events_url":"https://api.github.com/users/jgarvin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-07-16T14:59:17Z","updated_at":"2016-12-14T09:43:32Z","closed_at":null,"body":"Instead of doing your own forward scanning for words, you should be using the emacs concept of 'symbol'. What emacs calls a symbol basically corresponds to a variable name in all language modes. This has the advantage of behaving properly in all modes (for example string inflection does not work properly in emacs-lisp-mode) and even when using subword mode. It would also make string-inflection behave more consistently with other emacs commands. Currently if point is right after a symbol string-inflection will scan forward for the next word, but this is inconsistent with other emacs commands which would operate on the preceding word.\n\nIt would also simplify your code. Instead of trying to scan forward for a word, just call (bounds-of-thing-at-point 'symbol). If it can't find something just return an error.\n"},"comment":{"url":"https://api.github.com/repos/akicho8/string-inflection/issues/comments/266989036","html_url":"https://github.com/akicho8/string-inflection/issues/12#issuecomment-266989036","issue_url":"https://api.github.com/repos/akicho8/string-inflection/issues/12","id":266989036,"user":{"login":"wbolster","id":748944,"avatar_url":"https://avatars.githubusercontent.com/u/748944?v=3","gravatar_id":"","url":"https://api.github.com/users/wbolster","html_url":"https://github.com/wbolster","followers_url":"https://api.github.com/users/wbolster/followers","following_url":"https://api.github.com/users/wbolster/following{/other_user}","gists_url":"https://api.github.com/users/wbolster/gists{/gist_id}","starred_url":"https://api.github.com/users/wbolster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbolster/subscriptions","organizations_url":"https://api.github.com/users/wbolster/orgs","repos_url":"https://api.github.com/users/wbolster/repos","events_url":"https://api.github.com/users/wbolster/events{/privacy}","received_events_url":"https://api.github.com/users/wbolster/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T09:43:32Z","updated_at":"2016-12-14T09:43:32Z","body":"perhaps this would help:\r\n\r\n```elisp\r\n(with-syntax-table TABLE &rest BODY)\r\n\r\nEvaluate BODY with syntax table of current buffer set to TABLE.\r\nThe syntax table of the current buffer is saved, BODY is evaluated, and the\r\nsaved table is restored, even in case of an abnormal exit.\r\nValue is what BODY returns.\r\n```"}}
{"actor":{"display_login":"wbolster"}}