Merge branch 'maint'
This commit is contained in:
commit
c1f576a7e5
|
@ -327,8 +327,7 @@ a cons cell (LINE . COLUMN) or symbol `end'. See also
|
||||||
(cons (count-lines beg (line-beginning-position))
|
(cons (count-lines beg (line-beginning-position))
|
||||||
;; Column is relative to the end of line to avoid problems of
|
;; Column is relative to the end of line to avoid problems of
|
||||||
;; comma escaping or colons appended in front of the line.
|
;; comma escaping or colons appended in front of the line.
|
||||||
(- (current-column)
|
(- (point) (min end (line-end-position)))))))
|
||||||
(progn (end-of-line) (current-column)))))))
|
|
||||||
|
|
||||||
(defun org-src--goto-coordinates (coord beg end)
|
(defun org-src--goto-coordinates (coord beg end)
|
||||||
"Move to coordinates COORD relatively to BEG and END.
|
"Move to coordinates COORD relatively to BEG and END.
|
||||||
|
@ -341,9 +340,9 @@ which see. BEG and END are buffer positions."
|
||||||
(org-with-wide-buffer
|
(org-with-wide-buffer
|
||||||
(goto-char beg)
|
(goto-char beg)
|
||||||
(forward-line (car coord))
|
(forward-line (car coord))
|
||||||
(end-of-line)
|
(max (point)
|
||||||
(org-move-to-column (max (+ (current-column) (cdr coord)) 0))
|
(+ (min end (line-end-position))
|
||||||
(point)))))
|
(cdr coord)))))))
|
||||||
|
|
||||||
(defun org-src--contents-area (datum)
|
(defun org-src--contents-area (datum)
|
||||||
"Return contents boundaries of DATUM.
|
"Return contents boundaries of DATUM.
|
||||||
|
|
Loading…
Reference in New Issue