diff options
| author | Mark Oteiza | 2019-04-24 19:44:48 -0400 |
|---|---|---|
| committer | Mark Oteiza | 2019-04-24 19:44:48 -0400 |
| commit | 4494789d2ca4b24e25fae1b3e97fb9743e9830a4 (patch) | |
| tree | 187d76e7123299b5a7522f1d4292efb6db2a55d7 | |
| parent | cb17e9c42e92efa526d79b717d7d4bc872153b8f (diff) | |
| download | emacs-4494789d2ca4b24e25fae1b3e97fb9743e9830a4.tar.gz emacs-4494789d2ca4b24e25fae1b3e97fb9743e9830a4.zip | |
Fix some strings in wordstar mode
* lisp/obsolete/ws-mode.el (ws-search-direction, ws-error, ws-end-block):
(ws-mark-word, ws-undo, ws-goto-last-cursorposition, ws-last-error):
(ws-kill-bol): Remove full stops from message string endings. Minor
formatting tweaks.
| -rw-r--r-- | lisp/obsolete/ws-mode.el | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lisp/obsolete/ws-mode.el b/lisp/obsolete/ws-mode.el index 17c35176b41..3d2e968b1da 100644 --- a/lisp/obsolete/ws-mode.el +++ b/lisp/obsolete/ws-mode.el | |||
| @@ -271,7 +271,7 @@ the distance between the end of the text and `fill-column'." | |||
| 271 | 271 | ||
| 272 | (defvar ws-search-string nil "String of last search in WordStar mode.") | 272 | (defvar ws-search-string nil "String of last search in WordStar mode.") |
| 273 | (defvar ws-search-direction t | 273 | (defvar ws-search-direction t |
| 274 | "Direction of last search in WordStar mode. t if forward, nil if backward.") | 274 | "Direction of last search in WordStar mode. t if forward, nil if backward.") |
| 275 | 275 | ||
| 276 | (defvar ws-last-cursorposition nil | 276 | (defvar ws-last-cursorposition nil |
| 277 | "Position before last search etc. in WordStar mode.") | 277 | "Position before last search etc. in WordStar mode.") |
| @@ -283,8 +283,9 @@ the distance between the end of the text and `fill-column'." | |||
| 283 | ;; wordstar special functions: | 283 | ;; wordstar special functions: |
| 284 | 284 | ||
| 285 | (defun ws-error (string) | 285 | (defun ws-error (string) |
| 286 | "Report error of a WordStar special function. Error message is saved | 286 | "Report error of a WordStar special function. |
| 287 | in ws-last-errormessage for recovery with C-q w." | 287 | Error message is saved in `ws-last-errormessage' for recovery |
| 288 | with C-q w." | ||
| 288 | (setq ws-last-errormessage string) | 289 | (setq ws-last-errormessage string) |
| 289 | (error string)) | 290 | (error string)) |
| 290 | 291 | ||
| @@ -375,7 +376,6 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 375 | (message "")) | 376 | (message "")) |
| 376 | (message "Block markers not set"))) | 377 | (message "Block markers not set"))) |
| 377 | 378 | ||
| 378 | |||
| 379 | (defun ws-indent-block () | 379 | (defun ws-indent-block () |
| 380 | "In WordStar mode: Indent block (not yet implemented)." | 380 | "In WordStar mode: Indent block (not yet implemented)." |
| 381 | (interactive) | 381 | (interactive) |
| @@ -390,7 +390,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 390 | (defun ws-print-block () | 390 | (defun ws-print-block () |
| 391 | "In WordStar mode: Print block." | 391 | "In WordStar mode: Print block." |
| 392 | (interactive) | 392 | (interactive) |
| 393 | (message "Don't do this. Write block to a file (C-k w) and print this file.")) | 393 | (message "Don't do this. Write block to a file (C-k w) and print this file")) |
| 394 | 394 | ||
| 395 | (defun ws-mark-word () | 395 | (defun ws-mark-word () |
| 396 | "In WordStar mode: Mark current word as block." | 396 | "In WordStar mode: Mark current word as block." |
| @@ -406,7 +406,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 406 | (defun ws-exdent-block () | 406 | (defun ws-exdent-block () |
| 407 | "I don't know what this (C-k u) should do." | 407 | "I don't know what this (C-k u) should do." |
| 408 | (interactive) | 408 | (interactive) |
| 409 | (ws-error "This won't be done -- not yet implemented.")) | 409 | (ws-error "This won't be done -- not yet implemented")) |
| 410 | 410 | ||
| 411 | (defun ws-move-block () | 411 | (defun ws-move-block () |
| 412 | "In WordStar mode: Move block to current cursor position." | 412 | "In WordStar mode: Move block to current cursor position." |
| @@ -577,16 +577,16 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 577 | "In WordStar mode: Undo and give message about undoing more changes." | 577 | "In WordStar mode: Undo and give message about undoing more changes." |
| 578 | (interactive) | 578 | (interactive) |
| 579 | (undo) | 579 | (undo) |
| 580 | (message "Repeat C-q l to undo more changes.")) | 580 | (message "Repeat C-q l to undo more changes")) |
| 581 | 581 | ||
| 582 | (defun ws-goto-last-cursorposition () | 582 | (defun ws-goto-last-cursorposition () |
| 583 | "In WordStar mode: " | 583 | "In WordStar mode: Go to position before last search." |
| 584 | (interactive) | 584 | (interactive) |
| 585 | (if ws-last-cursorposition | 585 | (if ws-last-cursorposition |
| 586 | (progn | 586 | (progn |
| 587 | (setq ws-last-cursorposition (point-marker)) | 587 | (setq ws-last-cursorposition (point-marker)) |
| 588 | (goto-char ws-last-cursorposition)) | 588 | (goto-char ws-last-cursorposition)) |
| 589 | (ws-error "No last cursor position available."))) | 589 | (ws-error "No last cursor position available"))) |
| 590 | 590 | ||
| 591 | (defun ws-last-error () | 591 | (defun ws-last-error () |
| 592 | "In WordStar mode: repeat last error message. | 592 | "In WordStar mode: repeat last error message. |
| @@ -594,7 +594,7 @@ This will only work for errors raised by WordStar mode functions." | |||
| 594 | (interactive) | 594 | (interactive) |
| 595 | (if ws-last-errormessage | 595 | (if ws-last-errormessage |
| 596 | (message "%s" ws-last-errormessage) | 596 | (message "%s" ws-last-errormessage) |
| 597 | (message "No WordStar error yet."))) | 597 | (message "No WordStar error yet"))) |
| 598 | 598 | ||
| 599 | (defun ws-kill-eol () | 599 | (defun ws-kill-eol () |
| 600 | "In WordStar mode: Kill to end of line (like WordStar, not like Emacs)." | 600 | "In WordStar mode: Kill to end of line (like WordStar, not like Emacs)." |
| @@ -604,8 +604,7 @@ This will only work for errors raised by WordStar mode functions." | |||
| 604 | (kill-region p (point)))) | 604 | (kill-region p (point)))) |
| 605 | 605 | ||
| 606 | (defun ws-kill-bol () | 606 | (defun ws-kill-bol () |
| 607 | "In WordStar mode: Kill to beginning of line | 607 | "In WordStar mode: Kill to beginning of line (like WordStar, not like Emacs)." |
| 608 | \(like WordStar, not like Emacs)." | ||
| 609 | (interactive) | 608 | (interactive) |
| 610 | (let ((p (point))) | 609 | (let ((p (point))) |
| 611 | (beginning-of-line) | 610 | (beginning-of-line) |