[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH 06/10] Use prefix arg in org-edit-special
From: |
Eric Schulte |
Subject: |
Re: [O] [PATCH 06/10] Use prefix arg in org-edit-special |
Date: |
Wed, 03 Apr 2013 07:42:06 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Aaron Ecay <address@hidden> writes:
> * lisp/org.el (org-edit-special): Use prefix arg, as docstring says we
> do
>
This is beyond my ken. I'll leave review of this patch to Bastien.
>
> Only makes a difference for src-block editing.
> ---
> lisp/org.el | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/lisp/org.el b/lisp/org.el
> index 04ce386..1edfbc4 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -19943,7 +19943,7 @@ When in a fixed-width region, call
> `org-edit-fixed-width-region'.
> When at an #+INCLUDE keyword, visit the included file.
> On a link, call `ffap' to visit the link at point.
> Otherwise, return a user error."
> - (interactive)
> + (interactive "P")
> (let ((element (org-element-at-point)))
> (assert (not buffer-read-only) nil
> "Buffer is read-only: %s" (buffer-name))
> @@ -19958,8 +19958,9 @@ Otherwise, return a user error."
> ;; At a src-block with a session and function called with
> ;; an ARG: switch to the buffer related to the inferior
> ;; process.
> - (funcall (intern (concat "org-babel-prep-session:" lang))
> - session params)))))
> + (switch-to-buffer
> + (funcall (intern (concat "org-babel-prep-session:" lang))
> + session params))))))
> (keyword
> (if (member (org-element-property :key element) '("INCLUDE"
> "SETUPFILE"))
> (find-file
--
Eric Schulte
http://cs.unm.edu/~eschulte
- Re: [O] [PATCH 07/10] Simplify org-babel-execute-src-block, (continued)
[O] [PATCH 05/10] Remove info arg from several org-babel functions, Aaron Ecay, 2013/04/01
[O] [PATCH 08/10] Fix testing/lisp/test-ob-emacs-lisp.el, Aaron Ecay, 2013/04/01
[O] [PATCH 06/10] Use prefix arg in org-edit-special, Aaron Ecay, 2013/04/01
- Re: [O] [PATCH 06/10] Use prefix arg in org-edit-special,
Eric Schulte <=
[O] [PATCH 09/10] Remove org-babel-check-confirm-evaluate macro, Aaron Ecay, 2013/04/01
[O] [PATCH 10/10] Document how :var introduces code block dependencies., Aaron Ecay, 2013/04/01
Re: [O] [PATCH 00/10] babel cleanups, Eric Schulte, 2013/04/02