Function: rot13-region
rot13-region is an autoloaded, interactive and byte-compiled function
defined in rot13.el.gz.
Signature
(rot13-region START END)
Documentation
ROT13 encrypt the region between START and END in current buffer.
If invoked interactively and the buffer is read-only, a message will be printed instead.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/rot13.el.gz
;;;###autoload
(defun rot13-region (start end)
"ROT13 encrypt the region between START and END in current buffer.
If invoked interactively and the buffer is read-only, a message
will be printed instead."
(interactive "r")
(condition-case nil
(translate-region start end rot13-translate-table)
(buffer-read-only
(when (called-interactively-p 'interactive)
(let ((dec (rot13-string (buffer-substring start end))))
(message "Buffer is read-only:\n%s" (string-trim dec)))))))