From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: indent list item and change list type automatically Date: Tue, 07 Jul 2009 13:20:29 +0200 Message-ID: <4A532F7D.8020303@diplan.de> References: <4A48726E.2000505@diplan.de> <4240E46D-6DDF-41C3-A6C8-78AFA132FC4F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MO8j9-0000Uk-E4 for emacs-orgmode@gnu.org; Tue, 07 Jul 2009 07:20:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MO8j4-0000Qh-6x for emacs-orgmode@gnu.org; Tue, 07 Jul 2009 07:20:46 -0400 Received: from [199.232.76.173] (port=51573 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MO8j3-0000QS-W7 for emacs-orgmode@gnu.org; Tue, 07 Jul 2009 07:20:42 -0400 Received: from main.gmane.org ([80.91.229.2]:47058 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MO8j3-0008Q2-J4 for emacs-orgmode@gnu.org; Tue, 07 Jul 2009 07:20:41 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MO8iz-0005U8-HX for emacs-orgmode@gnu.org; Tue, 07 Jul 2009 11:20:37 +0000 Received: from 212.34.176.74 ([212.34.176.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Jul 2009 11:20:37 +0000 Received: from rainer.stengele by 212.34.176.74 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 07 Jul 2009 11:20:37 +0000 In-Reply-To: <4240E46D-6DDF-41C3-A6C8-78AFA132FC4F@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: emacs-orgmode@gnu.org 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