* Simple Indentation question: indentation behaviour changed some time ago. @ 2011-03-01 21:50 Rainer Stengele 2011-03-01 23:45 ` Nicolas 0 siblings, 1 reply; 6+ messages in thread From: Rainer Stengele @ 2011-03-01 21:50 UTC (permalink / raw) To: emacs-orgmode Hi all, I remember once I had this * headline - item TEXT ^ cursor on first "T" of "TEXT" and pressing "TAB" I got: * headline - item TEXT nowadays I get * headline - item TEXT I checked the org-*indent* variables but could not find a matching variable. How can I configure the old behaviour? Thanks Rainer ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Simple Indentation question: indentation behaviour changed some time ago. 2011-03-01 21:50 Simple Indentation question: indentation behaviour changed some time ago Rainer Stengele @ 2011-03-01 23:45 ` Nicolas 2011-03-02 8:47 ` Rainer Stengele 0 siblings, 1 reply; 6+ messages in thread From: Nicolas @ 2011-03-01 23:45 UTC (permalink / raw) To: Rainer Stengele; +Cc: emacs-orgmode Hello, Rainer Stengele <rainer.stengele@online.de> writes: > * headline > - item > TEXT > ^ > > cursor on first "T" of "TEXT" and pressing "TAB" I got: > > * headline > - item > TEXT > > nowadays I get > > * headline > - item > TEXT > I checked the org-*indent* variables but could not find a matching variable. > How can I configure the old behaviour? You can set `org-list-ending-method' to 'regexp, meaning that you will need to provide two blank lines (that's configurable though, see `org-empty-line-terminates-plain-lists' and `org-list-end-regexp') to end a list. Otherwise, lists are determined by indentation, so, in your example, TEXT end the list as it is less indented than any of its items. Thus, when pressing TAB, Org indent the line accordingly, that is as a line belonging to the headline but not to the list. Also note that, if TEXT isn't already typed, you can use C-j after "item" to stay inside list and go on typing. Regards, -- Nicolas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Simple Indentation question: indentation behaviour changed some time ago. 2011-03-01 23:45 ` Nicolas @ 2011-03-02 8:47 ` Rainer Stengele 2011-03-02 9:51 ` Nicolas 0 siblings, 1 reply; 6+ messages in thread From: Rainer Stengele @ 2011-03-02 8:47 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1408 bytes --] Am 02.03.2011 00:45, schrieb Nicolas: > Hello, > > Rainer Stengele <rainer.stengele@online.de> writes: > >> * headline >> - item >> TEXT >> ^ >> >> cursor on first "T" of "TEXT" and pressing "TAB" I got: >> >> * headline >> - item >> TEXT >> >> nowadays I get >> >> * headline >> - item >> TEXT >> I checked the org-*indent* variables but could not find a matching variable. >> How can I configure the old behaviour? > You can set `org-list-ending-method' to 'regexp, meaning that you will > need to provide two blank lines (that's configurable though, see > `org-empty-line-terminates-plain-lists' and `org-list-end-regexp') to end > a list. > > Otherwise, lists are determined by indentation, so, in your example, > TEXT end the list as it is less indented than any of its items. Thus, > when pressing TAB, Org indent the line accordingly, that is as a line > belonging to the headline but not to the list. > > Also note that, if TEXT isn't already typed, you can use C-j after > "item" to stay inside list and go on typing. > > Regards, > Hello Nicolas, ok, thanks, I checked all that but could not find a setting that makes sense for me. I do not understand why when pressing TAB being at point ^: - item ^ results in - item ^ but having - item TEXT ^ and pressing TAB results in - item TEXT ^ How can I get the indentation same as with empty lines? -- Rainer [-- Attachment #2: rainer_stengele.vcf --] [-- Type: text/x-vcard, Size: 187 bytes --] begin:vcard fn:Rainer Stengele n:Stengele;Rainer email;internet:rainer.stengele@online.de tel;work:+49(0)9131777885 tel;cell:+49(0)17612777885 x-mozilla-html:FALSE version:2.1 end:vcard [-- Attachment #3: Type: text/plain, Size: 201 bytes --] _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Simple Indentation question: indentation behaviour changed some time ago. 2011-03-02 8:47 ` Rainer Stengele @ 2011-03-02 9:51 ` Nicolas 2011-03-02 10:12 ` Rainer Stengele 0 siblings, 1 reply; 6+ messages in thread From: Nicolas @ 2011-03-02 9:51 UTC (permalink / raw) To: Rainer Stengele; +Cc: emacs-orgmode Hello, Rainer Stengele <rainer.stengele@online.de> writes: > I do not understand why when pressing TAB being at point ^: > > - item > > ^ > > results in > > - item > > ^ > > > but having > > > - item > TEXT > ^ > > and pressing TAB results in > > - item > TEXT > ^ > > How can I get the indentation same as with empty lines? You can't. Once TEXT is typed at column 0, by definition, the list before is over, and indentation reflects that. And this makes sense: how could an user end a list if all his text was eventually being inserted inside the list? On the other hand, if no text is typed yet, like in your first case, the list isn't over, and TAB will indent line into the last item of the list, as if you had typed C-j. I hope it is clearer now. Regards, -- Nicolas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Simple Indentation question: indentation behaviour changed some time ago. 2011-03-02 9:51 ` Nicolas @ 2011-03-02 10:12 ` Rainer Stengele 2011-03-02 10:50 ` Nicolas 0 siblings, 1 reply; 6+ messages in thread From: Rainer Stengele @ 2011-03-02 10:12 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 1925 bytes --] Am 02.03.2011 10:51, schrieb Nicolas: > Hello, > > Rainer Stengele <rainer.stengele@online.de> writes: > >> I do not understand why when pressing TAB being at point ^: >> >> - item >> >> ^ >> >> results in >> >> - item >> >> ^ >> >> >> but having >> >> >> - item >> TEXT >> ^ >> >> and pressing TAB results in >> >> - item >> TEXT >> ^ >> >> How can I get the indentation same as with empty lines? > > You can't. Once TEXT is typed at column 0, by definition, the list > before is over, and indentation reflects that. And this makes sense: how > could an user end a list if all his text was eventually being inserted > inside the list? > > On the other hand, if no text is typed yet, like in your first case, the > list isn't over, and TAB will indent line into the last item of the > list, as if you had typed C-j. > > I hope it is clearer now. > > Regards, > > > -- Nicolas Nicolas, thank you for explaining. Well, it still bugs me. Many times I start with something like **** headline item1 Text belonging to item1 Text belonging to item1 Text belonging to item1 item2 Text belonging to item2 Text belonging to item2 Text belonging to item2 and then later want to bring in more structure, making item1 and item2 a list item. I would then expect to get the "Text belonging to" lines being indented as in **** headline - item1 Text belonging to item1 Text belonging to item1 Text belonging to item1 - item2 Text belonging to item2 Text belonging to item2 Text belonging to item2 but I get this: **** headline - item1 Text belonging to item1 Text belonging to item1 Text belonging to item1 - item2 Text belonging to item2 Text belonging to item2 Text belonging to item2 of course I can indent via macros or manually, I just don't find the behaviour ok. Regards, -- Rainer [-- Attachment #1.2: Type: text/html, Size: 3860 bytes --] [-- Attachment #2: rainer_stengele.vcf --] [-- Type: text/x-vcard, Size: 187 bytes --] begin:vcard fn:Rainer Stengele n:Stengele;Rainer email;internet:rainer.stengele@online.de tel;work:+49(0)9131777885 tel;cell:+49(0)17612777885 x-mozilla-html:FALSE version:2.1 end:vcard [-- Attachment #3: Type: text/plain, Size: 201 bytes --] _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Simple Indentation question: indentation behaviour changed some time ago. 2011-03-02 10:12 ` Rainer Stengele @ 2011-03-02 10:50 ` Nicolas 0 siblings, 0 replies; 6+ messages in thread From: Nicolas @ 2011-03-02 10:50 UTC (permalink / raw) To: Rainer Stengele; +Cc: emacs-orgmode Rainer Stengele <rainer.stengele@online.de> writes: > Many times I start with something like > > > **** headline > item1 > Text belonging to item1 > Text belonging to item1 > Text belonging to item1 > item2 > Text belonging to item2 > Text belonging to item2 > Text belonging to item2 > > > and then later want to bring in more structure, > making item1 and item2 a list item. > I would then expect to get the "Text belonging to" lines being indented as in > > > **** headline > - item1 > Text belonging to item1 > Text belonging to item1 > Text belonging to item1 > - item2 > Text belonging to item2 > Text belonging to item2 > Text belonging to item2 That's easy. Select region from "item1" to third "Text belonging to item1", and use "C-c -". This command turns a region into an item (with development version of Org, that is). Regards, -- Nicolas ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-03-02 10:50 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-03-01 21:50 Simple Indentation question: indentation behaviour changed some time ago Rainer Stengele 2011-03-01 23:45 ` Nicolas 2011-03-02 8:47 ` Rainer Stengele 2011-03-02 9:51 ` Nicolas 2011-03-02 10:12 ` Rainer Stengele 2011-03-02 10:50 ` Nicolas
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).