emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-indent-mode and erratic checkbox behavior?
@ 2014-08-29 11:12 ardumont
  2014-08-29 12:04 ` ardumont
  0 siblings, 1 reply; 3+ messages in thread
From: ardumont @ 2014-08-29 11:12 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I have a minor visual annoyance with checkboxes and `org-indent-mode`.
As I move to next/previous line, headlines stay still (ok) but checkbox keeps going forward and backward (2 blank spaces).
(I did not change the default binding C-n/C-p which are still bind to the default next-line/previous-line.)

I assume (but I can be wrong, thus feel free to correct me):
- it's not correct behavior because it does not do it to every checkbox (I am unable to understand the reasons it does for some and not for others)
- it's org-indent minor-mode which does this because when deactivated,
this behavior disappears

An example can be worth more than trying to explain so I'll do my best to describe what I see (I'll use '|' as the caret) :

- On header first character:
#+begin_src org
| IN-PROGRESS 0.5.6 [0%]
  - [ ] backlog
#+end_src

- C-n - move to the next line in the first character indented in the list
#+begin_src org
* IN-PROGRESS 0.5.6 [0%]
  | [ ] backlog
#+end_src

- C-n - move to the next line and here the first line `loses` its indentation
#+begin_src org
* IN-PROGRESS 0.5.6 [0%]
- [ ] backlog
  | [ ] Update version
  - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
#+end_src

- C-n - move to the next line and here the first previous `loses` its indentation too
#+begin_src org
* IN-PROGRESS 0.5.6 [0%]
- [ ] backlog
- [ ] Update version
  | [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
#+end_src

- C-p - move to the previous line, the indentation does not change
#+begin_src org
* IN-PROGRESS 0.5.6 [0%]
- [ ] backlog
| [ ] Update version
  - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
#+end_src

- C-p - move to the previous line, the indentation does not change but the indentation from the line I came from gets back
#+begin_src org
* IN-PROGRESS 0.5.6 [0%]
| [ ] backlog
  - [ ] Update version
  - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
#+end_src

- C-p - move to the previous line, the indentation does not change
#+begin_src org
| IN-PROGRESS 0.5.6 [0%]
  - [ ] backlog
  - [ ] Update version
  - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
#+end_src

*Note*
- source of the org file: https://github.com/ardumont/org-trello/blob/0.5.6/TODO.org
- The same behavior is seen if the caret is elsewhere than the first character, only the position changes but the behavior stays.
- org-indent-mode is cool, I'd like to keep it since I like the heading display rendering.

Some more information you may wish:
- emacs-version: GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2014-06-06 on localhost
- org-version: Org-mode version 8.2.7c (8.2.7c-25-g1faeb4-elpa @ /home/tony/.emacs.d/elpa/org-20140811/)
- minor-mode activated in org buffer
(M-x describe-mode RET
     Enabled minor modes: Anzu Auto-Composition Auto-Compression Auto-Encryption Blink-Cursor Buffer-Pack Column-Number
     Company Delete-Selection Diff-Auto-Refine Erc-Spelling Erc-Track Erc-Truncate Eval-Sexp-Fu-Flash File-Name-Shadow
     Flx-Ido Font-Lock Git-Pack Global-Anzu Global-Auto-Revert Global-Buffer-Pack Global-Company Global-Diff-Hl
     Global-Flycheck Global-Font-Lock Global-Git-Gutter Global-Git-Pack Global-Hl-Line Global-Page-Break-Lines
     Global-Theme-Pack Global-Undo-Tree Guide-Key Ido-Ubiquitous Line-Number Magit-Auto-Revert Mouse-Wheel Page-Break-Lines
     Popwin Prelude Prelude-Global Projectile Projectile-Global Recentf Repl-Toggle Savehist Shell-Dirtrack
     Show-Smartparens-Global Size-Indication Theme-Pack Tooltip Transient-Mark Undo-Tree Volatile-Highlights Which-Function
     Winner
     )

Hoping I provided everything needed.
Thanks in advance for your time.

Cheers,

--
@ardumont

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-indent-mode and erratic checkbox behavior?
  2014-08-29 11:12 org-indent-mode and erratic checkbox behavior? ardumont
@ 2014-08-29 12:04 ` ardumont
  2014-08-29 18:02   ` ardumont
  0 siblings, 1 reply; 3+ messages in thread
From: ardumont @ 2014-08-29 12:04 UTC (permalink / raw)
  To: ardumont; +Cc: emacs-orgmode

Hello again,

> I assume (but I can be wrong, thus feel free to correct me):

And yes I were.

> (I am unable to understand the reasons it does for some and not for
> others)

Ok, so sorry for the noise. Now I do.

I kept looking and I believe that it's 2 minor modes that do not like to work with each other.

git-gutter and org-indent.

When no modification (git) on the current buffer, everything is good -
org/org-indent does as expected.

When modifications if present, git-gutter add some information on the
left border and this messes around somehow with org-indent which then
does as described in the first part.

In any case, no worry for the org team :D then.

Again, apologies.

Cheers,
Antoine

ardumont writes:

> Hello,
>
> I have a minor visual annoyance with checkboxes and `org-indent-mode`.
> As I move to next/previous line, headlines stay still (ok) but checkbox keeps going forward and backward (2 blank spaces).
> (I did not change the default binding C-n/C-p which are still bind to the default next-line/previous-line.)
>
> I assume (but I can be wrong, thus feel free to correct me):
> - it's not correct behavior because it does not do it to every checkbox (I am unable to understand the reasons it does for some and not for others)
> - it's org-indent minor-mode which does this because when deactivated,
> this behavior disappears
>
> An example can be worth more than trying to explain so I'll do my best to describe what I see (I'll use '|' as the caret) :
>
> - On header first character:
> #+begin_src org
> | IN-PROGRESS 0.5.6 [0%]
>   - [ ] backlog
> #+end_src
>
> - C-n - move to the next line in the first character indented in the list
> #+begin_src org
> * IN-PROGRESS 0.5.6 [0%]
>   | [ ] backlog
> #+end_src
>
> - C-n - move to the next line and here the first line `loses` its indentation
> #+begin_src org
> * IN-PROGRESS 0.5.6 [0%]
> - [ ] backlog
>   | [ ] Update version
>   - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
> #+end_src
>
> - C-n - move to the next line and here the first previous `loses` its indentation too
> #+begin_src org
> * IN-PROGRESS 0.5.6 [0%]
> - [ ] backlog
> - [ ] Update version
>   | [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
> #+end_src
>
> - C-p - move to the previous line, the indentation does not change
> #+begin_src org
> * IN-PROGRESS 0.5.6 [0%]
> - [ ] backlog
> | [ ] Update version
>   - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
> #+end_src
>
> - C-p - move to the previous line, the indentation does not change but the indentation from the line I came from gets back
> #+begin_src org
> * IN-PROGRESS 0.5.6 [0%]
> | [ ] backlog
>   - [ ] Update version
>   - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
> #+end_src
>
> - C-p - move to the previous line, the indentation does not change
> #+begin_src org
> | IN-PROGRESS 0.5.6 [0%]
>   - [ ] backlog
>   - [ ] Update version
>   - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
> #+end_src
>
> *Note*
> - source of the org file: https://github.com/ardumont/org-trello/blob/0.5.6/TODO.org
> - The same behavior is seen if the caret is elsewhere than the first character, only the position changes but the behavior stays.
> - org-indent-mode is cool, I'd like to keep it since I like the heading display rendering.
>
> Some more information you may wish:
> - emacs-version: GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2014-06-06 on localhost
> - org-version: Org-mode version 8.2.7c (8.2.7c-25-g1faeb4-elpa @ /home/tony/.emacs.d/elpa/org-20140811/)
> - minor-mode activated in org buffer
> (M-x describe-mode RET
>      Enabled minor modes: Anzu Auto-Composition Auto-Compression Auto-Encryption Blink-Cursor Buffer-Pack Column-Number
>      Company Delete-Selection Diff-Auto-Refine Erc-Spelling Erc-Track Erc-Truncate Eval-Sexp-Fu-Flash File-Name-Shadow
>      Flx-Ido Font-Lock Git-Pack Global-Anzu Global-Auto-Revert Global-Buffer-Pack Global-Company Global-Diff-Hl
>      Global-Flycheck Global-Font-Lock Global-Git-Gutter Global-Git-Pack Global-Hl-Line Global-Page-Break-Lines
>      Global-Theme-Pack Global-Undo-Tree Guide-Key Ido-Ubiquitous Line-Number Magit-Auto-Revert Mouse-Wheel Page-Break-Lines
>      Popwin Prelude Prelude-Global Projectile Projectile-Global Recentf Repl-Toggle Savehist Shell-Dirtrack
>      Show-Smartparens-Global Size-Indication Theme-Pack Tooltip Transient-Mark Undo-Tree Volatile-Highlights Which-Function
>      Winner
>      )
>
> Hoping I provided everything needed.
> Thanks in advance for your time.
>
> Cheers,
>
> --
> @ardumont


--
@ardumont

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: org-indent-mode and erratic checkbox behavior?
  2014-08-29 12:04 ` ardumont
