aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2020-11-19 06:34:11 +0100
committerStefan Kangas2020-11-19 06:42:25 +0100
commitcb2e34b49332cf2664de6fc4a8a79da5965298ed (patch)
treebd44038ddc9d52cb5023b2b074134e658fffe5ac
parentb6d2ea05cc886298f68e47de009fcdf1a5140c59 (diff)
downloademacs-cb2e34b49332cf2664de6fc4a8a79da5965298ed.tar.gz
emacs-cb2e34b49332cf2664de6fc4a8a79da5965298ed.zip
Remove outdated comment about Emacs 20 from viper.el
* lisp/emulation/viper-util.el (viper-chars-in-region): Remove outdated comment.
-rw-r--r--lisp/emulation/viper-util.el8
1 files changed, 0 insertions, 8 deletions
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el
index 83e45e1cd0c..9da493d74ba 100644
--- a/lisp/emulation/viper-util.el
+++ b/lisp/emulation/viper-util.el
@@ -249,15 +249,7 @@ Otherwise return the normal value."
249 (goto-char cur-pos) 249 (goto-char cur-pos)
250 result)) 250 result))
251 251
252;; Emacs used to count each multibyte character as several positions in the buffer,
253;; so we had to use Emacs's chars-in-region to count characters. Since 20.3,
254;; Emacs counts multibyte characters as 1 position. XEmacs has always been
255;; counting each char as just one pos. So, now we can simply subtract beg from
256;; end to determine the number of characters in a region.
257(defun viper-chars-in-region (beg end &optional preserve-sign) 252(defun viper-chars-in-region (beg end &optional preserve-sign)
258 ;;(let ((count (abs (if (fboundp 'chars-in-region)
259 ;; (chars-in-region beg end)
260 ;; (- end beg)))))
261 (let ((count (abs (- end beg)))) 253 (let ((count (abs (- end beg))))
262 (if (and (< end beg) preserve-sign) 254 (if (and (< end beg) preserve-sign)
263 (- count) 255 (- count)