From: Florian Beck <fb@miszellen.de>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: emacs calc and src block editing
Date: Mon, 27 Jan 2014 00:10:02 +0100 [thread overview]
Message-ID: <52E595CA.3020902@miszellen.de> (raw)
In-Reply-To: <87fvocw7is.fsf@ucl.ac.uk>
On 25.01.2014 13:49, Eric S Fraga wrote:
> There is a niggling aspect of editing source code blocks. If, while in
> the src block buffer (reached by C-c '), if you start up calc and
> request "calc-copy-to-buffer" to place a result in the source code being
> edited, the copy is actually placed in the original org buffer and
> subsequently lost when exiting the src buffer. In my opinion, the copy
> should be place in the src buffer at point.
It is a feature of calc, not to copy to internal (starred) buffers.
> I have no idea whether or how this could be fixed. It's not a major
> problem but I thought I would mention it in case it's easy to fix.
I'm afraid the only way to fix this is inside calc. You can do it
yourself with advice, e.g.:
(advice-add 'calc-find-writable-buffer
:before-until
(lambda (buf mode)
(if (and (string-match "\\`\\*Org Src"
(buffer-name (car buf)))
(get-buffer-window (car buf)))
(car buf)))
'((name . calc-copy-to-org-src)))
Remove it with:
(advice-remove 'calc-find-writable-buffer 'calc-copy-to-org-src)
HTH.
next prev parent reply other threads:[~2014-01-26 23:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-25 12:49 emacs calc and src block editing Eric S Fraga
2014-01-26 23:10 ` Florian Beck [this message]
2014-02-02 19:11 ` Eric S Fraga
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=52E595CA.3020902@miszellen.de \
--to=fb@miszellen.de \
--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).