8000 rendering a table moves point in an unrelated buffer. · Issue #19 · kiwanami/emacs-ctable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
rendering a table moves point in an unrelated buffer. #19
Open
@mooseyboots

Description

@mooseyboots

in ctbl:cp-move-cursor , this snippet:

(unless (eql (selected-window) (get-buffer-window (current-buffer))) ;; this check passes, so next line runs:
        (set-window-point (get-buffer-window (current-buffer)) pos)) ;; moves point in non-Table buffer

moves the position of point not in the Table buffer, but in the buffer that was active before table rendering began.

i'm using ctable in a package i'm writing, but i'm not sure if anything in my own package could be responsible for this.

i'm not sure why the two lines are needed, if i comment them out, it seems to work fine, as point has already been correctly placed by the preceding code:

(cond
     (pos
      (goto-char pos) ;; this seems to suffice?
      ;; (unless (eql (selected-window) (get-buffer-window (current-buffer)))
      ;; (set-window-point (get-buffer-window (current-buffer)) pos))
      t)
     (t nil))

is there perhaps some other reason they're needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0