{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6468","repository_url":"https://api.github.com/repos/syl20bnr/spacemacs","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6468/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6468/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6468/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/6468","id":163276049,"number":6468,"title":"Some features hang with font ligatures","user":{"login":"tobia","id":48756,"avatar_url":"https://avatars.githubusercontent.com/u/48756?v=3","gravatar_id":"","url":"https://api.github.com/users/tobia","html_url":"https://github.com/tobia","followers_url":"https://api.github.com/users/tobia/followers","following_url":"https://api.github.com/users/tobia/following{/other_user}","gists_url":"https://api.github.com/users/tobia/gists{/gist_id}","starred_url":"https://api.github.com/users/tobia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobia/subscriptions","organizations_url":"https://api.github.com/users/tobia/orgs","repos_url":"https://api.github.com/users/tobia/repos","events_url":"https://api.github.com/users/tobia/events{/privacy}","received_events_url":"https://api.github.com/users/tobia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/-%20Bug%20tracker%20-","name":"- Bug tracker -","color":"fef2c0"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/Fonts","name":"Fonts","color":"207de5"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/OS%20X","name":"OS X","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-30T21:57:38Z","updated_at":"2016-07-21T15:57:01Z","closed_at":null,"body":"#### Description\r\nSome features stop responding when some font ligatures are enabled on Mac OS X with:\r\n\r\n    (set-char-table-range composition-function-table ...)\r\n\r\n#### Reproduction guide\r\n- Set your font to [Fira Code](https://github.com/tonsky/FiraCode)\r\n- Copy the settings found here: https://github.com/tonsky/FiraCode/wiki/Setting-up-Emacs\r\n- Restart Emacs\r\n- Verify that these combinations of character are replaced with ligatures: `<=` `!=` `>=`\r\n- Open `SPC T h` or `SPC :` or a number of other functions\r\n\r\n*Observed behaviour:*\r\n- Emacs goes to 99% CPU. You need to close the helm buffer (Cmd-w) and then hit Esc to make Spacemacs work again.\r\n\r\n*Expected behaviour:*\r\n- The requested function should just work, with any sequence of symbols replaced by its ligature as appropriate\r\n\r\nI tried to narrow down which of the settings cause it to hang. I got it down to the following two:\r\n\r\n    (let ((alist '((45 . \".\\\\(?:\\\\(?:-[>-]\\\\|<<\\\\|>>\\\\)\\\\|[<>}~-]\\\\)\")\r\n                   (46 . \".\\\\(?:\\\\(?:\\\\.[.<]\\\\)\\\\|[.=-]\\\\)\"))))\r\n      (dolist (char-regexp alist)\r\n        (set-char-table-range composition-function-table (car char-regexp)\r\n                              `([,(cdr char-regexp) 0 font-shape-gstring]))))\r\n\r\nEither of the two (or both) make Emacs hang as described. They seem to enable the ligatures that start with a `-` or a `.` which should be:\r\n\r\n    -> --> ->> -< -<< --> -- --- -~ \r\n    .= .- .. ... ..< \r\n\r\n#### System Info\r\n- OS: darwin\r\n- Emacs: 24.5.1\r\n- Spacemacs: 0.105.21\r\n- Spacemacs branch: master (rev. 0283f64)\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(emacs-lisp \r\n haskell\r\n (osx :variables osx-use-option-as-meta nil))\r\n```\r\n\r\n#### Backtrace\r\n\r\n![screen shot 2016-06-30 at 23 54 29](https://cloud.githubusercontent.com/assets/48756/16505616/29e64b82-3f1e-11e6-8db6-f669934154f8.png)\r\n\r\n(sorry, I couldn't figure out how to copy or save the backtrace buffer contents)"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/234299072","html_url":"https://github.com/syl20bnr/spacemacs/issues/6468#issuecomment-234299072","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/6468","id":234299072,"user":{"login":"CarlQLange","id":859820,"avatar_url":"https://avatars.githubusercontent.com/u/859820?v=3","gravatar_id":"","url":"https://api.github.com/users/CarlQLange","html_url":"https://github.com/CarlQLange","followers_url":"https://api.github.com/users/CarlQLange/followers","following_url":"https://api.github.com/users/CarlQLange/following{/other_user}","gists_url":"https://api.github.com/users/CarlQLange/gists{/gist_id}","starred_url":"https://api.github.com/users/CarlQLange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarlQLange/subscriptions","organizations_url":"https://api.github.com/users/CarlQLange/orgs","repos_url":"https://api.github.com/users/CarlQLange/repos","events_url":"https://api.github.com/users/CarlQLange/events{/privacy}","received_events_url":"https://api.github.com/users/CarlQLange/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T15:57:01Z","updated_at":"2016-07-21T15:57:01Z","body":":+1: I'm seeing this too. Going to have a little debugging session soon."}}
{"actor":{"display_login":"CarlQLange"}}