emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* unordered list feature request: new sub-lists automatically switch to different list-character
@ 2010-05-21  5:54 Livin Stephen Sharma
  2010-05-21 11:58 ` Scot Becker
  2010-05-21 12:22 ` Juri Krivov
  0 siblings, 2 replies; 11+ messages in thread
From: Livin Stephen Sharma @ 2010-05-21  5:54 UTC (permalink / raw)
  To: emacs-org-mode-help gnu


[-- Attachment #1.1: Type: text/plain, Size: 1023 bytes --]


Context/Sample org content

current
**** unordered list
	 + topA
	   + innerA1
	   + innerA2
	 + topB
	   + innerB1


proposed
**** unordered list
	 + topA
	   - innerA1 <--- '-' used automatically instead of '+'
	   - innerA2 <--- " " "
	 + topB
	   - innerB1 <--- " " "

-----------------------------------------------------------------


When creating nested/child lists ('innerX' items) under an existing list item ('topX' items),
the current behaviour does not make an effort to change the leading list-denoter character (-,+,*).

Could a feature be provided where creating a such a child-list would make this list's items begin with a different list-denoter?

I find it helps readability (and hence efficiency when working with lists) when I manually (S-left, S-right) do this. If others agree, perhaps this could be provided as a built-in feature?

I don't know lisp, (& it's increasingly looking like it may be time to *find* the time to learn JJ) so I can't code this myself.




[-- Attachment #1.2: Type: text/html, Size: 2191 bytes --]

[-- Attachment #2: 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] 11+ messages in thread

* Re: unordered list feature request: new sub-lists automatically switch to different list-character
  2010-05-21  5:54 unordered list feature request: new sub-lists automatically switch to different list-character Livin Stephen Sharma
@ 2010-05-21 11:58 ` Scot Becker
  2010-05-21 12:22 ` Juri Krivov
  1 sibling, 0 replies; 11+ messages in thread
From: Scot Becker @ 2010-05-21 11:58 UTC (permalink / raw)
  To: Livin Stephen Sharma; +Cc: emacs-org-mode-help gnu

I like this  idea, even as default, though I'm sure that some people
are doing things with org for which they would want to turn it off.

Scot


On Fri, May 21, 2010 at 6:54 AM, Livin Stephen Sharma
<livin.stephen@gmail.com> wrote:
>
> Context/Sample org content
> current
> **** unordered list
> + topA
>   + innerA1
>   + innerA2
> + topB
>   + innerB1
>
> proposed
> **** unordered list
> + topA
>   - innerA1 <--- '-' used automatically instead of '+'
>   - innerA2 <--- " " "
> + topB
>   - innerB1 <--- " " "
> -----------------------------------------------------------------
>
> When creating nested/child lists ('innerX' items) under an existing list
> item ('topX' items),
> the current behaviour does not make an effort to change the
> leading list-denoter character (-,+,*).
> Could a feature be provided where creating a such a child-list would make
> this list's items begin with a different list-denoter?
> I find it helps readability (and hence efficiency when working with lists)
> when I manually (S-left, S-right) do this. If others agree, perhaps this
> could be provided as a built-in feature?
> I don't know lisp, (& it's increasingly looking like it may be time to
> *find* the time to learn JJ) so I can't code this myself.
>
>
>
> _______________________________________________
> 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] 11+ messages in thread

* Re: unordered list feature request: new sub-lists automatically switch to different list-character
  2010-05-21  5:54 unordered list feature request: new sub-lists automatically switch to different list-character Livin Stephen Sharma
  2010-05-21 11:58 ` Scot Becker
@ 2010-05-21 12:22 ` Juri Krivov
  2010-05-21 14:07   ` [PATCH] Fix typo in org-list-demote-modify-bullet docstring Bernt Hansen
  2010-05-21 19:14   ` unordered list feature request: new sub-lists automatically switch to different list-character Livin Stephen Sharma
  1 sibling, 2 replies; 11+ messages in thread
From: Juri Krivov @ 2010-05-21 12:22 UTC (permalink / raw)
  To: Livin Stephen Sharma; +Cc: emacs-org-mode-help gnu


