emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [RFC, mini] org-mark-element-parent


From: Marco Wahl
Subject: Re: [O] [RFC, mini] org-mark-element-parent
Date: Tue, 30 May 2017 09:51:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Hi!

Nicolas Goaziou <address@hidden> writes:

>> 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
>
> There is already a binding to move to the beginning of the parent
> element (C-c C-^, IIRC).

Nice!

How could I overlook `org-up-element'?  `org-up-element' together with
org-mark-element (M-h) is my key combination of the day!

> IMO, this is not only marginally useful. Also, it doesn't handle
> headlines.

Let's commit that little RFC to the stream of oblivion.


Thanks!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]