unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47970: Move lisp/rot13.el to lisp/play/rot13.el
@ 2021-04-23 13:07 Stefan Kangas
  2021-04-24  4:43 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2021-04-23 13:07 UTC (permalink / raw)
  To: 47970

Severity: wishlist

rot13.el is only useful for toying around, so I suggest we move it into
lisp/play.

I know the standard argument against moving things is that code
archeology becomes harder, but I don't see that it is at all important
in this case.

Any objections?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#47970: Move lisp/rot13.el to lisp/play/rot13.el
  2021-04-23 13:07 bug#47970: Move lisp/rot13.el to lisp/play/rot13.el Stefan Kangas
@ 2021-04-24  4:43 ` Richard Stallman
  2021-04-24  6:22   ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2021-04-24  4:43 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 47970

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

rot13 has real use.  People encrypt text that way if it contains spoilers.
Then other users can't read it unless they are sure they want to.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#47970: Move lisp/rot13.el to lisp/play/rot13.el
  2021-04-24  4:43 ` Richard Stallman
@ 2021-04-24  6:22   ` Eli Zaretskii
  2021-04-24  8:59     ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2021-04-24  6:22 UTC (permalink / raw)
  To: rms; +Cc: 47970, stefan

> From: Richard Stallman <rms@gnu.org>
> Date: Sat, 24 Apr 2021 00:43:55 -0400
> Cc: 47970@debbugs.gnu.org
> 
> rot13 has real use.  People encrypt text that way if it contains spoilers.
> Then other users can't read it unless they are sure they want to.

Maybe this hint should be added to the file's Commentary section.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#47970: Move lisp/rot13.el to lisp/play/rot13.el
  2021-04-24  6:22   ` Eli Zaretskii
@ 2021-04-24  8:59     ` Stefan Kangas
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2021-04-24  8:59 UTC (permalink / raw)
  To: Eli Zaretskii, rms; +Cc: 47970

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

tags 47970 fixed
close 47970 28.1
thanks

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Richard Stallman <rms@gnu.org>
>> Date: Sat, 24 Apr 2021 00:43:55 -0400
>> Cc: 47970@debbugs.gnu.org
>>
>> rot13 has real use.  People encrypt text that way if it contains spoilers.
>> Then other users can't read it unless they are sure they want to.
>
> Maybe this hint should be added to the file's Commentary section.

Thanks, I've installed the attached.  Closing.

[-- Attachment #2: 0001-lisp-rot13.el-Improve-documentation.-Bug-47970.patch --]
[-- Type: text/x-diff, Size: 2400 bytes --]

From ae81b9503ac4af7d4e57ee81f3b953142d6fb015 Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefan@marxist.se>
Date: Sat, 24 Apr 2021 10:47:50 +0200
Subject: [PATCH] * lisp/rot13.el: Improve documentation.  (Bug#47970)

---
 lisp/rot13.el | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/lisp/rot13.el b/lisp/rot13.el
index dfcf4adc17..4e4e60fea3 100644
--- a/lisp/rot13.el
+++ b/lisp/rot13.el
@@ -3,6 +3,7 @@
 ;; Copyright (C) 1988, 2001-2021 Free Software Foundation, Inc.
 
 ;; Author: Howard Gayle
+;;         Simon Josefsson
 ;; Maintainer: emacs-devel@gnu.org
 
 ;; This file is part of GNU Emacs.
@@ -22,18 +23,26 @@
 
 ;;; Commentary:
 
-;; The entry point, `rot13-other-window', performs a Caesar cipher
-;; encrypt/decrypt on the current buffer and displays the result in another
-;; window.  ROT13 encryption is sometimes used on USENET as a read-at-your-
-;; own-risk wrapper for material some might consider offensive, such as
-;; ethnic humor.
+;;   "ROT13 ('rotate by 13 places') is a simple letter substitution
+;;   cipher that replaces a letter with the 13th letter after it in
+;;   the alphabet.  ROT13 is a special case of the Caesar cipher
+;;   which was developed in ancient Rome.
 ;;
-;; Written by Howard Gayle.
-;; This hack is mainly to show off the char table stuff.
+;;   Because there are 26 letters (2×13) in the basic Latin
+;;   alphabet, ROT13 is its own inverse; that is, to undo ROT13, the
+;;   same algorithm is applied, so the same action can be used for
+;;   encoding and decoding.  The algorithm provides virtually no
+;;   cryptographic security, and is often cited as a canonical
+;;   example of weak encryption.
 ;;
-;; New entry points, `rot13', `rot13-string', and `rot13-region' that
-;; performs Caesar cipher encrypt/decrypt on buffers and strings, was
-;; added by Simon Josefsson.
+;;   ROT13 is used in online forums as a means of hiding spoilers,
+;;   punchlines, puzzle solutions, and offensive materials from the
+;;   casual glance."                      - Wikipedia article on ROT13
+;;
+;; The entry points, `rot13', `rot13-string', and `rot13-region' performs ROT13
+;; encoding/decoding on buffers and strings.  The entry point
+;; `rot13-other-window' performs a ROT13 encoding/decoding on the current
+;; buffer and displays the result in another window.
 
 ;;; Code:
 
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-24  8:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 13:07 bug#47970: Move lisp/rot13.el to lisp/play/rot13.el Stefan Kangas
2021-04-24  4:43 ` Richard Stallman
2021-04-24  6:22   ` Eli Zaretskii
2021-04-24  8:59     ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).