emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Mark-and-select an item in org-mode
@ 2018-06-14 18:58 Steve Quezadas
  2018-06-14 19:05 ` Nicolas Goaziou
  2018-06-14 19:22 ` Samuel Wales
  0 siblings, 2 replies; 3+ messages in thread
From: Steve Quezadas @ 2018-06-14 18:58 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-14 19:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-14 18:58 Mark-and-select an item in org-mode Steve Quezadas
2018-06-14 19:05 ` Nicolas Goaziou
2018-06-14 19:22 ` Samuel Wales

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).