]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent deletion of separator in *edit string* buffer
authorEli Zaretskii <eliz@gnu.org>
Sat, 15 Jun 2024 08:37:34 +0000 (11:37 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 15 Jun 2024 17:31:22 +0000 (19:31 +0200)
* lisp/textmodes/string-edit.el (string-edit): Make the separator
line read-only.  (Bug#71405)

(cherry picked from commit 6d12157fa85a12208555e291321af97a09243962)

lisp/textmodes/string-edit.el

index cafed5a1e1616500d764297b33434a585926fc4d..936618dddaa821e2ce1e612c132a2af6caeb22ac 100644 (file)
@@ -58,7 +58,8 @@ Also see `read-string-from-buffer'."
                              (list 'intangible t
                                    'face 'string-edit-prompt
                                    'read-only t))
-        (insert (propertize (make-separator-line) 'rear-nonsticky t))
+        (insert (propertize (make-separator-line)
+                            'read-only t 'rear-nonsticky t))
         (add-text-properties (point-min) (point)
                              (list 'string-edit--prompt t))))
     (let ((start (point)))