diff options
| author | Paul Eggert | 2015-08-29 21:40:21 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-08-29 21:43:01 -0700 |
| commit | 001c7dd928238a196dff4166ad29141116ef6d1c (patch) | |
| tree | 00032c5e1001248c98d396d669d5a00571c4c8d4 | |
| parent | 24ee55bfd4371e24a03db0fbd830ad5adac0ac4f (diff) | |
| download | emacs-001c7dd928238a196dff4166ad29141116ef6d1c.tar.gz emacs-001c7dd928238a196dff4166ad29141116ef6d1c.zip | |
Text quoting fixes in cedet, emulation, emacs-lisp
* lisp/cedet/ede.el (ede-check-project-directory):
* lisp/cedet/semantic/analyze/debug.el:
(semantic-analyzer-debug-insert-include-summary):
* lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment):
* lisp/cedet/semantic/decorate/include.el:
(semantic-decoration-unknown-include-describe)
(semantic-decoration-all-include-summary):
* lisp/cedet/semantic/ia.el (semantic-ia-fast-jump):
* lisp/emulation/edt.el (edt-load-keys):
* lisp/emulation/viper-cmd.el:
(viper-display-current-destructive-command)
(viper-query-replace, viper-brac-function):
* lisp/emulation/viper-ex.el (viper-get-ex-token, ex-compile):
* lisp/emulation/viper-macs.el (viper-unrecord-kbd-macro):
Respect text quoting style in doc string or diagnostic.
* lisp/cedet/mode-local.el (describe-mode-local-overload):
Use format-message to avoid overtranslating quotes.
* lisp/emacs-lisp/checkdoc.el (checkdoc-in-sample-code-p):
Escape an apostrophe in a docstring.
* lisp/emacs-lisp/warnings.el (lwarn): Fix doc string.
| -rw-r--r-- | lisp/cedet/ede.el | 9 | ||||
| -rw-r--r-- | lisp/cedet/mode-local.el | 11 | ||||
| -rw-r--r-- | lisp/cedet/semantic/analyze/debug.el | 9 | ||||
| -rw-r--r-- | lisp/cedet/semantic/bovine/c.el | 9 | ||||
| -rw-r--r-- | lisp/cedet/semantic/decorate/include.el | 15 | ||||
| -rw-r--r-- | lisp/cedet/semantic/ia.el | 10 | ||||
| -rw-r--r-- | lisp/emacs-lisp/checkdoc.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/warnings.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/edt.el | 3 | ||||
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 13 | ||||
| -rw-r--r-- | lisp/emulation/viper-ex.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/viper-macs.el | 12 |
12 files changed, 56 insertions, 45 deletions
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el index 3b06cf792d2..7d99b179112 100644 --- a/lisp/cedet/ede.el +++ b/lisp/cedet/ede.el | |||
| @@ -512,7 +512,7 @@ Sets buffer local variables for EDE." | |||
| 512 | (when projdetect | 512 | (when projdetect |
| 513 | ;; No project was loaded, but we have a project description | 513 | ;; No project was loaded, but we have a project description |
| 514 | ;; object. This means that we try to load it. | 514 | ;; object. This means that we try to load it. |
| 515 | ;; | 515 | ;; |
| 516 | ;; Before loading, we need to check if it is a safe | 516 | ;; Before loading, we need to check if it is a safe |
| 517 | ;; project to load before requesting it to be loaded. | 517 | ;; project to load before requesting it to be loaded. |
| 518 | 518 | ||
| @@ -728,9 +728,10 @@ Return nil if DIR should not be in `ede-project-directories'." | |||
| 728 | (when (listp ede-project-directories) | 728 | (when (listp ede-project-directories) |
| 729 | (or (member dir ede-project-directories) | 729 | (or (member dir ede-project-directories) |
| 730 | (when (funcall ede-check-project-query-fcn | 730 | (when (funcall ede-check-project-query-fcn |
| 731 | (format "`%s' is not listed in `ede-project-directories'. | 731 | (format-message |
| 732 | "`%s' is not listed in `ede-project-directories'. | ||
| 732 | Add it to the list of allowed project directories? " | 733 | Add it to the list of allowed project directories? " |
| 733 | dir)) | 734 | dir)) |
| 734 | (push dir ede-project-directories) | 735 | (push dir ede-project-directories) |
| 735 | ;; If possible, save `ede-project-directories'. | 736 | ;; If possible, save `ede-project-directories'. |
| 736 | (if (or custom-file user-init-file) | 737 | (if (or custom-file user-init-file) |
| @@ -799,7 +800,7 @@ Optional argument NAME is the name to give this project." | |||
| 799 | "Unknown file name specifier %S" | 800 | "Unknown file name specifier %S" |
| 800 | pf))) | 801 | pf))) |
| 801 | :targets nil) | 802 | :targets nil) |
| 802 | 803 | ||
| 803 | )) | 804 | )) |
| 804 | (inits (oref obj initializers))) | 805 | (inits (oref obj initializers))) |
| 805 | ;; Force the name to match for new objects. | 806 | ;; Force the name to match for new objects. |
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el index 9ee875022f8..287e6558b2d 100644 --- a/lisp/cedet/mode-local.el +++ b/lisp/cedet/mode-local.el | |||
| @@ -643,15 +643,14 @@ SYMBOL is a function that can be overridden." | |||
| 643 | (with-current-buffer describe-function-orig-buffer | 643 | (with-current-buffer describe-function-orig-buffer |
| 644 | (fetch-overload symbol))))) | 644 | (fetch-overload symbol))))) |
| 645 | (insert (overload-docstring-extension symbol) "\n\n") | 645 | (insert (overload-docstring-extension symbol) "\n\n") |
| 646 | (insert (substitute-command-keys (format "default function: `%s'\n" default))) | 646 | (insert (format-message "default function: `%s'\n" default)) |
| 647 | (when (and (boundp 'describe-function-orig-buffer) ;; added in Emacs 25 | 647 | (when (and (boundp 'describe-function-orig-buffer) ;; added in Emacs 25 |
| 648 | describe-function-orig-buffer) | 648 | describe-function-orig-buffer) |
| 649 | (if override | 649 | (if override |
| 650 | (insert (substitute-command-keys | 650 | (insert (format-message "\noverride in buffer '%s': `%s'\n" |
| 651 | (format "\noverride in buffer '%s': `%s'\n" | 651 | describe-function-orig-buffer override)) |
| 652 | describe-function-orig-buffer override))) | 652 | (insert (format-message "\nno override in buffer '%s'\n" |
| 653 | (insert (substitute-command-keys (format "\nno override in buffer '%s'\n" | 653 | describe-function-orig-buffer)))) |
| 654 | describe-function-orig-buffer))))) | ||
| 655 | ))) | 654 | ))) |
| 656 | 655 | ||
| 657 | (add-hook 'help-fns-describe-function-functions 'describe-mode-local-overload) | 656 | (add-hook 'help-fns-describe-function-functions 'describe-mode-local-overload) |
diff --git a/lisp/cedet/semantic/analyze/debug.el b/lisp/cedet/semantic/analyze/debug.el index d0ab7c82c13..76a6cc2f9b2 100644 --- a/lisp/cedet/semantic/analyze/debug.el +++ b/lisp/cedet/semantic/analyze/debug.el | |||
| @@ -405,7 +405,8 @@ or implementing a version specific to ") | |||
| 405 | 405 | ||
| 406 | (princ "\n\nInclude Path Summary:") | 406 | (princ "\n\nInclude Path Summary:") |
| 407 | (when edeobj | 407 | (when edeobj |
| 408 | (princ "\n\nThis file's project include search is handled by the EDE object:\n") | 408 | (princ (substitute-command-keys |
| 409 | "\n\nThis file's project include search is handled by the EDE object:\n")) | ||
| 409 | (princ " Buffer Target: ") | 410 | (princ " Buffer Target: ") |
| 410 | (princ (object-print edeobj)) | 411 | (princ (object-print edeobj)) |
| 411 | (princ "\n") | 412 | (princ "\n") |
| @@ -463,12 +464,12 @@ or implementing a version specific to ") | |||
| 463 | 464 | ||
| 464 | (princ "\nYou can fix the include path for ") | 465 | (princ "\nYou can fix the include path for ") |
| 465 | (princ (symbol-name (oref table major-mode))) | 466 | (princ (symbol-name (oref table major-mode))) |
| 466 | (princ " by using this function: | 467 | (princ (substitute-command-keys " by using this function: |
| 467 | 468 | ||
| 468 | M-x semantic-customize-system-include-path RET | 469 | \\[semantic-customize-system-include-path] |
| 469 | 470 | ||
| 470 | which customizes the mode specific variable for the mode-local | 471 | which customizes the mode specific variable for the mode-local |
| 471 | variable `semantic-dependency-system-include-path'.") | 472 | variable `semantic-dependency-system-include-path'.")) |
| 472 | ) | 473 | ) |
| 473 | 474 | ||
| 474 | (princ "\n No unknown includes.\n")) | 475 | (princ "\n No unknown includes.\n")) |
diff --git a/lisp/cedet/semantic/bovine/c.el b/lisp/cedet/semantic/bovine/c.el index 6639f178e86..1c25c7b0808 100644 --- a/lisp/cedet/semantic/bovine/c.el +++ b/lisp/cedet/semantic/bovine/c.el | |||
| @@ -2176,7 +2176,8 @@ actually in their parent which is not accessible.") | |||
| 2176 | 2176 | ||
| 2177 | (princ "\n\nInclude Path Summary:\n") | 2177 | (princ "\n\nInclude Path Summary:\n") |
| 2178 | (when (and (boundp 'ede-object) ede-object) | 2178 | (when (and (boundp 'ede-object) ede-object) |
| 2179 | (princ "\n This file's project include is handled by:\n") | 2179 | (princ (substitute-command-keys |
| 2180 | "\n This file's project include is handled by:\n")) | ||
| 2180 | (let ((objs (if (listp ede-object) | 2181 | (let ((objs (if (listp ede-object) |
| 2181 | ede-object | 2182 | ede-object |
| 2182 | (list ede-object)))) | 2183 | (list ede-object)))) |
| @@ -2194,14 +2195,16 @@ actually in their parent which is not accessible.") | |||
| 2194 | ) | 2195 | ) |
| 2195 | 2196 | ||
| 2196 | (when semantic-dependency-include-path | 2197 | (when semantic-dependency-include-path |
| 2197 | (princ "\n This file's generic include path is:\n") | 2198 | (princ (substitute-command-keys |
| 2199 | "\n This file's generic include path is:\n")) | ||
| 2198 | (dolist (dir semantic-dependency-include-path) | 2200 | (dolist (dir semantic-dependency-include-path) |
| 2199 | (princ " ") | 2201 | (princ " ") |
| 2200 | (princ dir) | 2202 | (princ dir) |
| 2201 | (princ "\n"))) | 2203 | (princ "\n"))) |
| 2202 | 2204 | ||
| 2203 | (when semantic-dependency-system-include-path | 2205 | (when semantic-dependency-system-include-path |
| 2204 | (princ "\n This file's system include path is:\n") | 2206 | (princ (substitute-command-keys |
| 2207 | "\n This file's system include path is:\n")) | ||
| 2205 | (dolist (dir semantic-dependency-system-include-path) | 2208 | (dolist (dir semantic-dependency-system-include-path) |
| 2206 | (princ " ") | 2209 | (princ " ") |
| 2207 | (princ dir) | 2210 | (princ dir) |
diff --git a/lisp/cedet/semantic/decorate/include.el b/lisp/cedet/semantic/decorate/include.el index 7bfca77e8c4..962dc49da54 100644 --- a/lisp/cedet/semantic/decorate/include.el +++ b/lisp/cedet/semantic/decorate/include.el | |||
| @@ -503,7 +503,8 @@ Argument EVENT is the mouse clicked event." | |||
| 503 | (princ "Include File: ") | 503 | (princ "Include File: ") |
| 504 | (princ (semantic-format-tag-name tag nil t)) | 504 | (princ (semantic-format-tag-name tag nil t)) |
| 505 | (princ "\n\n") | 505 | (princ "\n\n") |
| 506 | (princ "This header file has been marked \"Unknown\". | 506 | (princ (substitute-command-keys "\ |
| 507 | This header file has been marked \"Unknown\". | ||
| 507 | This means that Semantic has not been able to locate this file on disk. | 508 | This means that Semantic has not been able to locate this file on disk. |
| 508 | 509 | ||
| 509 | When Semantic cannot find an include file, this means that the | 510 | When Semantic cannot find an include file, this means that the |
| @@ -521,9 +522,9 @@ M-x semantic-add-system-include RET /path/to/includes RET | |||
| 521 | 522 | ||
| 522 | or, in your .emacs file do: | 523 | or, in your .emacs file do: |
| 523 | 524 | ||
| 524 | (semantic-add-system-include \"/path/to/include\" '") | 525 | (semantic-add-system-include \"/path/to/include\" \\='")) |
| 525 | (princ (symbol-name mm)) | 526 | (princ (symbol-name mm)) |
| 526 | (princ ") | 527 | (princ (substitute-command-keys ") |
| 527 | 528 | ||
| 528 | to add the path to Semantic's search. | 529 | to add the path to Semantic's search. |
| 529 | 530 | ||
| @@ -531,7 +532,7 @@ If this is an include file that belongs to your project, then you may | |||
| 531 | need to update `semanticdb-project-roots' or better yet, use `ede' | 532 | need to update `semanticdb-project-roots' or better yet, use `ede' |
| 532 | to manage your project. See the ede manual for projects that will | 533 | to manage your project. See the ede manual for projects that will |
| 533 | wrap existing project code for Semantic's benefit. | 534 | wrap existing project code for Semantic's benefit. |
| 534 | ") | 535 | ")) |
| 535 | 536 | ||
| 536 | (when (or (eq mm 'c++-mode) (eq mm 'c-mode)) | 537 | (when (or (eq mm 'c++-mode) (eq mm 'c-mode)) |
| 537 | (princ " | 538 | (princ " |
| @@ -745,7 +746,8 @@ Argument EVENT describes the event that caused this function to be called." | |||
| 745 | (when (and (boundp 'ede-object) | 746 | (when (and (boundp 'ede-object) |
| 746 | (boundp 'ede-object-project) | 747 | (boundp 'ede-object-project) |
| 747 | ede-object) | 748 | ede-object) |
| 748 | (princ " This file's project include search is handled by the EDE object:\n") | 749 | (princ (substitute-command-keys |
| 750 | " This file's project include search is handled by the EDE object:\n")) | ||
| 749 | (princ " Buffer Target: ") | 751 | (princ " Buffer Target: ") |
| 750 | (princ (object-print ede-object)) | 752 | (princ (object-print ede-object)) |
| 751 | (princ "\n") | 753 | (princ "\n") |
| @@ -769,7 +771,8 @@ Argument EVENT describes the event that caused this function to be called." | |||
| 769 | (princ "\n")) | 771 | (princ "\n")) |
| 770 | ))) | 772 | ))) |
| 771 | 773 | ||
| 772 | (princ "\n This file's system include path is:\n") | 774 | (princ (substitute-command-keys |
| 775 | "\n This file's system include path is:\n")) | ||
| 773 | (dolist (dir semantic-dependency-system-include-path) | 776 | (dolist (dir semantic-dependency-system-include-path) |
| 774 | (princ " ") | 777 | (princ " ") |
| 775 | (princ dir) | 778 | (princ dir) |
diff --git a/lisp/cedet/semantic/ia.el b/lisp/cedet/semantic/ia.el index 2216fa9e964..27e6db16f39 100644 --- a/lisp/cedet/semantic/ia.el +++ b/lisp/cedet/semantic/ia.el | |||
| @@ -364,15 +364,17 @@ origin of the code at point." | |||
| 364 | (let ((secondclass (car (reverse (oref ctxt prefixtypes))))) | 364 | (let ((secondclass (car (reverse (oref ctxt prefixtypes))))) |
| 365 | (cond | 365 | (cond |
| 366 | ((and (semantic-tag-with-position-p secondclass) | 366 | ((and (semantic-tag-with-position-p secondclass) |
| 367 | (y-or-n-p (format "Could not find `%s'. Jump to %s? " | 367 | (y-or-n-p (format-message |
| 368 | first (semantic-tag-name secondclass)))) | 368 | "Could not find `%s'. Jump to %s? " |
| 369 | first (semantic-tag-name secondclass)))) | ||
| 369 | (semantic-ia--fast-jump-helper secondclass) | 370 | (semantic-ia--fast-jump-helper secondclass) |
| 370 | ) | 371 | ) |
| 371 | ;; If we missed out on the class of the second item, then | 372 | ;; If we missed out on the class of the second item, then |
| 372 | ;; just visit SECOND. | 373 | ;; just visit SECOND. |
| 373 | ((and (semantic-tag-p second) | 374 | ((and (semantic-tag-p second) |
| 374 | (y-or-n-p (format "Could not find `%s'. Jump to %s? " | 375 | (y-or-n-p (format-message |
| 375 | first (semantic-tag-name second)))) | 376 | "Could not find `%s'. Jump to %s? " |
| 377 | first (semantic-tag-name second)))) | ||
| 376 | (semantic-ia--fast-jump-helper second) | 378 | (semantic-ia--fast-jump-helper second) |
| 377 | )))) | 379 | )))) |
| 378 | 380 | ||
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index 8a845f9b5b5..b2c81197968 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el | |||
| @@ -1954,7 +1954,7 @@ from the comment." | |||
| 1954 | "Return non-nil if the current point is in a code fragment. | 1954 | "Return non-nil if the current point is in a code fragment. |
| 1955 | A code fragment is identified by an open parenthesis followed by a | 1955 | A code fragment is identified by an open parenthesis followed by a |
| 1956 | symbol which is a valid function or a word in all CAPS, or a parenthesis | 1956 | symbol which is a valid function or a word in all CAPS, or a parenthesis |
| 1957 | that is quoted with the ' character. Only the region from START to LIMIT | 1957 | that is quoted with the \\=' character. Only the region from START to LIMIT |
| 1958 | is allowed while searching for the bounding parenthesis." | 1958 | is allowed while searching for the bounding parenthesis." |
| 1959 | (save-match-data | 1959 | (save-match-data |
| 1960 | (save-restriction | 1960 | (save-restriction |
diff --git a/lisp/emacs-lisp/warnings.el b/lisp/emacs-lisp/warnings.el index d729a9a9563..b88af1dbe1a 100644 --- a/lisp/emacs-lisp/warnings.el +++ b/lisp/emacs-lisp/warnings.el | |||
| @@ -314,7 +314,7 @@ See also `warning-series', `warning-prefix-function' and | |||
| 314 | ;; Any keymap that is defined will do. | 314 | ;; Any keymap that is defined will do. |
| 315 | ;;;###autoload | 315 | ;;;###autoload |
| 316 | (defun lwarn (type level message &rest args) | 316 | (defun lwarn (type level message &rest args) |
| 317 | "Display a warning message made from (format MESSAGE ARGS...). | 317 | "Display a warning message made from (format-message MESSAGE ARGS...). |
| 318 | \\<special-mode-map> | 318 | \\<special-mode-map> |
| 319 | Aside from generating the message with `format-message', | 319 | Aside from generating the message with `format-message', |
| 320 | this is equivalent to `display-warning'. | 320 | this is equivalent to `display-warning'. |
| @@ -336,7 +336,7 @@ LEVEL should be either :debug, :warning, :error, or :emergency | |||
| 336 | 336 | ||
| 337 | ;;;###autoload | 337 | ;;;###autoload |
| 338 | (defun warn (message &rest args) | 338 | (defun warn (message &rest args) |
| 339 | "Display a warning message made from (format MESSAGE ARGS...). | 339 | "Display a warning message made from (format-message MESSAGE ARGS...). |
| 340 | Aside from generating the message with `format-message', | 340 | Aside from generating the message with `format-message', |
| 341 | this is equivalent to `display-warning', using | 341 | this is equivalent to `display-warning', using |
| 342 | `emacs' as the type and `:warning' as the level." | 342 | `emacs' as the type and `:warning' as the level." |
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index 2c9e5799ac1..9bd1627ffeb 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el | |||
| @@ -1984,7 +1984,8 @@ created." | |||
| 1984 | (if (edt-y-or-n-p "Do you want to run it now? ") | 1984 | (if (edt-y-or-n-p "Do you want to run it now? ") |
| 1985 | (load-file path) | 1985 | (load-file path) |
| 1986 | (error "EDT Emulation not configured"))) | 1986 | (error "EDT Emulation not configured"))) |
| 1987 | (insert "Nope, I can't seem to find it. :-(\n\n") | 1987 | (insert (substitute-command-keys |
| 1988 | "Nope, I can't seem to find it. :-(\n\n")) | ||
| 1988 | (sit-for 20) | 1989 | (sit-for 20) |
| 1989 | (error "EDT Emulation not configured")))))) | 1990 | (error "EDT Emulation not configured")))))) |
| 1990 | 1991 | ||
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index 4fe948a2918..8b3f6b46507 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -1751,8 +1751,8 @@ invokes the command before that, etc." | |||
| 1751 | 1751 | ||
| 1752 | (setq this-command 'viper-display-current-destructive-command) | 1752 | (setq this-command 'viper-display-current-destructive-command) |
| 1753 | 1753 | ||
| 1754 | (message " `.' runs %s%s" | 1754 | (message " `.' runs `%s'%s" |
| 1755 | (concat "`" (viper-array-to-string keys) "'") | 1755 | (viper-array-to-string keys) |
| 1756 | (viper-abbreviate-string | 1756 | (viper-abbreviate-string |
| 1757 | (if (featurep 'xemacs) | 1757 | (if (featurep 'xemacs) |
| 1758 | (replace-in-string ; xemacs | 1758 | (replace-in-string ; xemacs |
| @@ -1763,7 +1763,8 @@ invokes the command before that, etc." | |||
| 1763 | text ; emacs | 1763 | text ; emacs |
| 1764 | ) | 1764 | ) |
| 1765 | max-text-len | 1765 | max-text-len |
| 1766 | " inserting `" "'" " .......")) | 1766 | (format-message " inserting `") (format-message "'") |
| 1767 | " .......")) | ||
| 1767 | )) | 1768 | )) |
| 1768 | 1769 | ||
| 1769 | 1770 | ||
| @@ -4341,7 +4342,7 @@ and regexp replace." | |||
| 4341 | (query-replace-regexp | 4342 | (query-replace-regexp |
| 4342 | str | 4343 | str |
| 4343 | (viper-read-string-with-history | 4344 | (viper-read-string-with-history |
| 4344 | (format "Query replace regexp `%s' with: " str) | 4345 | (format-message "Query replace regexp `%s' with: " str) |
| 4345 | nil ; no initial | 4346 | nil ; no initial |
| 4346 | 'viper-replace1-history | 4347 | 'viper-replace1-history |
| 4347 | (car viper-replace1-history) ; default | 4348 | (car viper-replace1-history) ; default |
| @@ -4349,7 +4350,7 @@ and regexp replace." | |||
| 4349 | (query-replace | 4350 | (query-replace |
| 4350 | str | 4351 | str |
| 4351 | (viper-read-string-with-history | 4352 | (viper-read-string-with-history |
| 4352 | (format "Query replace `%s' with: " str) | 4353 | (format-message "Query replace `%s' with: " str) |
| 4353 | nil ; no initial | 4354 | nil ; no initial |
| 4354 | 'viper-replace1-history | 4355 | 'viper-replace1-history |
| 4355 | (car viper-replace1-history) ; default | 4356 | (car viper-replace1-history) ; default |
| @@ -4643,7 +4644,7 @@ One can use \\=`\\=` and \\='\\=' to temporarily jump 1 step back." | |||
| 4643 | reg (buffer-name buf) line-no)) | 4644 | reg (buffer-name buf) line-no)) |
| 4644 | (princ (format "Here is some text around %c:\n\n %s" | 4645 | (princ (format "Here is some text around %c:\n\n %s" |
| 4645 | reg text))) | 4646 | reg text))) |
| 4646 | (princ (format viper-EmptyTextmarker reg)))) | 4647 | (princ (format-message viper-EmptyTextmarker reg)))) |
| 4647 | )) | 4648 | )) |
| 4648 | (t (error viper-InvalidTextmarker reg))))) | 4649 | (t (error viper-InvalidTextmarker reg))))) |
| 4649 | 4650 | ||
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el index e6bcf8f89a4..fb2c1792a41 100644 --- a/lisp/emulation/viper-ex.el +++ b/lisp/emulation/viper-ex.el | |||
| @@ -491,7 +491,7 @@ reversed." | |||
| 491 | (forward-char 1) | 491 | (forward-char 1) |
| 492 | (cond ((looking-at "'") (setq ex-token nil)) | 492 | (cond ((looking-at "'") (setq ex-token nil)) |
| 493 | ((looking-at "[a-z]") (setq ex-token (following-char))) | 493 | ((looking-at "[a-z]") (setq ex-token (following-char))) |
| 494 | (t (error "Marks are ' and a-z"))) | 494 | (t (error "%s" "Marks are ' and a-z"))) |
| 495 | (forward-char 1)) | 495 | (forward-char 1)) |
| 496 | ((looking-at "\n") | 496 | ((looking-at "\n") |
| 497 | (setq ex-token-type 'end-mark) | 497 | (setq ex-token-type 'end-mark) |
| @@ -2190,7 +2190,7 @@ Please contact your system administrator. " | |||
| 2190 | (defun ex-compile () | 2190 | (defun ex-compile () |
| 2191 | "Reads args from the command line, then runs make with the args. | 2191 | "Reads args from the command line, then runs make with the args. |
| 2192 | If no args are given, then it runs the last compile command. | 2192 | If no args are given, then it runs the last compile command. |
| 2193 | Type 'mak ' (including the space) to run make with no args." | 2193 | Type `mak ' (including the space) to run make with no args." |
| 2194 | (let (args) | 2194 | (let (args) |
| 2195 | (with-current-buffer (setq viper-ex-work-buf | 2195 | (with-current-buffer (setq viper-ex-work-buf |
| 2196 | (get-buffer-create viper-ex-work-buf-name)) | 2196 | (get-buffer-create viper-ex-work-buf-name)) |
diff --git a/lisp/emulation/viper-macs.el b/lisp/emulation/viper-macs.el index e8568328b7a..4b33b423740 100644 --- a/lisp/emulation/viper-macs.el +++ b/lisp/emulation/viper-macs.el | |||
| @@ -529,9 +529,9 @@ mistakes in macro names to be passed to this function is to use | |||
| 529 | (cond ((and (cdr buf-mapping) | 529 | (cond ((and (cdr buf-mapping) |
| 530 | (or (and (not (cdr mode-mapping)) (not (cdr global-mapping))) | 530 | (or (and (not (cdr mode-mapping)) (not (cdr global-mapping))) |
| 531 | (y-or-n-p | 531 | (y-or-n-p |
| 532 | (format "Unmap %S for `%s' only? " | 532 | (format-message "Unmap %S for `%s' only? " |
| 533 | (viper-display-macro macro-name) | 533 | (viper-display-macro macro-name) |
| 534 | (buffer-name))))) | 534 | (buffer-name))))) |
| 535 | (setq macro-pair buf-mapping) | 535 | (setq macro-pair buf-mapping) |
| 536 | (message "%S is unmapped for %s in `%s'" | 536 | (message "%S is unmapped for %s in `%s'" |
| 537 | (viper-display-macro macro-name) | 537 | (viper-display-macro macro-name) |
| @@ -539,9 +539,9 @@ mistakes in macro names to be passed to this function is to use | |||
| 539 | ((and (cdr mode-mapping) | 539 | ((and (cdr mode-mapping) |
| 540 | (or (not (cdr global-mapping)) | 540 | (or (not (cdr global-mapping)) |
| 541 | (y-or-n-p | 541 | (y-or-n-p |
| 542 | (format "Unmap %S for the major mode `%S' only? " | 542 | (format-message "Unmap %S for the major mode `%S' only? " |
| 543 | (viper-display-macro macro-name) | 543 | (viper-display-macro macro-name) |
| 544 | major-mode)))) | 544 | major-mode)))) |
| 545 | (setq macro-pair mode-mapping) | 545 | (setq macro-pair mode-mapping) |
| 546 | (message "%S is unmapped for %s in %S" | 546 | (message "%S is unmapped for %s in %S" |
| 547 | (viper-display-macro macro-name) state-name major-mode)) | 547 | (viper-display-macro macro-name) state-name major-mode)) |