Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-mode cannot swap lists #862

Open
jiangshanyu opened this issue Mar 5, 2024 · 4 comments
Open

org-mode cannot swap lists #862

jiangshanyu opened this issue Mar 5, 2024 · 4 comments

Comments

@jiangshanyu
Copy link

Under emacs org mode, when trying to swap lists (option+shift+uparrow, or just option+uparrow), receiving a user-error: No further hunks found.

@purcell
Copy link
Owner

purcell commented Mar 5, 2024

I suspect this is something local to your configuration, because I can't reproduce this locally. It sounds like the bindings are triggering commands in diff-hl-mode, but for me those two bindings just cause the normal org-mode actions.

@jiangshanyu
Copy link
Author

Hummm, I tried the following:

  1. removed init-local, the same error occurs;
  2. removed .emacs.d completely, it worked;
  3. with a clean install, no additional touches, the same error occurs.

GNU Emacs 29.2, used in terminal, on Sonoma 14.4.

@dcorking
Copy link
Contributor

I can't get those 2 key combinations to work at all in Terminal with Emacs 29.3, Sonoma 14.4. Emacs sees them as <up> which is mapped to previous-line.

(In GUI mode, for me, option-shift-uparrow is S-up that calls (org-shiftup) as I expected: it will swap list rows or kill table rows.
option-uparrow is M-<up> that maps to (org-metaup) that will swap two items (lists, subtrees, tables , paragraphs). I expect that is what is broken for you.)

If you still need help,

  1. What are the outputs of C-h k (describe-key) for your key combinations?
  2. What are your key actions in Terminal profile? [I don't have any set for those keys.]
  3. Does everything work as expected in GUI mode?
  4. (By the way, do you have "Use Option as Meta Key" set? [I don't] do you start emacs from zsh? and what are your relevant customizations, if any, in $HOME/.zshrc)

@jiangshanyu
Copy link
Author

Thanks @dcorking! Sorry for my late in reply -- I was working towards several deadlines and then forgot about it.

What are the outputs of C-h k (describe-key) for your key combinations?
Please find the output below:
"runs the command diff-hl-previous-hunk (found in
diff-hl-mode-map), which is an interactive byte-compiled Lisp function
in ‘diff-hl.el’.
It is bound to M-ESC and C-x v [.
(diff-hl-previous-hunk)
Go to the beginning of the previous hunk in the current buffer.
[back]
"

Does everything work as expected in GUI mode?
I don't have GUI installed, but the terminal version works before me updating to the current version of emacs.
(By the way, do you have "Use Option as Meta Key" set?
Yes, I have this set already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants