From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matti De Craene Subject: [Patch] M-Right and M-Left behave differently on headings and list items Date: Mon, 19 Apr 2010 15:29:02 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=0016e6db2ad6eccbeb04849e7c4b Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3zSm-0005rd-4S for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 18:29:08 -0400 Received: from [140.186.70.92] (port=57253 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3zSj-0005qN-V6 for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 18:29:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3zSi-0003xL-Cw for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 18:29:05 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:58567) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3zSi-0003x2-84 for emacs-orgmode@gnu.org; Mon, 19 Apr 2010 18:29:04 -0400 Received: by wwc33 with SMTP id 33so2618455wwc.0 for ; Mon, 19 Apr 2010 15:29:02 -0700 (PDT) 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 To: emacs-orgmode@gnu.org --0016e6db2ad6eccbeb04849e7c4b Content-Type: text/plain; charset=ISO-8859-1 Hello all, When operating on a heading, M-Right/M-Left promotes or demotes one heading only, and M-S-Right/M-S-Left promotes or demotes an entire subtree. When operating on list items however, there is no distinction between M-Right/M-Left and M-S-Right/M-S-Left. Both key combinations operate on the current item and on all subitems Example: No difference between M-Right and M-S-Right on item 1 below: - item 1 - item 2 - item 3 I find this behaviour somewhat confusing. Attached patch seems to fix that for me. Kind Regards, Matti --0016e6db2ad6eccbeb04849e7c4b Content-Type: text/x-patch; charset=US-ASCII; name="M-right-M-left-on-list-items.patch" Content-Disposition: attachment; filename="M-right-M-left-on-list-items.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g88e3fj30 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLWxpc3QuZWwgYi9saXNwL29yZy1saXN0LmVsCmluZGV4IGQz YmZiNmIuLjA1NzkzZTcgMTAwNjQ0Ci0tLSBhL2xpc3Avb3JnLWxpc3QuZWwKKysrIGIvbGlzcC9v cmctbGlzdC5lbApAQCAtOTc1LDEyICs5NzUsMTUgQEAgSS5lLiB0byB0aGUgdGV4dCBhZnRlciB0 aGUgbGFzdCBpdGVtLiIKICAgICAoc2V0cSBmaXJzdHAgKG9yZy1maXJzdC1saXN0LWl0ZW0tcCkp CiAgICAgKHNhdmUtZXhjdXJzaW9uCiAgICAgICAoc2V0cSBlbmQgKGFuZCAob3JnLXJlZ2lvbi1h Y3RpdmUtcCkgKHJlZ2lvbi1lbmQpKSkKLSAgICAgIChpZiAobWVtcSBsYXN0LWNvbW1hbmQgJyhv cmctc2hpZnRtZXRhcmlnaHQgb3JnLXNoaWZ0bWV0YWxlZnQpKQorICAgICAgKGlmIChhbmQgKG1l bXEgbGFzdC1jb21tYW5kICcob3JnLXNoaWZ0bWV0YXJpZ2h0IG9yZy1zaGlmdG1ldGFsZWZ0KSkK KwkgICAgICAgIChtZW1xIHRoaXMtY29tbWFuZCAnKG9yZy1zaGlmdG1ldGFyaWdodCBvcmctc2hp ZnRtZXRhbGVmdCkpKQogCSAgKHNldHEgYmVnIG9yZy1sYXN0LWluZGVudC1iZWdpbi1tYXJrZXIK IAkJZW5kIG9yZy1sYXN0LWluZGVudC1lbmQtbWFya2VyKQogCShvcmctYmVnaW5uaW5nLW9mLWl0 ZW0pCiAJKHNldHEgYmVnIChtb3ZlLW1hcmtlciBvcmctbGFzdC1pbmRlbnQtYmVnaW4tbWFya2Vy IChwb2ludCkpKQotCShvcmctZW5kLW9mLWl0ZW0pCisJKGlmIChtZW1xIHRoaXMtY29tbWFuZCAn KG9yZy1zaGlmdG1ldGFyaWdodCBvcmctc2hpZnRtZXRhbGVmdCkpCisJICAob3JnLWVuZC1vZi1p dGVtKQorCSAgKG9yZy1lbmQtb2YtbGluZSkpCiAJKHNldHEgZW5kIChtb3ZlLW1hcmtlciBvcmct bGFzdC1pbmRlbnQtZW5kLW1hcmtlciAob3IgZW5kIChwb2ludCkpKSkpCiAgICAgICAoZ290by1j aGFyIGJlZykKICAgICAgIChzZXRxIGluZC1idWwgKG9yZy1pdGVtLWluZGVudC1wb3NpdGlvbnMp Cg== --0016e6db2ad6eccbeb04849e7c4b Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --0016e6db2ad6eccbeb04849e7c4b--