@ 2014-08-29 18:02   ` ardumont
  0 siblings, 0 replies; 3+ messages in thread
From: ardumont @ 2014-08-29 18:02 UTC (permalink / raw)
  To: ardumont; +Cc: emacs-orgmode

Hello,

Just for completeness purpose, if someone else comes across the same
behavior and does the same wrong judgment.

There is an issue opened about it on git-gutter - "with org mode, the
indention is dancing around crazily" - https://github.com/syohex/emacs-git-gutter/issues/24.

Cheers,

ardumont writes:

> Hello again,
>
>> I assume (but I can be wrong, thus feel free to correct me):
>
> And yes I were.
>
>> (I am unable to understand the reasons it does for some and not for
>> others)
>
> Ok, so sorry for the noise. Now I do.
>
> I kept looking and I believe that it's 2 minor modes that do not like to work with each other.
>
> git-gutter and org-indent.
>
> When no modification (git) on the current buffer, everything is good -
> org/org-indent does as expected.
>
> When modifications if present, git-gutter add some information on the
> left border and this messes around somehow with org-indent which then
> does as described in the first part.
>
> In any case, no worry for the org team :D then.
>
> Again, apologies.
>
> Cheers,
> Antoine
>
> ardumont writes:
>
>> Hello,
>>
>> I have a minor visual annoyance with checkboxes and `org-indent-mode`.
>> As I move to next/previous line, headlines stay still (ok) but checkbox keeps going forward and backward (2 blank spaces).
>> (I did not change the default binding C-n/C-p which are still bind to the default next-line/previous-line.)
>>
>> I assume (but I can be wrong, thus feel free to correct me):
>> - it's not correct behavior because it does not do it to every checkbox (I am unable to understand the reasons it does for some and not for others)
>> - it's org-indent minor-mode which does this because when deactivated,
>> this behavior disappears
>>
>> An example can be worth more than trying to explain so I'll do my best to describe what I see (I'll use '|' as the caret) :
>>
>> - On header first character:
>> #+begin_src org
>> | IN-PROGRESS 0.5.6 [0%]
>>   - [ ] backlog
>> #+end_src
>>
>> - C-n - move to the next line in the first character indented in the list
>> #+begin_src org
>> * IN-PROGRESS 0.5.6 [0%]
>>   | [ ] backlog
>> #+end_src
>>
>> - C-n - move to the next line and here the first line `loses` its indentation
>> #+begin_src org
>> * IN-PROGRESS 0.5.6 [0%]
>> - [ ] backlog
>>   | [ ] Update version
>>   - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
>> #+end_src
>>
>> - C-n - move to the next line and here the first previous `loses` its indentation too
>> #+begin_src org
>> * IN-PROGRESS 0.5.6 [0%]
>> - [ ] backlog
>> - [ ] Update version
>>   | [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
>> #+end_src
>>
>> - C-p - move to the previous line, the indentation does not change
>> #+begin_src org
>> * IN-PROGRESS 0.5.6 [0%]
>> - [ ] backlog
>> | [ ] Update version
>>   - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
>> #+end_src
>>
>> - C-p - move to the previous line, the indentation does not change but the indentation from the line I came from gets back
>> #+begin_src org
>> * IN-PROGRESS 0.5.6 [0%]
>> | [ ] backlog
>>   - [ ] Update version
>>   - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
>> #+end_src
>>
>> - C-p - move to the previous line, the indentation does not change
>> #+begin_src org
>> | IN-PROGRESS 0.5.6 [0%]
>>   - [ ] backlog
>>   - [ ] Update version
>>   - [ ] Fix behavior orgtrello-buffer/goto-end-of-line! When going to end of line in checkbox, we need to do it twice, fix.
>> #+end_src
>>
>> *Note*
>> - source of the org file: https://github.com/ardumont/org-trello/blob/0.5.6/TODO.org
>> - The same behavior is seen if the caret is elsewhere than the first character, only the position changes but the behavior stays.
>> - org-indent-mode is cool, I'd like to keep it since I like the heading display rendering.
>>
>> Some more information you may wish:
>> - emacs-version: GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2014-06-06 on localhost
>> - org-version: Org-mode version 8.2.7c (8.2.7c-25-g1faeb4-elpa @ /home/tony/.emacs.d/elpa/org-20140811/)
>> - minor-mode activated in org buffer
>> (M-x describe-mode RET
>>      Enabled minor modes: Anzu Auto-Composition Auto-Compression Auto-Encryption Blink-Cursor Buffer-Pack Column-Number
>>      Company Delete-Selection Diff-Auto-Refine Erc-Spelling Erc-Track Erc-Truncate Eval-Sexp-Fu-Flash File-Name-Shadow
>>      Flx-Ido Font-Lock Git-Pack Global-Anzu Global-Auto-Revert Global-Buffer-Pack Global-Company Global-Diff-Hl
>>      Global-Flycheck Global-Font-Lock Global-Git-Gutter Global-Git-Pack Global-Hl-Line Global-Page-Break-Lines
>>      Global-Theme-Pack Global-Undo-Tree Guide-Key Ido-Ubiquitous Line-Number Magit-Auto-Revert Mouse-Wheel Page-Break-Lines
>>      Popwin Prelude Prelude-Global Projectile Projectile-Global Recentf Repl-Toggle Savehist Shell-Dirtrack
>>      Show-Smartparens-Global Size-Indication Theme-Pack Tooltip Transient-Mark Undo-Tree Volatile-Highlights Which-Function
>>      Winner
>>      )
>>
>> Hoping I provided everything needed.
>> Thanks in advance for your time.
>>
>> Cheers,
>>
>> --
>> @ardumont
>
>
> --
> @ardumont


--
@ardumont

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-29 18:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-29 11:12 org-indent-mode and erratic checkbox behavior? ardumont
2014-08-29 12:04 ` ardumont
2014-08-29 18:02   ` ardumont

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).