[-- Attachment #1.1: Type: text/plain, Size: 1424 bytes --]

On Fri, May 21, 2010 at 7:54 AM, Livin Stephen Sharma <
livin.stephen@gmail.com> wrote:

>
> Context/Sample org content
>
> *current*
> **** unordered list
>  + topA
>    + innerA1
>    + innerA2
>  + topB
>    + innerB1
>
>
> *proposed*
> **** unordered list
>  + topA
>    - innerA1 <--- '-' used automatically instead of '+'
>    - innerA2 <--- " " "
>  + topB
>    - innerB1 <--- " " "
>
> -----------------------------------------------------------------
>
>
> When creating nested/child lists ('innerX' items) under an existing list
> item ('topX' items),
> the current behaviour does not make an effort to change the
> leading list-denoter character (-,+,*).
>
> Could a feature be provided where creating a such a child-list would make
> this list's items begin with a different list-denoter?
>
> I find it helps readability (and hence efficiency when working with lists)
> when I manually (S-left, S-right) do this. If others agree, perhaps this
> could be provided as a built-in feature?
>
> I don't know lisp, (& it's increasingly looking like it may be time to
> *find* the time to learn JJ) so I can't code this myself.
>
>
> There seems to be already a setting that can achieve this.
It was discussed long time ago, here
http://thread.gmane.org/gmane.emacs.orgmode/14793/focus=15214
In org-list.el, there is variable org-list-demote-modify-bullet.  I have not
tried,
but it looks similar to your request.
Juri

