Re: Bug: spurious change in list indent cursor motion [9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/)]
Kevin, ah. the behavior is complicated for me to understand, but presumably useful. (there's a Jerzy Neyman quote: Life is complicated, but not uninteresting.) cheers, Greg
Re: Bug: spurious change in list indent cursor motion [9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/)]
Greg Minshall writes: > Kevin, > >> FWIW, during the latest poll somebody suggested making org-indent-line >> cycle through "syntactically valid" indentation levels when hitting TAB >> repeatedly, like python-indent-line-function; I like this idea. > > i think (*) the current "master" branch allows you to type "- > fu- *bar" (where the " *" bit means "zero or more spaces"). > but, i guess because of folding, it's that sensitive, doesn't cycle when > any non-blank is typed. Right, that allows changing the indentation level of a newly inserted bullet point; my remark was about changing the indentation level of regular text, e.g. "- list itemunindented paragraph". C-j works well enough when there are only two valid positions (column 2 and column 0); in this situation though: - foo - bar - baz It would be nice if RET TAB TAB TAB… cycled between columns 2→0→4…, just like M-RET TAB TAB TAB… cycles between columns 6→2→4…
Re: Bug: spurious change in list indent cursor motion [9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/)]
Kevin, > FWIW, during the latest poll somebody suggested making org-indent-line > cycle through "syntactically valid" indentation levels when hitting TAB > repeatedly, like python-indent-line-function; I like this idea. i think (*) the current "master" branch allows you to type "- fu- *bar" (where the " *" bit means "zero or more spaces"). but, i guess because of folding, it's that sensitive, doesn't cycle when any non-blank is typed. (it might be nice if "- fu" moved you back to alignment with the previous line.) cheers, Greg (*) i.e., "it works for me".
Re: Bug: spurious change in list indent cursor motion [9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/)]
Nicolas Goaziou writes: >> Note also that "- a" goes >> back to column 0. (FWIW I think that's a bit unwieldy; going back to >> column 0 on the /second/ would make more sense to me, as >> it would correspond to a "paragraph break") > > It would make it painful to insert a blank line within a list item. > OTOH, on the third newline, you are really out of the list. Fair enough! I figured the current behaviour made it easier to write "multiple paragraphs" in a single list item, but I was unsure if anyone actually relied on that. Thanks for confirming this hunch :) FWIW, during the latest poll somebody suggested making org-indent-line cycle through "syntactically valid" indentation levels when hitting TAB repeatedly, like python-indent-line-function; I like this idea.
Re: Bug: spurious change in list indent cursor motion [9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/)]
Hello, Kévin Le Gouguec writes: > Note also that "- a" goes > back to column 0. (FWIW I think that's a bit unwieldy; going back to > column 0 on the /second/ would make more sense to me, as > it would correspond to a "paragraph break") It would make it painful to insert a blank line within a list item. OTOH, on the third newline, you are really out of the list. Regards, -- Nicolas Goaziou
Re: Bug: spurious change in list indent cursor motion [9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/)]
James Powell writes: > I open a new file, /tmp/demo.org, and I start a new list > by typing "- a". It appears: > > - a > > What I expect: my cursor should now be at column 0. This was the > behavior in 9.3.6 and it makes perfect sense. > > What happens instead: after upgrade to 9.4.4, the cursor rests at > column 2, under the a. > > How do I change the behavior back to the 9.3.6 one? Short answer: disable electric-indent-local-mode, as suggested in ORG-NEWS. This will turn RET into the "dumb newline" key which should never indent, and set C-j as the "smart newline" key which occasionally indents. > Facts about it: > > - When I start emacs with 'emacs -Q -nw' the bug does not manifest > even in 9.4.4. That's surprising; on my setups, with Org 9.4.4, emacs -Q -nw stays at column 2 after hitting RET. > - I tried setting org-adapt-indentation to 't (the default) as it is > an obvious suspect, the bug still manifested. org-adapt-indentation's determines how TAB and the "smart newline" key behave: - t (default): section bodies should be hard-indented, - nil (to become the default for Org 9.5): nothing should be indented, - 'headline-data: drawers (e.g. :LOGBOOK: entries and :PROPERTY: blocks) should be hard-indented, but not regular section text. With all settings, "- a" indents at column 2, below "a". As explained above, depending on electric-indent, the key is either RET or C-j. Note also that "- a" goes back to column 0. (FWIW I think that's a bit unwieldy; going back to column 0 on the /second/ would make more sense to me, as it would correspond to a "paragraph break")
Bug: spurious change in list indent cursor motion [9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. I open a new file, /tmp/demo.org, and I start a new list by typing "- a". It appears: - a What I expect: my cursor should now be at column 0. This was the behavior in 9.3.6 and it makes perfect sense. What happens instead: after upgrade to 9.4.4, the cursor rests at column 2, under the a. How do I change the behavior back to the 9.3.6 one? Facts about it: - When I start emacs with 'emacs -Q -nw' the bug does not manifest even in 9.4.4. - When I paste the 'current state' elisp below into ~/it.el, and start emacs with emacs -Q -nw, and 'L' in dired to load ~/it.el, the bug does not manifest. - I have read the changelog and the manual, with no good result. - I have an example where the bug does not manifest even in 9.4.4 and even without running emacs -Q, where the .org file is a little thing full of lines starting with ':' only (!). - I tried setting org-adapt-indentation to 't (the default) as it is an obvious suspect, the bug still manifested. many thanks, - James P. Emacs : GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2020-07-07 Package: Org mode version 9.4.4 (9.4.4-dist @ /home/powellj/elisp/org-9.4.4/lisp/) current state: == (setq org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-adapt-indentation nil org-latex-classes '(("achemso" "\\documentclass{achemso}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-reverse-note-order t org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-start-on-weekday nil org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-log-done 'time org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-startup-folded 'content org-agenda-loop-over-headlines-in-active-region nil org-link-search-must-match-exact-headline nil org-file-apps '(("\\.pdf" . "evince %s") (auto-mode . emacs) (directory . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default)) org-agenda-skip-scheduled-if-done t org-agenda-custom-commands '(("d" todo #("DELEGATED" 0 9 (face org-warning)) nil) ("c" todo #("DONE|DEFERRED|CANCELLED" 0 23 (face org-warning)) nil) ("w" todo #("WAITING" 0 7 (face org-warning)) nil) ("W" agenda "" ((org-agenda-ndays 21))) ("A" agenda "" ((org-agenda-skip-function (lambda nil (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]"))) (org-agenda-ndays 1) (org-agenda-overriding-header "Today's Priority #A tasks: ")) ) ("u" alltodo "" ((org-agenda-skip-function (lambda nil (org-agenda-skip-entry-if (quote scheduled) (quote deadline) (quote regexp) "<[^>\n]+>"))) (org-agenda-overriding-header "Unscheduled TODO entries: ")) ) ) org-latex-format-headline-function 'org-latex-format-headline-default-function org-default-notes-file "~/notes.org"