From c9fb789fe9eaa5dc0694ef14fe36e5aa821a646c Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 8 Jul 2022 23:29:52 -0400 Subject: .dir-locals.el: Restore Emacs 27 lisp-fill-paragraph behavior. * .dir-locals.el (scheme-mode): Set fill-paragraph-function to a lisp-fill-paragraph version that matches that of Emacs 27. --- .dir-locals.el | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.dir-locals.el b/.dir-locals.el index 9edabba5f8..565f7c48e7 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -156,7 +156,31 @@ ;; preceding symbol is one of these. (eval . (modify-syntax-entry ?~ "'")) (eval . (modify-syntax-entry ?$ "'")) - (eval . (modify-syntax-entry ?+ "'")))) + (eval . (modify-syntax-entry ?+ "'")) + + ;; Emacs 28 changed the behavior of 'lisp-fill-paragraph', which causes the + ;; first line of package descriptions to extrude past 'fill-column', and + ;; somehow that is deemed more correct upstream (see: + ;; https://issues.guix.gnu.org/56197). + (eval . (progn + (require 'lisp-mode) + (defun emacs27-lisp-fill-paragraph (&optional justify) + (interactive "P") + (or (fill-comment-paragraph justify) + (let ((paragraph-start + (concat paragraph-start + "\\|\\s-*\\([(;\"]\\|\\s-:\\|`(\\|#'(\\)")) + (paragraph-separate + (concat paragraph-separate "\\|\\s-*\".*[,\\.]$")) + (fill-column (if (and (integerp emacs-lisp-docstring-fill-column) + (derived-mode-p 'emacs-lisp-mode)) + emacs-lisp-docstring-fill-column + fill-column))) + (fill-paragraph justify)) + ;; Never return nil. + t)) + (setq-local fill-paragraph-function #'emacs27-lisp-fill-paragraph))))) + (emacs-lisp-mode . ((indent-tabs-mode . nil))) (texinfo-mode . ((indent-tabs-mode . nil) (fill-column . 72)))) -- cgit v1.2.3 root/.guix-authorizations
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-04-17 15:45:32 +0200
committerMarius Bakke <mbakke@fastmail.com>2020-04-17 17:03:20 +0200
commita7dbd38859ebb174e5d757645ba80bdc8048bee8 (patch)
treea17fd97c19c33ba8717795deeca8114c2121392f /.guix-authorizations
parent8fa4ac5be4d5f8a1e62635842b16486832ff49f1 (diff)
downloadguix-a7dbd38859ebb174e5d757645ba80bdc8048bee8.tar.gz
guix-a7dbd38859ebb174e5d757645ba80bdc8048bee8.zip
gnu: ungoogled-chromium: Update to 81.0.4044.113-0.b484ad4 [fixes CVE-2020-6457].
* gnu/packages/chromium.scm (%chromium-version): Set to 81.0.4044.113. (%chromium-origin): Update hash.
Diffstat (limited to '.guix-authorizations')
0 files changed, 0 insertions, 0 deletions