From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: [RFC, mini] org-mark-element-parent Date: Tue, 30 May 2017 01:00:53 +0200 Message-ID: <84r2z746ai.fsf@tm6592> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFTex-00020l-EZ for emacs-orgmode@gnu.org; Mon, 29 May 2017 19:01:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFTeu-0004Ky-DW for emacs-orgmode@gnu.org; Mon, 29 May 2017 19:01:11 -0400 Received: from [195.159.176.226] (port=46433 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFTeu-0004KJ-6g for emacs-orgmode@gnu.org; Mon, 29 May 2017 19:01:08 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dFTej-0006Ko-AL for emacs-orgmode@gnu.org; Tue, 30 May 2017 01:00:57 +0200 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" To: emacs-orgmode@gnu.org Hi Orgers, is the following function worthy to occupy space in Orgmode? #v+ (defun org-mark-element-parent () "Put point at beginning of the parent element, mark at end." (interactive) (let ((parent (org-element-property :parent (org-element-at-point)))) (when parent (push-mark (org-element-property :end parent) t t) (goto-char (org-element-property :begin parent))))) #v- Can be used to e.g. - mark a table or - a plain list Best regards Marco