From: Carsten Dominik <dominik@science.uva.nl>
To: Pete Phillips <pete@smtl.co.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to copy an agenda buffer into another buffer for editing
Date: Wed, 17 Jan 2007 13:13:19 +0100 [thread overview]
Message-ID: <e4317524b80bfeab00a5958a5f5edf1a@science.uva.nl> (raw)
In-Reply-To: <22244.1169035479@lap1.smtl.co.uk>
Great.
Please remove this from your setup when you get 4.62, because it will
be built-in then.
- Carsten
On Jan 17, 2007, at 13:04, Pete Phillips wrote:
> Hi Carsten
>
>>>>>> "Carsten" == Carsten Dominik <dominik@science.uva.nl> writes:
>
> Carsten> Now that is an interesting bug, and it is actually
> Carsten> dangerous.
>
> :-)
>
> Carsten> This is, in fact, a dangerous bug, because if, for
> example,
> Carsten> you press C-k on one of those lines, the corresponding
> Carsten> entry in the org-mode file or in the diary will be
> Carsten> *removed*. So don't do that, and I hope you have not
> Carsten> destroyed something already.
>
> Nearly. Thank goodness for undo eh ?
>
> Carsten> A work-around is to use the following function to copy the
> Carsten> region from the agenda buffer. It does the same thing as
> Carsten> M-w, but does not take along any text properties.
>
> I haven't tried that because I tried:
>
> Carsten> Hmmmmm, I am just thinking, that a general solution for
> Carsten> this might instead be:
>
> Carsten> (add-hook 'org-agenda-mode-hook (lambda ()
> Carsten> (make-local-variable 'buffer-substring-filters) (setq
> Carsten> buffer-substring-filters (cons (lambda (x)
> Carsten> (set-text-properties 0 (length x) nil x) x)
> Carsten> buffer-substring-filters))))
>
> and this works (once I killed the *Org Agenda* buffer off and
> regenerated it).
>
> Superb. Thanks.
> Pete
>
>
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
prev parent reply other threads:[~2007-01-17 12:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-16 15:55 How to copy an agenda buffer into another buffer for editing Pete Phillips
2007-01-16 22:52 ` Carsten Dominik
2007-01-17 12:04 ` Pete Phillips
2007-01-17 12:13 ` Carsten Dominik [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=e4317524b80bfeab00a5958a5f5edf1a@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=pete@smtl.co.uk \
/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).