[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] How to copy an agenda buffer into another buffer for editi
Re: [Orgmode] How to copy an agenda buffer into another buffer for editing
Wed, 17 Jan 2007 13:13:19 +0100
Please remove this from your setup when you get 4.62, because it will
be built-in then.
On Jan 17, 2007, at 13:04, Pete Phillips wrote:
"Carsten" == Carsten Dominik <address@hidden> writes:
Carsten> Now that is an interesting bug, and it is actually
Carsten> This is, in fact, a dangerous bug, because if, for
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)
and this works (once I killed the *Org Agenda* buffer off and
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
phone: +31 20 525 7477