emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer Stengele <rainer.stengele@diplan.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: indent list item and change list type automatically
Date: Tue, 07 Jul 2009 13:20:29 +0200	[thread overview]
Message-ID: <4A532F7D.8020303@diplan.de> (raw)
In-Reply-To: <4240E46D-6DDF-41C3-A6C8-78AFA132FC4F@gmail.com>

Carsten Dominik schrieb:
> 
> On Jun 29, 2009, at 9:51 AM, Rainer Stengele wrote:
> 
>> Hi all,
>>
>> I wonder if my question was too complicated or too stupid?
> 
> Not at all.  It is only that the implementation should still
> allow flexibility to change list types if you wish and not
> immediately get this change reversed.
> 
> I have now implemented the following which does follow your request:
> 
> (setq org-list-demote-modify-bullet
>       '(("-" . "*") ("*" . "-")))
> 
> This works for entering lists as you describe it.  It does not
> work for modifying lists by demotion/promotion, so you mileage may
> vary.  It allows you to enter an ordered list and not have it
> messed up.
> 
> Comments are welcome.....
> 
> - Carsten
> 
>>
>> Thanks for considering.
>>
>> Rainer
>>
>> Rainer Stengele schrieb:
>>> Hi all,
>>>
>>> using org-mode for quite some time now I always look at operations (key
>>> sequences) I repeat a lot of times.
>>>
>>> A lot of times I start a list with an item and immediately indent the
>>> next item as subitem.
>>>
>>> From
>>>
>>> - item 1
>>> - subitem 11
>>>
>>> I go to
>>>
>>> - item 1
>>>  - subitem 11
>>>
>>> via "M-right". Then I always want to change the style of the subitem
>>> list to "*". I do this via "S-right-right".
>>>
>>> I wonder how others work. I would like to automatically have changed the
>>> subitem list type to "*" as soon as I indent via "Alt-right". Next
>>> indentation should go back to "-". etc.
>>>
>>> Maybe we could introduce a variable that sets the order of standard list
>>> item types, in my case: "- * - * - * - *" as in
>>>
>>>
>>> - item 1
>>>  * subitem 11
>>>    - subitem 111
>>>      * subitem 111
>>> ...
>>>
>>> very special I know but I try to reduce the keypressings as much as
>>> possible. Any other suggestions?
>>>
>>>
>>> Rainer
>>>
>>>
>>>

Carsten,

thanks a lot for considering this and implementing.
Trying it out with the latest git version I simply end up with

call-interactively: Wrong type argument: listp, 2

or

call-interactively: Wrong type argument: listp, 4

and so on, depending on the depth of the parent element,
when trying to demote with "M-right".

my .emacs config looks like (created by org-customize):
 '(org-list-demote-modify-bullet (quote (("*" . "-") ("-" . "+") ("+" . "*") ("*" . "-"))))

How can I trace the mechanism?

Rainer

  reply	other threads:[~2009-07-07 11:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-23 21:23 Rainer Stengele
2009-06-29  7:51 ` Rainer Stengele
2009-06-29  9:46   ` Eric S Fraga
2009-07-06 13:44   ` Carsten Dominik
2009-07-07 11:20     ` Rainer Stengele [this message]
2009-07-07 11:33       ` Carsten Dominik
2009-07-07 11:44         ` Rainer Stengele
2009-07-07 11:52           ` Carsten Dominik
2009-07-07 21:15             ` Rainer Stengele
2009-06-30  0:51 ` Samuel Wales
2009-07-05 14:57   ` Raffi R
2009-07-05 19:12     ` Eric S Fraga
2009-07-05 22:26       ` Raffi R
2009-07-06  8:32         ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A532F7D.8020303@diplan.de \
    --to=rainer.stengele@diplan.de \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: indent list item and change list type automatically' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).