[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master cb2e34b: Remove outdated comment about Emacs 20 from viper.el
From: |
Stefan Kangas |
Subject: |
master cb2e34b: Remove outdated comment about Emacs 20 from viper.el |
Date: |
Thu, 19 Nov 2020 00:42:39 -0500 (EST) |
branch: master
commit cb2e34b49332cf2664de6fc4a8a79da5965298ed
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Remove outdated comment about Emacs 20 from viper.el
* lisp/emulation/viper-util.el (viper-chars-in-region): Remove
outdated comment.
---
lisp/emulation/viper-util.el | 8 --------
1 file changed, 8 deletions(-)
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el
index 83e45e1..9da493d 100644
--- a/lisp/emulation/viper-util.el
+++ b/lisp/emulation/viper-util.el
@@ -249,15 +249,7 @@ Otherwise return the normal value."
(goto-char cur-pos)
result))
-;; Emacs used to count each multibyte character as several positions in the
buffer,
-;; so we had to use Emacs's chars-in-region to count characters. Since 20.3,
-;; Emacs counts multibyte characters as 1 position. XEmacs has always been
-;; counting each char as just one pos. So, now we can simply subtract beg from
-;; end to determine the number of characters in a region.
(defun viper-chars-in-region (beg end &optional preserve-sign)
- ;;(let ((count (abs (if (fboundp 'chars-in-region)
- ;; (chars-in-region beg end)
- ;; (- end beg)))))
(let ((count (abs (- end beg))))
(if (and (< end beg) preserve-sign)
(- count)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master cb2e34b: Remove outdated comment about Emacs 20 from viper.el,
Stefan Kangas <=