diff options
author | Eli Zaretskii <eliz@gnu.org> | 2025-03-29 14:01:35 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2025-03-29 14:01:35 +0300 |
commit | e9a07417ab280ea627594fa4328c5a0b2de6fd7c (patch) | |
tree | d31a266de3ecbc39414657465a4ef554b80790a8 | |
parent | 989f9f01f731c0dd0382bad50f1c45894d69c3ea (diff) | |
download | emacs-e9a07417ab280ea627594fa4328c5a0b2de6fd7c.tar.gz emacs-e9a07417ab280ea627594fa4328c5a0b2de6fd7c.tar.bz2 emacs-e9a07417ab280ea627594fa4328c5a0b2de6fd7c.zip |
; Fix last change (bug#77081)
* lisp/electric.el (electric-block-comment-mode): Fix whitespace.
* etc/NEWS: Move entry to its proper place; fix punctuation.
-rw-r--r-- | etc/NEWS | 19 | ||||
-rw-r--r-- | lisp/electric.el | 6 |
2 files changed, 12 insertions, 13 deletions
@@ -113,17 +113,6 @@ If you have been using these variables in Lisp code (for example, in font-lock rules), simply quote the symbol, to use the face directly instead of its now-obsolete variable. -** New minor mode 'electric-block-comment-mode' -This mode automatically close block comment, typing `block-comment-start' -closes it inserting their corresponding `block-comment-end'. -Thus, allows closing block comments for major modes that support it, -such as: -- c-mode, c++-mode, java-mode, js-mode, css-mode, and derived -- html-mode, mhtml-mode, xml-mode and nxml-mode -- pascal-mode -- lua-ts-mode -- lisp-mode and common-lisp-mode - ** Network Security Manager (NSM) is now more strict. *** NSM warns about TLS 1.1 by default. @@ -1679,6 +1668,14 @@ Visiting a file in such mode ask for confirmation before installing its tree-sitter grammar. Then it highlights the visited file according to syntax defined by the grammar. +** New minor mode 'electric-block-comment-mode'. +This mode automatically close block comment, typing +`block-comment-start' closes it inserting their corresponding +`block-comment-end'. Thus, allows closing block comments for major +modes that support it, such as: c-mode, c++-mode, java-mode, js-mode, +css-mode, and derived: html-mode, mhtml-mode, xml-mode and nxml-mode, +pascal-mode, lua-ts-mode, lisp-mode and common-lisp-mode + * Incompatible Lisp Changes in Emacs 31.1 diff --git a/lisp/electric.el b/lisp/electric.el index 86c01438e9a..da5fa973757 100644 --- a/lisp/electric.el +++ b/lisp/electric.el @@ -758,8 +758,10 @@ corresponding `block-comment-end'." :group 'electricity :version "31.1" (if electric-block-comment-mode - (add-hook 'post-self-insert-hook #'electric-block-comment-post-self-insert-function 10 t) - (remove-hook 'post-self-insert-hook #'electric-block-comment-post-self-insert-function t))) + (add-hook 'post-self-insert-hook + #'electric-block-comment-post-self-insert-function 10 t) + (remove-hook 'post-self-insert-hook + #'electric-block-comment-post-self-insert-function t))) (provide 'electric) |