Subject: bug#53231: 28.0.90; [PATCH] GNU ELPA: Enable sentence-end-double-space in README

From: Y. E. <[email-masked]>
Date: Mon, 17 Jan 2022 18:48:12 +0200

> Stefan Monnier <[email-masked]> writes:

> Lars Ingebrigtsen [2022-01-14 08:53:54] wrote:
>> Y. E. <[email-masked]> writes:
>>> This update is for those (like me) who have 'sentence-end-double-space'
>>> disabled in their configurations. As far as I understand,
>>> '.dir-locals.el' is not added on purpose to this directory, right?
>> I'm not sure -- perhaps Stefan has some comments; added to the CCs.
>
> No particular opinion, but I can't see any reason why we would not want
> a `.dir-locals.el` so adding it to `.dir-locals.el` is also a good idea.

Okay, then I'm attaching another patch, with the .dir-locals.el file.
It's based on the Emacs's version and similar to the one added to the
branch 'elpa-admin' via a390566f71a52e9d5d71eae56e3c2e92d2c4a2f9.

The difference is the attached defines settings for 'lisp-data-mode'
instead of 'emacs-lisp-mode'.

>From b470bb8c6c82cdbb45cd9535b77b97fe8dfa99cd Mon Sep 17 00:00:00 2001
From: YugaEgo <[email-masked]>
Date: Mon, 17 Jan 2022 18:39:55 +0200
Subject: [PATCH] Add .dir-locals.el

* .dir-locals.el: New file.
* README (Local variables): Move fill-column to .dir-locals.el.
* elpa-packages (Local Variables): Move indent-tabs-mode to .dir-locals.el.
---
 .dir-locals.el | 17 +++++++++++++++++
 README         |  1 -
 elpa-packages  |  4 ----
 3 files changed, 17 insertions(+), 5 deletions(-)
 create mode 100644 .dir-locals.el

diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000000..949deb6c78
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,17 @@
+;;; Directory Local Variables
+;;; For more information see (info "(emacs) Directory Variables")
+
+((nil . ((tab-width . 8)
+         (sentence-end-double-space . t)
+         (fill-column . 70)
+         (bug-reference-url-format . "https://debbugs.gnu.org/%s")))
+ (log-edit-mode . ((log-edit-font-lock-gnu-style . t)
+                   (log-edit-setup-add-author . t)))
+ (change-log-mode . ((add-log-time-zone-rule . t)
+                     (fill-column . 74)
+                     (mode . bug-reference)))
+ (diff-mode . ((mode . whitespace)))
+ (lisp-data-mode . ((indent-tabs-mode . nil)
+                    (electric-quote-comment . nil)
+                    (electric-quote-string . nil)
+                    (mode . bug-reference-prog))))
diff --git a/README b/README
index f05e9e58ac..cb437651fc 100644
--- a/README
+++ b/README
@@ -587,7 +587,6 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
 #+BEGIN_COMMENT
 Local variables:
 mode: org
-fill-column: 70
 paragraph-separate: "[ 	]*$"
 time-stamp-pattern: "4/#\\+DATE: %Y-%02m-%02d$"
 end:
diff --git a/elpa-packages b/elpa-packages
index 902fce5adb..859054226c 100644
--- a/elpa-packages
+++ b/elpa-packages
@@ -578,7 +578,3 @@
  ("zones"		:url nil)  ;https://www.emacswiki.org/emacs/zones.el
  ("ztree"		:url "https://github.com/fourier/ztree")
  )
-
-;; Local Variables:
-;; indent-tabs-mode: nil
-;; End:
-- 
2.34.1