Function: message-caesar-region
message-caesar-region is an interactive and byte-compiled function
defined in message.el.gz.
Signature
(message-caesar-region B E &optional N)
Documentation
Caesar rotate region B to E by N, default 13, for decrypting netnews.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defun message-caesar-region (b e &optional n)
"Caesar rotate region B to E by N, default 13, for decrypting netnews."
(interactive
(list
(min (point) (or (mark t) (point)))
(max (point) (or (mark t) (point)))
(when current-prefix-arg
(prefix-numeric-value current-prefix-arg)))
message-mode)
(setq n (if (numberp n) (mod n 26) 13)) ;canonize N
(unless (or (zerop n) ; no action needed for a rot of 0
(= b e)) ; no region to rotate
;; We build the table, if necessary.
(when (or (not message-caesar-translation-table)
(/= (aref message-caesar-translation-table ?a) (+ ?a n)))
(setq message-caesar-translation-table
(message-make-caesar-translation-table n)))
(translate-region b e message-caesar-translation-table)))