From: Carsten Dominik <carsten.dominik@gmail.com>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: Bernt Hansen <bernt@norang.ca>, emacs-orgmode@gnu.org
Subject: Re: Bug: C-c ' eats last newline of a figure [6.35trans (release_6.35g.72.g2e12)]
Date: Wed, 21 Apr 2010 09:49:49 +0200 [thread overview]
Message-ID: <10ADC42F-0E90-4232-B6F6-C70D3CBA9C96@gmail.com> (raw)
In-Reply-To: <87zl10x857.fsf@stats.ox.ac.uk>
Applied, thank.
- Carsten
On Apr 19, 2010, at 8:34 AM, Dan Davison wrote:
> diff --git a/lisp/org-src.el b/lisp/org-src.el
> index 54ec4af..3319a9e 100644
> --- a/lisp/org-src.el
> +++ b/lisp/org-src.el
> @@ -459,15 +459,6 @@ the language, a switch telling if the content
> should be in a single line."
> (pos (point))
> re1 re2 single beg end lang lfmt match-re1 ind entry)
> (catch 'exit
> - (when (org-at-table.el-p)
> - (re-search-backward "^[\t]*[^ \t|\\+]" nil t)
> - (setq beg (1+ (point-at-eol)))
> - (goto-char beg)
> - (or (re-search-forward "^[\t]*[^ \t|\\+]" nil t)
> - (progn (goto-char (point-max)) (newline)))
> - (setq end (point-at-bol))
> - (setq ind (org-edit-src-get-indentation beg))
> - (throw 'exit (list beg end 'table.el nil nil ind)))
> (while (setq entry (pop re-list))
> (setq re1 (car entry) re2 (nth 1 entry) lang (nth 2 entry)
> single (nth 3 entry))
> @@ -498,7 +489,16 @@ the language, a switch telling if the content
> should be in a single line."
> (throw 'exit
> (list (match-end 0) end
> (org-edit-src-get-lang lang)
> - single lfmt ind))))))))))))
> + single lfmt ind)))))))))
> + (when (org-at-table.el-p)
> + (re-search-backward "^[\t]*[^ \t|\\+]" nil t)
> + (setq beg (1+ (point-at-eol)))
> + (goto-char beg)
> + (or (re-search-forward "^[\t]*[^ \t|\\+]" nil t)
> + (progn (goto-char (point-max)) (newline)))
> + (setq end (point-at-bol))
> + (setq ind (org-edit-src-get-indentation beg))
> + (throw 'exit (list beg end 'table.el nil nil ind))))))
>
> (defun org-edit-src-get-lang (lang)
> "Extract the src language."
>
- Carsten
prev parent reply other threads:[~2010-04-21 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 2:01 Bug: C-c ' eats last newline of a figure [6.35trans (release_6.35g.72.g2e12)] Bernt Hansen
2010-04-19 6:34 ` Dan Davison
2010-04-21 7:49 ` 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=10ADC42F-0E90-4232-B6F6-C70D3CBA9C96@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=bernt@norang.ca \
--cc=davison@stats.ox.ac.uk \
--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).