From: Pete Phillips <pete@smtl.co.uk>
To: Carsten Dominik <dominik@science.uva.nl>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to copy an agenda buffer into another buffer for editing
Date: Wed, 17 Jan 2007 12:04:39 +0000 [thread overview]
Message-ID: <22244.1169035479@lap1.smtl.co.uk> (raw)
In-Reply-To: Message from Carsten Dominik <dominik@science.uva.nl> of "Tue, 16 Jan 2007 23:52:13 +0100." <04281800b8c6d767df83d777695c7b2d@science.uva.nl>
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
next prev parent reply other threads:[~2007-01-17 12:04 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 [this message]
2007-01-17 12:13 ` Carsten Dominik
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=22244.1169035479@lap1.smtl.co.uk \
--to=pete@smtl.co.uk \
--cc=dominik@science.uva.nl \
--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).