From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: mark parent of current heading Date: Thu, 13 Mar 2014 13:58:07 -0400 Message-ID: References: <87ha73srq1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO9tS-0006Og-6U for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 13:58:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WO9tQ-0003TH-99 for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 13:58:10 -0400 Received: from mail-qa0-x232.google.com ([2607:f8b0:400d:c00::232]:35299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WO9tQ-0003Sx-5b for emacs-orgmode@gnu.org; Thu, 13 Mar 2014 13:58:08 -0400 Received: by mail-qa0-f50.google.com with SMTP id o15so1372663qap.37 for ; Thu, 13 Mar 2014 10:58:07 -0700 (PDT) In-Reply-To: <87ha73srq1.fsf@gmail.com> 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 Cc: Org Mode On Wed, Mar 12, 2014 at 5:15 AM, Thorsten Jolitz wrote: > 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 > Thanks Thorsten, This is in fact almost exactly what I was looking for, but it seems expand-region needs something rather more sophisticated, I'll get back to the list when I have it figured out. Thank you! Matt