From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: mark parent of current heading Date: Wed, 12 Mar 2014 10:15:18 +0100 Message-ID: <87ha73srq1.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNfFe-00050e-Ax for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 05:15:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNfEz-0002fx-NU for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 05:15:02 -0400 Received: from plane.gmane.org ([80.91.229.3]:48081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNfEz-0002fO-El for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 05:14:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WNfEy-0003OV-1B for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 10:14:20 +0100 Received: from e178191110.adsl.alicedsl.de ([85.178.191.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 10:14:20 +0100 Received: from tjolitz by e178191110.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 10:14:20 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Matt Price writes: > is it possible to mark, not the current subtree, but one level up from > the current subtree? I would like to add that level to the org > bindings for expand-region, > > https://github.com/magnars/expand-region.el/blob/master/the-org-mode-expansions.el you are probably looking for something more sophisticated, but this (untested) snippet should do the job when you are on a subheadline: #+begin_src emacs-lisp (save-excursion (org-up-element) (org-mark-subtree))) #+end_src -- cheers, Thorsten