diff options
| author | Aaron S. Hawley | 2011-03-06 23:35:25 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-03-06 23:35:25 -0800 |
| commit | f72c1fd6afa573e3cabe8046b9de31c2ce73cf62 (patch) | |
| tree | 1da5a93d1494436daece237e60f27eb4c441d81f | |
| parent | 16130297d04ceb76a8c1f6649863560bd234697e (diff) | |
| download | emacs-f72c1fd6afa573e3cabe8046b9de31c2ce73cf62.tar.gz emacs-f72c1fd6afa573e3cabe8046b9de31c2ce73cf62.zip | |
* lisp/play/morse.el (morse-region, unmorse-region): Barf if read-only.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/play/morse.el | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 673f8a456f6..38d9283f748 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | * play/morse.el (nato-alphabet, nato-region, denato-region): | 3 | * play/morse.el (nato-alphabet, nato-region, denato-region): |
| 4 | New variable and functions. (Bug#2288) | 4 | New variable and functions. (Bug#2288) |
| 5 | (morse-region, unmorse-region): Barf if read-only. | ||
| 5 | 6 | ||
| 6 | 2011-03-06 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2011-03-06 Stefan Monnier <monnier@iro.umontreal.ca> |
| 7 | 8 | ||
diff --git a/lisp/play/morse.el b/lisp/play/morse.el index ca7d8ef5496..b88f1b264cb 100644 --- a/lisp/play/morse.el +++ b/lisp/play/morse.el | |||
| @@ -151,7 +151,7 @@ Geospatial-Intelligence Agency at http://www.nga.mil/") | |||
| 151 | ;;;###autoload | 151 | ;;;###autoload |
| 152 | (defun morse-region (beg end) | 152 | (defun morse-region (beg end) |
| 153 | "Convert all text in a given region to morse code." | 153 | "Convert all text in a given region to morse code." |
| 154 | (interactive "r") | 154 | (interactive "*r") |
| 155 | (if (integerp end) | 155 | (if (integerp end) |
| 156 | (setq end (copy-marker end))) | 156 | (setq end (copy-marker end))) |
| 157 | (save-excursion | 157 | (save-excursion |
| @@ -174,7 +174,7 @@ Geospatial-Intelligence Agency at http://www.nga.mil/") | |||
| 174 | ;;;###autoload | 174 | ;;;###autoload |
| 175 | (defun unmorse-region (beg end) | 175 | (defun unmorse-region (beg end) |
| 176 | "Convert morse coded text in region to ordinary ASCII text." | 176 | "Convert morse coded text in region to ordinary ASCII text." |
| 177 | (interactive "r") | 177 | (interactive "*r") |
| 178 | (if (integerp end) | 178 | (if (integerp end) |
| 179 | (setq end (copy-marker end))) | 179 | (setq end (copy-marker end))) |
| 180 | (save-excursion | 180 | (save-excursion |