Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2021-05-01 Thread Gustavo Barros
Hi Bastien, On Sat, 01 May 2021 at 17:28, Bastien wrote: Hi Gustavo, Gustavo Barros writes: The Org line commands -- `org-beginning-of-line', `org-end-of-line', and `org-kill-line' -- all take due care for the presence of `visual-line-mode' to do the right thing if it is turned on.

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2021-05-01 Thread Bastien
Hi Gustavo, Gustavo Barros writes: > The Org line commands -- `org-beginning-of-line', `org-end-of-line', and > `org-kill-line' -- all take due care for the presence of > `visual-line-mode' to do the right thing if it is turned on. However, > when `visual-line-mode' is indeed on, the

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2020-12-22 Thread Gustavo Barros
On Tue, 22 Dec 2020 at 17:24, Gustavo Barros wrote: Damn! Sorry for the noise. It *doesn't* work, and disables Org's own remappings, of course. Just as I sent I realized I had something else enabled which was doing the actual job (my previous take on this thread). Back on the

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2020-12-22 Thread Gustavo Barros
On Tue, 22 Dec 2020 at 17:18, Gustavo Barros wrote: Anyway, what I came up is a slight variation from Marco's approach, which may be just general enough to be employed by Org. #+begin_src emacs-lisp (add-hook 'visual-line-mode-hook #'my/visual-line-mode-hook-for-org) (defun

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2020-12-22 Thread Gustavo Barros
Hi Bastien, Hi Marco, On Fri, 04 Sep 2020 at 14:37, Bastien wrote: Hi Gustavo, Gustavo Barros writes: I do think my other workaround is worth pondering to be included, so that this would work out-of-the-box. Do you see any particular drawbacks of setting these bindings directly (that is,

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2020-09-04 Thread Gustavo Barros
Hi Bastien, On Fri, 04 Sep 2020 at 14:37, Bastien wrote: You mean by adding something like (org-defkey org-mode-map (kbd "C-a") #'org-beginning-of-line) in org-keys.el? I'm pretty sure such "hard" remapping breaks an Emacs convention--I'll ask emacs-devel, because that would indeed fix the

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2020-09-04 Thread Bastien
Hi Gustavo, Gustavo Barros writes: > I do think my other workaround is worth pondering to be included, so > that this would work out-of-the-box. Do you see any particular > drawbacks of setting these bindings directly (that is, not by remapping) > in `org-mode-map'? You mean by adding

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2020-09-04 Thread Gustavo Barros
Hi Bastien, On Fri, 04 Sep 2020 at 17:20, Bastien wrote: > Hi Marco, > > Marco Wahl writes: > >> (add-hook 'visual-line-mode-hook >> (lambda () (when (derived-mode-p 'org-mode) >>(local-set-key (kbd "C-a") #'org-beginning-of-line) >>

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2020-09-04 Thread Bastien
Hi Marco, Marco Wahl writes: > (add-hook 'visual-line-mode-hook > (lambda () (when (derived-mode-p 'org-mode) >(local-set-key (kbd "C-a") #'org-beginning-of-line) >(local-set-key (kbd "C-e") #'org-end-of-line) >

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2020-07-28 Thread Gustavo Barros
Hi Marco, thank you for your answer. On Tue, 28 Jul 2020 at 17:34, Marco Wahl wrote: >> I'm not sure this is a "bug", strictly speaking, or if it is correct >> unfortunate behavior. Anyway, is there something that could be done >> from Org's side? > > Also not sure if this is a bug. But you

Re: Bug: Org line commands and visual-line mode bindings [9.3.7 (9.3.7-15-gc9abb4-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20200727/)]

2020-07-28 Thread Marco Wahl
Hi Gustavo, > The Org line commands -- `org-beginning-of-line', `org-end-of-line', and > `org-kill-line' -- all take due care for the presence of > `visual-line-mode' to do the right thing if it is turned on. However, > when `visual-line-mode' is indeed on, the bindings on >