emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss


From: Bastien
Subject: Re: [O] bug#12905: 24.2.50; org: edit source block causes data loss
Date: Fri, 14 Dec 2012 10:40:46 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

> -         (if (>= end beg) temp
> -           (goto-char beg)
> -           (insert "\n")
> -           (org-edit-src-find-region-and-lang))))
> +         (if (and beg end)
> +             (if (>= end beg)
> +                 temp
> +               (goto-char beg)
> +               (insert "\n")
> +               (org-edit-src-find-region-and-lang))
> +           (error "Point not in src block."))))

Note: this is 

  (if (and beg end (>= end beg)) ... ...)

Let's try to optimize such tiny refactoring :)

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]