diff options
| author | Michael Kifer | 2002-09-18 04:23:27 +0000 |
|---|---|---|
| committer | Michael Kifer | 2002-09-18 04:23:27 +0000 |
| commit | f3eabcdf400d9a6848cf46973cde07b13d7fbab0 (patch) | |
| tree | f5dcdbaff36ba3985d80f59f74eb604ce5e330e8 /lisp/emulation | |
| parent | bd3c9eb62202f579000c3dad85e3a79003e2beb7 (diff) | |
| download | emacs-f3eabcdf400d9a6848cf46973cde07b13d7fbab0.tar.gz emacs-f3eabcdf400d9a6848cf46973cde07b13d7fbab0.zip | |
2002-09-18 Michael Kifer <kifer@cs.stonybrook.edu>
* ediff-hooks.el: Put back the autoloads (for compatibility with XEmacs).
* ediff-init.el: Use defalias instead of fset.
* ediff-util.el: Use defalias instead of fset.
* viper-util.el (viper-chars-in-region): simplification.
* viper.el (viper-emacs-state-mode-list): added modes.
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/viper-util.el | 15 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 4 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el index bb748fcadfc..2bbdb828ff6 100644 --- a/lisp/emulation/viper-util.el +++ b/lisp/emulation/viper-util.el | |||
| @@ -264,13 +264,16 @@ | |||
| 264 | (goto-char cur-pos) | 264 | (goto-char cur-pos) |
| 265 | result)) | 265 | result)) |
| 266 | 266 | ||
| 267 | ;; Emacs counts each multibyte character as several positions in the buffer, so | 267 | ;; Emacs used to count each multibyte character as several positions in the buffer, |
| 268 | ;; we use Emacs' chars-in-region. XEmacs is counting each char as just one pos, | 268 | ;; so we had to use Emacs' chars-in-region to count characters. Since 20.3, |
| 269 | ;; so we can simply subtract. | 269 | ;; Emacs counts multibyte characters as 1 position. XEmacs has always been |
| 270 | ;; counting each char as just one pos. So, now we can simply subtract beg from | ||
| 271 | ;; end to determine the number of characters in a region. | ||
| 270 | (defun viper-chars-in-region (beg end &optional preserve-sign) | 272 | (defun viper-chars-in-region (beg end &optional preserve-sign) |
| 271 | (let ((count (abs (if (fboundp 'chars-in-region) | 273 | ;;(let ((count (abs (if (fboundp 'chars-in-region) |
| 272 | (chars-in-region beg end) | 274 | ;; (chars-in-region beg end) |
| 273 | (- end beg))))) | 275 | ;; (- end beg))))) |
| 276 | (let ((count (abs (- end beg)))) | ||
| 274 | (if (and (< end beg) preserve-sign) | 277 | (if (and (< end beg) preserve-sign) |
| 275 | (- count) | 278 | (- count) |
| 276 | count))) | 279 | count))) |
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index 27bcf021e80..50b5d82dff0 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -422,6 +422,10 @@ widget." | |||
| 422 | efs-mode | 422 | efs-mode |
| 423 | tar-mode | 423 | tar-mode |
| 424 | 424 | ||
| 425 | browse-kill-ring-mode | ||
| 426 | recentf-mode | ||
| 427 | occur-mode | ||
| 428 | |||
| 425 | mh-folder-mode | 429 | mh-folder-mode |
| 426 | mail-mode | 430 | mail-mode |
| 427 | gnus-group-mode | 431 | gnus-group-mode |