emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Colin Fraizer" <orgmode@cfraizer.com>
To: 'Carsten Dominik' <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Capture feature suggestion: place the mark from a template
Date: Wed, 25 Apr 2012 05:22:21 -0400	[thread overview]
Message-ID: <010e01cd22c4$ec144c20$c43ce460$@cfraizer.com> (raw)
In-Reply-To: <346CDE65-110E-4447-AF59-1F314016A7AA@gmail.com>

Nick Dokos wrote:
>Maybe - but in this particular case, you could just go to the end of the 
>buffer with  M-> (end-of-buffer), right?

Yeah.  I could just do that.   (Blushing with embarrassment. :-)

>And there might be a problem with your proposal: if I push a bunch of
>marks during the capture, what happens after the capture is done? Are
>they still on the stack? If so, should they be?

I guess I was mostly thinking of capture using indirect buffers, which
have their own marks and mark rings, right?  Does ":unnarrowed" use the
actual buffer instead of an indirect one?

If so, I can see a couple options (and we've already established that there
are lots of options I don't see):
- If you don't like capture to set the mark, don't set it. :-)
- Arrange for clean-up in the case of org-capture-kill and (maybe?)
org-capture-finalize.

Carsten Dominik wrote:
>You could also use a prompt for the headline.  Or we could allow several %?
>in the buffer, with a simple key to jump to the next one and delete it.....

Yeah, I could do that too.  I don't know why I didn't consider that.  I
guess
because I'm so used to the "pop-up" nature of the capture window.

I'm not sure I would like/use the "multiple %?" approach.

Another reason I can imagine for wanting to place the mark with capture
is to define the region.  (Being old, I'm somewhat ambivalent about this
new-fangled "light-up" "active" region. :-)  I can imagine wanting to
place the mark and point (with %?), typing some stuff, and then wanting to
M-w (kill-ring-save) that text.

--Colin 

      reply	other threads:[~2012-04-25  9:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-24 10:46 Capture feature suggestion: place the mark from a template Colin Fraizer
2012-04-24 14:53 ` Nick Dokos
2012-04-24 15:02 ` Carsten Dominik
2012-04-25  9:22   ` Colin Fraizer [this message]

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='010e01cd22c4$ec144c20$c43ce460$@cfraizer.com' \
    --to=orgmode@cfraizer.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).