From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Quezadas Subject: Mark-and-select an item in org-mode Date: Thu, 14 Jun 2018 11:58:02 -0700 Message-ID: <88e04d88-6d66-b917-a91b-49fb7163b7e3@thestever.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTXRh-00036l-3N for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 14:58:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTXRd-0000je-VM for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 14:58:09 -0400 Received: from homie-sub4.mail.dreamhost.com ([69.163.253.135]:45032 helo=homiemail-a129.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTXRd-0000fw-NW for emacs-orgmode@gnu.org; Thu, 14 Jun 2018 14:58:05 -0400 Received: from homiemail-a129.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a129.g.dreamhost.com (Postfix) with ESMTP id 3E66410002181 for ; Thu, 14 Jun 2018 11:58:03 -0700 (PDT) Received: from [90.0.0.218] (rrcs-108-178-191-54.west.biz.rr.com [108.178.191.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: steve@thestever.net) by homiemail-a129.g.dreamhost.com (Postfix) with ESMTPSA id 2F3CA10002180 for ; Thu, 14 Jun 2018 11:58:03 -0700 (PDT) Content-Language: en-US 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 I'm not sure if there's something incredibly simple I'm missing here, but is there a way to just select an org-mode item when a cursor is on top of an org-mode item? I checked google/org-mode documentation and I can't find anything. So I went through the source code and noticed that procedure "org-move-item-up" has a function, "point-at-bol", that return the position of the line item that the cursor is standing on top of. I would imagine it would be trivial to do a "select mark" command for that item after that. Two questions: 1) Is there already an org-mode function that select or delete an org-mode line item? 2) If not, is it possible to do a "set-mark-command" on an org-mode line item (possibly derived from the "point-at-bol" command)? I am somewhat new to emacs-lisp, and I plan to "play around with it" to get it to do what I want it to do, but I thought I'd through it on the maillist to see if I am barking up the right tree. If it's not a feature in org-mode, I'm sure I can write my own function for it and, in the spirit of emacs, throw a patch to the project if wanted. - Steve