[-- Attachment #1.2: Type: text/html, Size: 2698 bytes --]

[-- Attachment #2: 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] 11+ messages in thread

* [PATCH] Fix typo in org-list-demote-modify-bullet docstring
  2010-05-21 12:22 ` Juri Krivov
@ 2010-05-21 14:07   ` Bernt Hansen
  2010-05-21 15:16     ` John Wiegley
  2010-05-21 19:14   ` unordered list feature request: new sub-lists automatically switch to different list-character Livin Stephen Sharma
  1 sibling, 1 reply; 11+ messages in thread
From: Bernt Hansen @ 2010-05-21 14:07 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Bernt Hansen

---
This patch is available at git://git.norang.ca/org-mode.git typo

 lisp/org-list.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-list.el b/lisp/org-list.el
index 566e0eb..417061f 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -86,7 +86,7 @@ heading will be exposed in a children' view."
 (defcustom org-list-demote-modify-bullet nil
   "Default bullet type installed when demoting an item.
 This is an association list, for each bullet type, this alist will point
-to the bulled that should be used when this item is demoted."
+to the bullet that should be used when this item is demoted."
   :group 'org-plain-lists
   :type '(repeat
 	  (cons
-- 
1.7.1.96.gc06ee

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

* Re: [PATCH] Fix typo in org-list-demote-modify-bullet docstring
  2010-05-21 14:07   ` [PATCH] Fix typo in org-list-demote-modify-bullet docstring Bernt Hansen
@ 2010-05-21 15:16     ` John Wiegley
  2010-05-21 15:49       ` Bernt Hansen
  0 siblings, 1 reply; 11+ messages in thread
From: John Wiegley @ 2010-05-21 15:16 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode

On May 21, 2010, at 10:07 AM, Bernt Hansen wrote:

> ---
> This patch is available at git://git.norang.ca/org-mode.git typo

Applied.  Bernt, did you get a notification by e-mail when I accepted your patch?

John

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

* Re: [PATCH] Fix typo in org-list-demote-modify-bullet docstring
  2010-05-21 15:16     ` John Wiegley
@ 2010-05-21 15:49       ` Bernt Hansen
  0 siblings, 0 replies; 11+ messages in thread
From: Bernt Hansen @ 2010-05-21 15:49 UTC (permalink / raw)
  To: John Wiegley; +Cc: emacs-orgmode

John Wiegley <jwiegley@gmail.com> writes:

> On May 21, 2010, at 10:07 AM, Bernt Hansen wrote:
>
>> ---
>> This patch is available at git://git.norang.ca/org-mode.git typo
>
> Applied.  Bernt, did you get a notification by e-mail when I accepted your patch?

Other than this message - no.

-Bernt

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

* Re: unordered list feature request: new sub-lists automatically switch to different list-character
  2010-05-21 12:22 ` Juri Krivov
  2010-05-21 14:07   ` [PATCH] Fix typo in org-list-demote-modify-bullet docstring Bernt Hansen
@ 2010-05-21 19:14   ` Livin Stephen Sharma
  2010-05-22  5:42     ` Carsten Dominik
  1 sibling, 1 reply; 11+ messages in thread
From: Livin Stephen Sharma @ 2010-05-21 19:14 UTC (permalink / raw)
  To: emacs-org-mode-help gnu


[-- Attachment #1.1: Type: text/plain, Size: 1767 bytes --]

Scott, Juri,
 thank you for your replies.

'org-list-demote-modify-bullet' is exactly what I was missing.

JohnW, BerntH, Carsten,
 AFAICT, the manual does not mention it?

Thanks again!
Livin Stephen Sharma



On May 21, 2010, at 17:52:46 , Juri Krivov wrote:

> 
> 
> On Fri, May 21, 2010 at 7:54 AM, Livin Stephen Sharma <livin.stephen@gmail.com> wrote:
> 
> Context/Sample org content
> 
> current
> **** unordered list
> 	 + topA
> 	   + innerA1
> 	   + innerA2
> 	 + topB
> 	   + innerB1
> 
> 
> proposed
> **** unordered list
> 	 + topA
> 	   - innerA1 <--- '-' used automatically instead of '+'
> 	   - innerA2 <--- " " "
> 	 + topB
> 	   - innerB1 <--- " " "
> 
> -----------------------------------------------------------------
> 
> 
> When creating nested/child lists ('innerX' items) under an existing list item ('topX' items),
> the current behaviour does not make an effort to change the leading list-denoter character (-,+,*).
> 
> Could a feature be provided where creating a such a child-list would make this list's items begin with a different list-denoter?
> 
> I find it helps readability (and hence efficiency when working with lists) when I manually (S-left, S-right) do this. If others agree, perhaps this could be provided as a built-in feature?
> 
> I don't know lisp, (& it's increasingly looking like it may be time to *find* the time to learn JJ) so I can't code this myself.
> 
> 
> There seems to be already a setting that can achieve this.
> It was discussed long time ago, here
> http://thread.gmane.org/gmane.emacs.orgmode/14793/focus=15214
> In org-list.el, there is variable org-list-demote-modify-bullet.  I have not tried,
> but it looks similar to your request.
> Juri


[-- Attachment #1.2: Type: text/html, Size: 3905 bytes --]

[-- Attachment #2: 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] 11+ messages in thread

* Re: unordered list feature request: new sub-lists automatically switch to different list-character
  2010-05-21 19:14   ` unordered list feature request: new sub-lists automatically switch to different list-character Livin Stephen Sharma
@ 2010-05-22  5:42     ` Carsten Dominik
  2010-05-22 22:26       ` Livin Stephen Sharma
  0 siblings, 1 reply; 11+ messages in thread
From: Carsten Dominik @ 2010-05-22  5:42 UTC (permalink / raw)
  To: Livin Stephen Sharma; +Cc: emacs-org-mode-help gnu


On May 21, 2010, at 9:14 PM, Livin Stephen Sharma wrote:

> Scott, Juri,
>  thank you for your replies.
>
> 'org-list-demote-modify-bullet' is exactly what I was missing.
>
> JohnW, BerntH, Carsten,
>  AFAICT, the manual does not mention it?

Maybe you could suggest a place in the manual where you would have  
liked to find this information?  Maybe even a patch?

Thanks.

- Carsten

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

* Re: unordered list feature request: new sub-lists automatically switch to different list-character
  2010-05-22  5:42     ` Carsten Dominik
@ 2010-05-22 22:26       ` Livin Stephen Sharma
  2010-05-23  5:11         ` Carsten Dominik
  0 siblings, 1 reply; 11+ messages in thread
From: Livin Stephen Sharma @ 2010-05-22 22:26 UTC (permalink / raw)
  To: emacs-org-mode-help gnu


Livin Stephen Sharma



On May 22, 2010, at 11:12:38 , Carsten Dominik wrote:

> 
> On May 21, 2010, at 9:14 PM, Livin Stephen Sharma wrote:
> 
>> Scott, Juri,
>> thank you for your replies.
>> 
>> 'org-list-demote-modify-bullet' is exactly what I was missing.
>> 
>> JohnW, BerntH, Carsten,
>> AFAICT, the manual does not mention it?
> 
> Maybe you could suggest a place in the manual where you would have liked to find this information?  Maybe even a patch?

Section "2.7 Plain lists".
That was where I went looking for this information.

Perhaps between
a. the description of 'org-empty-line-terminates-plain-lists', and
b. "The following commands act on items when the cursor is in the first line of an item (the line with the bullet or number)"

I can't submit a patch,
 but this is what I might have liked to see (the documentation-addition that I might have submitted):

begin
--------------------------------------------------------------------------------------------------------------
If you find that using a different bullet for a sub-list (than that used for the current list-level) improves readability,  customize the variable 'org-list-demote-modify-bullet'. For example, this lisp in your '.emacs'
> (setq org-list-demote-modify-bullet
> 	  (quote (
> 			  ("+" . "-") ; sub-list uses '-' if cu
> 			  ("-" . "+")
> 			  ("*" . "+"))))

would result in such a 2-level list (which uses only '+'):

> **** Take 5!
> 	 + Movies
> 	   + Silence of the Lambs
> 	   + My Cousin Vinny
> 	 + Books
> 	   + The Hunt for Red October
> 	   + The Road to Omaha

instead looking like this (using '-' for sub-list)

> **** Take 5!
> 	 + Movies
> 	   - Silence of the Lambs
> 	   - My Cousin Vinny
> 	 + Books
> 	   - The Hunt for Red October
> 	   - The Road to Omaha
--------------------------------------------------------------------------------------------------------------
end




> 
> Thanks.
> 
> - Carsten
> 

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

* Re: unordered list feature request: new sub-lists automatically switch to different list-character
  2010-05-22 22:26       ` Livin Stephen Sharma
@ 2010-05-23  5:11         ` Carsten Dominik
  2010-05-23 19:22           ` --RESOLVED-- " Livin Stephen Sharma
  0 siblings, 1 reply; 11+ messages in thread
From: Carsten Dominik @ 2010-05-23  5:11 UTC (permalink / raw)
  To: Livin Stephen Sharma; +Cc: emacs-org-mode-help gnu

Hi Livin,

I have made the change to the manual much shorter, but moved the rest  
of this into the docstring of the variable.

Thanks!

- Carsten

On May 23, 2010, at 12:26 AM, Livin Stephen Sharma wrote:

>
> Livin Stephen Sharma
>
>
>
> On May 22, 2010, at 11:12:38 , Carsten Dominik wrote:
>
>>
>> On May 21, 2010, at 9:14 PM, Livin Stephen Sharma wrote:
>>
>>> Scott, Juri,
>>> thank you for your replies.
>>>
>>> 'org-list-demote-modify-bullet' is exactly what I was missing.
>>>
>>> JohnW, BerntH, Carsten,
>>> AFAICT, the manual does not mention it?
>>
>> Maybe you could suggest a place in the manual where you would have  
>> liked to find this information?  Maybe even a patch?
>
> Section "2.7 Plain lists".
> That was where I went looking for this information.
>
> Perhaps between
> a. the description of 'org-empty-line-terminates-plain-lists', and
> b. "The following commands act on items when the cursor is in the  
> first line of an item (the line with the bullet or number)"
>
> I can't submit a patch,
> but this is what I might have liked to see (the documentation- 
> addition that I might have submitted):
>
> begin
> --------------------------------------------------------------------------------------------------------------
> If you find that using a different bullet for a sub-list (than that  
> used for the current list-level) improves readability,  customize  
> the variable 'org-list-demote-modify-bullet'. For example, this lisp  
> in your '.emacs'
>> (setq org-list-demote-modify-bullet
>> 	  (quote (
>> 			  ("+" . "-") ; sub-list uses '-' if cu
>> 			  ("-" . "+")
>> 			  ("*" . "+"))))
>
> would result in such a 2-level list (which uses only '+'):
>
>> **** Take 5!
>> 	 + Movies
>> 	   + Silence of the Lambs
>> 	   + My Cousin Vinny
>> 	 + Books
>> 	   + The Hunt for Red October
>> 	   + The Road to Omaha
>
> instead looking like this (using '-' for sub-list)
>
>> **** Take 5!
>> 	 + Movies
>> 	   - Silence of the Lambs
>> 	   - My Cousin Vinny
>> 	 + Books
>> 	   - The Hunt for Red October
>> 	   - The Road to Omaha
> --------------------------------------------------------------------------------------------------------------
> end
>
>
>
>
>>
>> Thanks.
>>
>> - Carsten
>>
>
>
> _______________________________________________
> 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

- Carsten

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

* Re: --RESOLVED-- unordered list feature request: new sub-lists automatically switch to different list-character
  2010-05-23  5:11         ` Carsten Dominik
@ 2010-05-23 19:22           ` Livin Stephen Sharma
  0 siblings, 0 replies; 11+ messages in thread
From: Livin Stephen Sharma @ 2010-05-23 19:22 UTC (permalink / raw)
  To: Carsten Dominik, emacs-org-mode-help gnu


[-- Attachment #1.1: Type: text/plain, Size: 2843 bytes --]

Carsten,
 thanks for accepting it.
 It sure feels **good** to have contributed a *little*!
:)

Livin Stephen Sharma



On May 23, 2010, at 10:41:50 , Carsten Dominik wrote:

> Hi Livin,
> 
> I have made the change to the manual much shorter, but moved the rest of this into the docstring of the variable.
> 
> Thanks!
> 
> - Carsten
> 
> On May 23, 2010, at 12:26 AM, Livin Stephen Sharma wrote:
> 
>> 
>> Livin Stephen Sharma
>> 
>> 
>> 
>> On May 22, 2010, at 11:12:38 , Carsten Dominik wrote:
>> 
>>> 
>>> On May 21, 2010, at 9:14 PM, Livin Stephen Sharma wrote:
>>> 
>>>> Scott, Juri,
>>>> thank you for your replies.
>>>> 
>>>> 'org-list-demote-modify-bullet' is exactly what I was missing.
>>>> 
>>>> JohnW, BerntH, Carsten,
>>>> AFAICT, the manual does not mention it?
>>> 
>>> Maybe you could suggest a place in the manual where you would have liked to find this information?  Maybe even a patch?
>> 
>> Section "2.7 Plain lists".
>> That was where I went looking for this information.
>> 
>> Perhaps between
>> a. the description of 'org-empty-line-terminates-plain-lists', and
>> b. "The following commands act on items when the cursor is in the first line of an item (the line with the bullet or number)"
>> 
>> I can't submit a patch,
>> but this is what I might have liked to see (the documentation-addition that I might have submitted):
>> 
>> begin
>> --------------------------------------------------------------------------------------------------------------
>> If you find that using a different bullet for a sub-list (than that used for the current list-level) improves readability,  customize the variable 'org-list-demote-modify-bullet'. For example, this lisp in your '.emacs'
>>> (setq org-list-demote-modify-bullet
>>> 	  (quote (
>>> 			  ("+" . "-") ; sub-list uses '-' if cu
>>> 			  ("-" . "+")
>>> 			  ("*" . "+"))))
>> 
>> would result in such a 2-level list (which uses only '+'):
>> 
>>> **** Take 5!
>>> 	 + Movies
>>> 	   + Silence of the Lambs
>>> 	   + My Cousin Vinny
>>> 	 + Books
>>> 	   + The Hunt for Red October
>>> 	   + The Road to Omaha
>> 
>> instead looking like this (using '-' for sub-list)
>> 
>>> **** Take 5!
>>> 	 + Movies
>>> 	   - Silence of the Lambs
>>> 	   - My Cousin Vinny
>>> 	 + Books
>>> 	   - The Hunt for Red October
>>> 	   - The Road to Omaha
>> --------------------------------------------------------------------------------------------------------------
>> end
>> 
>> 
>> 
>> 
>>> 
>>> Thanks.
>>> 
>>> - Carsten
>>> 
>> 
>> 
>> _______________________________________________
>> 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
> 
> - Carsten
> 
> 
> 


[-- Attachment #1.2: Type: text/html, Size: 9604 bytes --]

[-- Attachment #2: 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] 11+ messages in thread

end of thread, other threads:[~2010-05-23 19:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-21  5:54 unordered list feature request: new sub-lists automatically switch to different list-character Livin Stephen Sharma
2010-05-21 11:58 ` Scot Becker
2010-05-21 12:22 ` Juri Krivov
2010-05-21 14:07   ` [PATCH] Fix typo in org-list-demote-modify-bullet docstring Bernt Hansen
2010-05-21 15:16     ` John Wiegley
2010-05-21 15:49       ` Bernt Hansen
2010-05-21 19:14   ` unordered list feature request: new sub-lists automatically switch to different list-character Livin Stephen Sharma
2010-05-22  5:42     ` Carsten Dominik
2010-05-22 22:26       ` Livin Stephen Sharma
2010-05-23  5:11         ` Carsten Dominik
2010-05-23 19:22           ` --RESOLVED-- " Livin Stephen Sharma

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).