emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bastien.guerry@wikimedia.fr>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org, Richard Riley <rileyrg@gmail.com>
Subject: Re: Q : select current org item as region
Date: Thu, 09 Sep 2010 09:52:13 +0200	[thread overview]
Message-ID: <8739tj9wwi.fsf@gnu.org> (raw)
In-Reply-To: <87tym0j9ns.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Wed, 08 Sep 2010 21:51:51 +0200")

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> (defun mark-current-item ()
>   (interactive)
>   (when (org-in-item-p)
>     (goto-char (org-get-item-beginning))
>     (push-mark nil t t)
>     (goto-char (org-get-end-of-item (org-list-bottom-point)))))

Interesting -- looks like a good candidate for worg/org-hacks.org

Maybe with variants like

- narrowing to the item
- selecting it (depending on transient-mark-mode)
- cloning it
- killing it*

... just a thought.

* Would people would find it to have C-k to kill a whole item if a
  certain option is set?  I think I would.  It's rare to have to kill 
  a line in a list item without having to kill the whole item.

-- 
 Bastien

  reply	other threads:[~2010-09-09  7:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08 18:51 Q : select current org item as region Richard Riley
2010-09-08 19:40 ` Richard Riley
2010-09-08 21:06   ` Richard Riley
2010-09-08 19:51 ` Nicolas Goaziou
2010-09-09  7:52   ` Bastien [this message]
2010-09-09 12:48 ` Łukasz Stelmach
2010-09-09 13:03   ` Richard Riley
2010-09-09 13:29     ` Nicolas Goaziou
2010-09-09 13:40       ` Richard Riley
2010-09-10 13:51     ` Łukasz Stelmach
2010-09-10 14:45       ` Richard Riley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739tj9wwi.fsf@gnu.org \
    --to=bastien.guerry@wikimedia.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    --cc=rileyrg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).