#92 Fix switch-buffer confusion

已关闭
nuclearkev5 月之前创建 · 0 条评论

Normally, in GNU Emacs when you attempt to switch a buffer, the default is the last buffer you were on. It also appears to reorder them based on the order.

Currently, ait just keeps the order the same and the default buffer option is just whatever is the next buffer in the linked list. Sadly, the logic for the buffers isn't conducive to the GNU Emacs' style so there will likely be quite a bit of work required. Here are some ideas I have:

  • rewrite the buffer support to be different (don't like this idea)
  • have an array of indices that "reorder" the buffer linked list. We keep the memory in whatever order it's in and just reference the list of indices to see which buffer we're on (like this this)
  • put the buffers in an array and reorder it when there is a change (probably easier to understand)
Normally, in GNU Emacs when you attempt to switch a buffer, the default is the last buffer you were on. It also appears to reorder them based on the order. Currently, ait just keeps the order the same and the default buffer option is just whatever is the next buffer in the linked list. Sadly, the logic for the buffers isn't conducive to the GNU Emacs' style so there will likely be quite a bit of work required. Here are some ideas I have: - rewrite the buffer support to be different (don't like this idea) - have an array of indices that "reorder" the buffer linked list. We keep the memory in whatever order it's in and just reference the list of indices to see which buffer we're on (like this this) - put the buffers in an array and reorder it when there is a change (probably easier to understand)
Kevin "The Nuclear" Bloom 在代码提交 5 月之前 中引用了该工单
登录 并参与到对话中。
正在加载...
取消
保存
这个人很懒,什么都没留下。