{"action":"created","issue":{"url":"https://api.github.com/repos/Wilfred/remacs/issues/786","repository_url":"https://api.github.com/repos/Wilfred/remacs","labels_url":"https://api.github.com/repos/Wilfred/remacs/issues/786/labels{/name}","comments_url":"https://api.github.com/repos/Wilfred/remacs/issues/786/comments","events_url":"https://api.github.com/repos/Wilfred/remacs/issues/786/events","html_url":"https://github.com/Wilfred/remacs/pull/786","id":331424288,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MTU3MDE2","number":786,"title":"[WIP] Port get-buffer-create","user":{"login":"nitishch","id":6604116,"node_id":"MDQ6VXNlcjY2MDQxMTY=","avatar_url":"https://avatars0.githubusercontent.com/u/6604116?v=4","gravatar_id":"","url":"https://api.github.com/users/nitishch","html_url":"https://github.com/nitishch","followers_url":"https://api.github.com/users/nitishch/followers","following_url":"https://api.github.com/users/nitishch/following{/other_user}","gists_url":"https://api.github.com/users/nitishch/gists{/gist_id}","starred_url":"https://api.github.com/users/nitishch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitishch/subscriptions","organizations_url":"https://api.github.com/users/nitishch/orgs","repos_url":"https://api.github.com/users/nitishch/repos","events_url":"https://api.github.com/users/nitishch/events{/privacy}","received_events_url":"https://api.github.com/users/nitishch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-12T03:28:15Z","updated_at":"2018-06-12T17:50:45Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/Wilfred/remacs/pulls/786","html_url":"https://github.com/Wilfred/remacs/pull/786","diff_url":"https://github.com/Wilfred/remacs/pull/786.diff","patch_url":"https://github.com/Wilfred/remacs/pull/786.patch"},"body":"Ports `get-buffer-create`. I didn't port the functions `reset_buffer` and `reset_buffer_local_variables` as the branch became bigger than I expected.\r\n\r\nPending questions:\r\n\r\n- I couldn't understand what `XSETBUFFER (buffer, b);` (line no. 463 in `buffer.c) does.\r\n- Why are the `bool_bf` fields in `Lisp_Buffer` and `Lisp_Buffer_Text` combined to a single `flags` member? At least temporarily, I put the fields as they are in C code.\r\n\r\nI guess because of the above, the code doesn't compile now.\r\n\r\nOther changes:\r\n- Introduced `Lisp_Interval` type\r\n- Made `buffers::current_buffer()` return a `LispBufferRef` as opposed to a `LispObject`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Wilfred/remacs/issues/comments/396677136","html_url":"https://github.com/Wilfred/remacs/pull/786#issuecomment-396677136","issue_url":"https://api.github.com/repos/Wilfred/remacs/issues/786","id":396677136,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjY3NzEzNg==","user":{"login":"shaleh","id":1377996,"node_id":"MDQ6VXNlcjEzNzc5OTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1377996?v=4","gravatar_id":"","url":"https://api.github.com/users/shaleh","html_url":"https://github.com/shaleh","followers_url":"https://api.github.com/users/shaleh/followers","following_url":"https://api.github.com/users/shaleh/following{/other_user}","gists_url":"https://api.github.com/users/shaleh/gists{/gist_id}","starred_url":"https://api.github.com/users/shaleh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaleh/subscriptions","organizations_url":"https://api.github.com/users/shaleh/orgs","repos_url":"https://api.github.com/users/shaleh/repos","events_url":"https://api.github.com/users/shaleh/events{/privacy}","received_events_url":"https://api.github.com/users/shaleh/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T17:50:45Z","updated_at":"2018-06-12T17:50:45Z","author_association":"COLLABORATOR","body":"From the Rust perspective the bitfields are opaque blobs of memory. That is why they are a flags field. Checkout #781 for details."}}
{"actor":{"display_login":"shaleh"}}