diff options
| author | Miles Bader | 2007-01-01 03:21:06 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-01-01 03:21:06 +0000 |
| commit | 4c34eeeee5886d14f3e60b77fb563cb549c8896f (patch) | |
| tree | af17010f0864173dd6416585f08d686377791412 /lisp/emulation | |
| parent | 76acf92ebe73e35528c5966a21328305ba7b5aef (diff) | |
| parent | db6292445840e2795f35ebad62a14314fc3c7c21 (diff) | |
| download | emacs-4c34eeeee5886d14f3e60b77fb563cb549c8896f.tar.gz emacs-4c34eeeee5886d14f3e60b77fb563cb549c8896f.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 563-582)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 177-185)
- Merge from emacs--devo--0
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-158
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index ac3ef55d6e4..d3dae72d13e 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -171,7 +171,9 @@ | |||
| 171 | (run-hook-with-args 'viper-before-change-functions beg end)) | 171 | (run-hook-with-args 'viper-before-change-functions beg end)) |
| 172 | 172 | ||
| 173 | (defsubst viper-post-command-sentinel () | 173 | (defsubst viper-post-command-sentinel () |
| 174 | (run-hooks 'viper-post-command-hooks) | 174 | (condition-case conds |
| 175 | (run-hooks 'viper-post-command-hooks) | ||
| 176 | (error (viper-message-conditions conds))) | ||
| 175 | (if (eq viper-current-state 'vi-state) | 177 | (if (eq viper-current-state 'vi-state) |
| 176 | (viper-restore-cursor-color 'after-insert-mode))) | 178 | (viper-restore-cursor-color 'after-insert-mode))) |
| 177 | 179 | ||
| @@ -926,8 +928,7 @@ Vi's prefix argument will be used. Otherwise, the prefix argument passed to | |||
| 926 | 928 | ||
| 927 | (condition-case nil | 929 | (condition-case nil |
| 928 | (let (viper-vi-kbd-minor-mode) ; execute without kbd macros | 930 | (let (viper-vi-kbd-minor-mode) ; execute without kbd macros |
| 929 | (setq result (eval form)) | 931 | (setq result (eval form))) |
| 930 | ) | ||
| 931 | (error | 932 | (error |
| 932 | (signal 'quit nil))) | 933 | (signal 'quit nil))) |
| 933 | 934 | ||
| @@ -1971,9 +1972,16 @@ Undo previous insertion and inserts new." | |||
| 1971 | (if (and (eobp) | 1972 | (if (and (eobp) |
| 1972 | (not (bolp)) | 1973 | (not (bolp)) |
| 1973 | require-final-newline | 1974 | require-final-newline |
| 1975 | ;; add newline only if we actually edited buffer. otherwise it | ||
| 1976 | ;; might unintentionally modify binary buffers | ||
| 1977 | (buffer-modified-p) | ||
| 1974 | (not (viper-is-in-minibuffer)) | 1978 | (not (viper-is-in-minibuffer)) |
| 1975 | (not buffer-read-only)) | 1979 | (not buffer-read-only)) |
| 1976 | (insert "\n"))) | 1980 | ;; text property may be read-only |
| 1981 | (condition-case nil | ||
| 1982 | (insert "\n") | ||
| 1983 | (error nil)) | ||
| 1984 | )) | ||
| 1977 | )) | 1985 | )) |
| 1978 | 1986 | ||
| 1979 | (defun viper-yank-defun () | 1987 | (defun viper-yank-defun () |