{"action":"created","issue":{"url":"https://api.github.com/repos/kaz-yos/eval-in-repl/issues/8","labels_url":"https://api.github.com/repos/kaz-yos/eval-in-repl/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/kaz-yos/eval-in-repl/issues/8/comments","events_url":"https://api.github.com/repos/kaz-yos/eval-in-repl/issues/8/events","html_url":"https://github.com/kaz-yos/eval-in-repl/pull/8","id":103702170,"number":8,"title":"Added optional argument to not move to next statement in eir-eval-in-shell","user":{"login":"dfh","id":207316,"avatar_url":"https://avatars.githubusercontent.com/u/207316?v=3","gravatar_id":"","url":"https://api.github.com/users/dfh","html_url":"https://github.com/dfh","followers_url":"https://api.github.com/users/dfh/followers","following_url":"https://api.github.com/users/dfh/following{/other_user}","gists_url":"https://api.github.com/users/dfh/gists{/gist_id}","starred_url":"https://api.github.com/users/dfh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfh/subscriptions","organizations_url":"https://api.github.com/users/dfh/orgs","repos_url":"https://api.github.com/users/dfh/repos","events_url":"https://api.github.com/users/dfh/events{/privacy}","received_events_url":"https://api.github.com/users/dfh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-28T11:30:53Z","updated_at":"2015-08-28T12:08:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kaz-yos/eval-in-repl/pulls/8","html_url":"https://github.com/kaz-yos/eval-in-repl/pull/8","diff_url":"https://github.com/kaz-yos/eval-in-repl/pull/8.diff","patch_url":"https://github.com/kaz-yos/eval-in-repl/pull/8.patch"},"body":"In shell scripts, sometimes I want to eval and move on to the next statement. But sometimes I don't want the point to move. This solution adds an optional argument to eir-eval-in-shell. That way, one can set up a second key binding to eval and stay in place, instead of to move on. For example like this:\r\n\r\n```elisp\r\n(add-hook 'sh-mode-hook\r\n          '(lambda ()\r\n             (local-set-key (kbd \"C-M-<return>\") (lambda ()\r\n                                                   (interactive)\r\n                                                   (eir-eval-in-shell t)))))\r\n```\r\n\r\nI am a total Elisp beginner. Please let me know if you think there is a better way to accomplish this!"},"comment":{"url":"https://api.github.com/repos/kaz-yos/eval-in-repl/issues/comments/135753433","html_url":"https://github.com/kaz-yos/eval-in-repl/pull/8#issuecomment-135753433","issue_url":"https://api.github.com/repos/kaz-yos/eval-in-repl/issues/8","id":135753433,"user":{"login":"kaz-yos","id":2884877,"avatar_url":"https://avatars.githubusercontent.com/u/2884877?v=3","gravatar_id":"","url":"https://api.github.com/users/kaz-yos","html_url":"https://github.com/kaz-yos","followers_url":"https://api.github.com/users/kaz-yos/followers","following_url":"https://api.github.com/users/kaz-yos/following{/other_user}","gists_url":"https://api.github.com/users/kaz-yos/gists{/gist_id}","starred_url":"https://api.github.com/users/kaz-yos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaz-yos/subscriptions","organizations_url":"https://api.github.com/users/kaz-yos/orgs","repos_url":"https://api.github.com/users/kaz-yos/repos","events_url":"https://api.github.com/users/kaz-yos/events{/privacy}","received_events_url":"https://api.github.com/users/kaz-yos/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T12:08:45Z","updated_at":"2015-08-28T12:08:45Z","body":"Thanks for your suggestion. This sounds like a good idea. I'll investigate if this tweak can be introduced to all supported languages."}}