diff options
| author | Karl Heuer | 1996-01-29 23:19:25 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-29 23:19:25 +0000 |
| commit | 0fd6a3e29455f1da4fdaead884d9de9a879593a1 (patch) | |
| tree | b07ece0823b6a754cd879c1002701e6fb9042e3d | |
| parent | 195b04a4bef49e2f69f6aed50af170c258c16606 (diff) | |
| download | emacs-0fd6a3e29455f1da4fdaead884d9de9a879593a1.tar.gz emacs-0fd6a3e29455f1da4fdaead884d9de9a879593a1.zip | |
(vip-ex, ex-expand-filsyms, vip-execute-ex-command): Fix error format string.
| -rw-r--r-- | lisp/emulation/viper-ex.el | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el index 57a813f6c19..32dff786efe 100644 --- a/lisp/emulation/viper-ex.el +++ b/lisp/emulation/viper-ex.el | |||
| @@ -489,7 +489,7 @@ reversed.") | |||
| 489 | )) | 489 | )) |
| 490 | )) | 490 | )) |
| 491 | ((eq ex-token-type 'non-command) | 491 | ((eq ex-token-type 'non-command) |
| 492 | (error (format "`%s': %s" ex-token vip-BadExCommand))) | 492 | (error "`%s': %s" ex-token vip-BadExCommand)) |
| 493 | ((eq ex-token-type 'whole) | 493 | ((eq ex-token-type 'whole) |
| 494 | (setq address nil) | 494 | (setq address nil) |
| 495 | (setq ex-addresses | 495 | (setq ex-addresses |
| @@ -731,7 +731,7 @@ reversed.") | |||
| 731 | (setq cf buffer-file-name) | 731 | (setq cf buffer-file-name) |
| 732 | (setq pf (ex-next nil t))) ; this finds alternative file name | 732 | (setq pf (ex-next nil t))) ; this finds alternative file name |
| 733 | (if (and (null cf) (string-match "[^\\]%\\|\\`%" cmd)) | 733 | (if (and (null cf) (string-match "[^\\]%\\|\\`%" cmd)) |
| 734 | (error "No current file to substitute for `\%'")) | 734 | (error "No current file to substitute for `%%'")) |
| 735 | (if (and (null pf) (string-match "[^\\]#\\|\\`#" cmd)) | 735 | (if (and (null pf) (string-match "[^\\]#\\|\\`#" cmd)) |
| 736 | (error "No alternate file to substitute for `#'")) | 736 | (error "No alternate file to substitute for `#'")) |
| 737 | (save-excursion | 737 | (save-excursion |
| @@ -944,22 +944,19 @@ reversed.") | |||
| 944 | (string= ex-token "change") | 944 | (string= ex-token "change") |
| 945 | (string= ex-token "insert") | 945 | (string= ex-token "insert") |
| 946 | (string= ex-token "open")) | 946 | (string= ex-token "open")) |
| 947 | (error | 947 | (error "`%s': Obsolete command, not supported by Viper" |
| 948 | (format "`%s': Obsolete command, not supported by Viper" | 948 | ex-token)) |
| 949 | ex-token))) | ||
| 950 | ((or (string= ex-token "abbreviate") | 949 | ((or (string= ex-token "abbreviate") |
| 951 | (string= ex-token "unabbreviate")) | 950 | (string= ex-token "unabbreviate")) |
| 952 | (error | 951 | (error |
| 953 | (format | ||
| 954 | "`%s': Vi-style abbrevs are obsolete. Use the more powerful Emacs abbrevs" | 952 | "`%s': Vi-style abbrevs are obsolete. Use the more powerful Emacs abbrevs" |
| 955 | ex-token))) | 953 | ex-token)) |
| 956 | ((or (string= ex-token "list") | 954 | ((or (string= ex-token "list") |
| 957 | (string= ex-token "print") | 955 | (string= ex-token "print") |
| 958 | (string= ex-token "z") | 956 | (string= ex-token "z") |
| 959 | (string= ex-token "#")) | 957 | (string= ex-token "#")) |
| 960 | (error | 958 | (error "`%s': Command not implemented in Viper" ex-token)) |
| 961 | (format "`%s': Command not implemented in Viper" ex-token))) | 959 | (t (error "`%s': %s" ex-token vip-BadExCommand)))) |
| 962 | (t (error (format "`%s': %s" ex-token vip-BadExCommand))))) | ||
| 963 | 960 | ||
| 964 | (defun vip-undisplayed-files () | 961 | (defun vip-undisplayed-files () |
| 965 | (mapcar | 962 | (mapcar |