{"action":"created","issue":{"url":"https://api.github.com/repos/emacs-ess/ESS/issues/217","labels_url":"https://api.github.com/repos/emacs-ess/ESS/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/emacs-ess/ESS/issues/217/comments","events_url":"https://api.github.com/repos/emacs-ess/ESS/issues/217/events","html_url":"https://github.com/emacs-ess/ESS/issues/217","id":100739679,"number":217,"title":"Tidy up indentation styles","user":{"login":"lionel-","id":4465050,"avatar_url":"https://avatars.githubusercontent.com/u/4465050?v=3","gravatar_id":"","url":"https://api.github.com/users/lionel-","html_url":"https://github.com/lionel-","followers_url":"https://api.github.com/users/lionel-/followers","following_url":"https://api.github.com/users/lionel-/following{/other_user}","gists_url":"https://api.github.com/users/lionel-/gists{/gist_id}","starred_url":"https://api.github.com/users/lionel-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lionel-/subscriptions","organizations_url":"https://api.github.com/users/lionel-/orgs","repos_url":"https://api.github.com/users/lionel-/repos","events_url":"https://api.github.com/users/lionel-/events{/privacy}","received_events_url":"https://api.github.com/users/lionel-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-13T10:59:13Z","updated_at":"2015-08-17T20:41:02Z","closed_at":null,"body":"The next ESS version will feature a major redesign of the indentation engine and settings and I think we should take this opportunity to simplify the default styles. They are currently a bit messy because:\r\n\r\n- most of the styles are quite similar;\r\n- the names of the styles now seem a bit arbitrary. It is not clear why the C++ or GNU styles are called like that for example.\r\n\r\nI think we could narrow them down to 3 styles:\r\n\r\n- RRR, which could be renamed to ESS\r\n- RStudio, which would provide compatibility with a major editor\r\n- A \"hanging\" style. Basically the RRR settings with `ess-offset-block` set to `open-delim`. Compared to RRR, this style would not try to save horizontal space. E.g.:\r\n\r\n```r\r\n# Instead of\r\nobject <- lapply(object, function(x) {\r\n    body\r\n},\r\nargument)\r\n\r\n# The \"hanging\" or \"stretched\" style would yield\r\nobject <- lapply(object, function(x) {\r\n                             body\r\n                         },\r\n                 argument)\r\n```\r\n\r\nThe documentation could provide the deprecated styles as a reference for users who were relying on them."},"comment":{"url":"https://api.github.com/repos/emacs-ess/ESS/issues/comments/131955691","html_url":"https://github.com/emacs-ess/ESS/issues/217#issuecomment-131955691","issue_url":"https://api.github.com/repos/emacs-ess/ESS/issues/217","id":131955691,"user":{"login":"ess-core","id":1656136,"avatar_url":"https://avatars.githubusercontent.com/u/1656136?v=3","gravatar_id":"","url":"https://api.github.com/users/ess-core","html_url":"https://github.com/ess-core","followers_url":"https://api.github.com/users/ess-core/followers","following_url":"https://api.github.com/users/ess-core/following{/other_user}","gists_url":"https://api.github.com/users/ess-core/gists{/gist_id}","starred_url":"https://api.github.com/users/ess-core/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ess-core/subscriptions","organizations_url":"https://api.github.com/users/ess-core/orgs","repos_url":"https://api.github.com/users/ess-core/repos","events_url":"https://api.github.com/users/ess-core/events{/privacy}","received_events_url":"https://api.github.com/users/ess-core/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T20:41:02Z","updated_at":"2015-08-17T20:41:02Z","body":"what is the point of that?  we already have a list of styles.  why change\nits name?\n\nOn Mon, Aug 17, 2015 at 4:39 PM, Vitalie Spinu <notifications@github.com>\nwrote:\n\n> > But removing old \"loved\" styles - that have existed for a very long time\n> is not feasible, at least not in one step IMO:\n>\n> Indeed. We need a fall back mechanism for styles. How about  having a\n> `ess-obsoleted-styles-alist` which we check when applying a style?\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/emacs-ess/ESS/issues/217#issuecomment-131955289\n>         [[alternative HTML version deleted]]\n>\n> _______________________________________________\n> ESS-core list: https://stat.ethz.ch/mailman/listinfo/ess-core\n>\n"}}