소스 검색

babel: replaced `line-number-at-pos' with `count-lines'

Eric Schulte 15 년 전
부모
커밋
6151c88f10
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      contrib/babel/lisp/org-babel.el

+ 1 - 2
contrib/babel/lisp/org-babel.el

@@ -1026,8 +1026,7 @@ directory then expand relative links."
 (defun org-babel-examplize-region (beg end &optional results-switches)
 (defun org-babel-examplize-region (beg end &optional results-switches)
   "Comment out region using the ': ' org example quote."
   "Comment out region using the ': ' org example quote."
   (interactive "*r")
   (interactive "*r")
-  (let ((size (abs (- (line-number-at-pos end)
-		      (line-number-at-pos beg)))))
+  (let ((size (count-lines beg end)))
     (save-excursion
     (save-excursion
       (cond ((= size 0)
       (cond ((= size 0)
 	     (error (concat "This should be impossible:"
 	     (error (concat "This should be impossible:"