diff options
| author | Lars Ingebrigtsen | 2021-02-07 16:28:30 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-02-07 16:28:34 +0100 |
| commit | 56e76f0eb00d92b49ddd5757d0a68d09dc522d39 (patch) | |
| tree | 99a987cbdce101f56f7c82722079d08fb86a2b6b /test/src | |
| parent | 5a4d50dfb136080fa2353461ee888d552da44a29 (diff) | |
| download | emacs-56e76f0eb00d92b49ddd5757d0a68d09dc522d39.tar.gz emacs-56e76f0eb00d92b49ddd5757d0a68d09dc522d39.zip | |
Move line-number-at-pos to C
* doc/lispref/positions.texi (Text Lines): Revert previous change.
* lisp/simple.el (line-number-at-pos): Remove definition.
* lisp/simple.el (count-lines): Revert back to using
`forward-line', because there seems to be a disagreement on how
lines should be counted in a region...
* src/fns.c (Fline_number_at_pos): Rename from
Fline_number_at_position and adjust parameter list.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/fns-tests.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index 3a43142106b..928fb15f109 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el | |||
| @@ -1102,7 +1102,7 @@ | |||
| 1102 | (ert-deftest test-line-number-at-position () | 1102 | (ert-deftest test-line-number-at-position () |
| 1103 | (with-temp-buffer | 1103 | (with-temp-buffer |
| 1104 | (insert (make-string 10 ?\n)) | 1104 | (insert (make-string 10 ?\n)) |
| 1105 | (should (= (line-number-at-position (point)) 11)) | 1105 | (should (= (line-number-at-pos (point)) 11)) |
| 1106 | (should-error (line-number-at-position nil)) | 1106 | (should (= (line-number-at-pos nil) 11)) |
| 1107 | (should-error (line-number-at-position -1)) | 1107 | (should-error (line-number-at-pos -1)) |
| 1108 | (should-error (line-number-at-position 100)))) | 1108 | (should-error (line-number-at-pos 100)))) |