GNU bug report logs - #71405
30.0.50; separator line in string-edit's *edit string* buffer can be deleted

Previous Next

Package: emacs;

Reported by: Nicholas Vollmer <nv <at> parenthetic.dev>

Date: Fri, 7 Jun 2024 03:51:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71405 in the body.
You can then email your comments to 71405 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#71405; Package emacs. (Fri, 07 Jun 2024 03:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicholas Vollmer <nv <at> parenthetic.dev>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 07 Jun 2024 03:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicholas Vollmer <nv <at> parenthetic.dev>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; separator line in string-edit's *edit string* buffer can
 be deleted
Date: Thu, 06 Jun 2024 11:55:01 -0400
1. emacs -q
2. eval (string-edit "test" "" #'ignore :abort-callback #'ignore)
3. In the "*edit string*" buffer delete-backward-char

Observe the separator line has been deleted.
Attempting to insert a character will user-error "Text is 
read-only".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#71405; Package emacs. (Sat, 08 Jun 2024 13:04:01 GMT) Full text and rfc822 format available.

Message #8 received at 71405 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Nicholas Vollmer <nv <at> parenthetic.dev>
Cc: 71405 <at> debbugs.gnu.org
Subject: Re: bug#71405: 30.0.50;
 separator line in string-edit's *edit string* buffer can be deleted
Date: Sat, 08 Jun 2024 16:02:54 +0300
> From: Nicholas Vollmer <nv <at> parenthetic.dev>
> Date: Thu, 06 Jun 2024 11:55:01 -0400
> 
> 
> 1. emacs -q
> 2. eval (string-edit "test" "" #'ignore :abort-callback #'ignore)
> 3. In the "*edit string*" buffer delete-backward-char
> 
> Observe the separator line has been deleted.
> Attempting to insert a character will user-error "Text is 
> read-only".

Does the patch below give good results?

diff --git a/lisp/textmodes/string-edit.el b/lisp/textmodes/string-edit.el
index 03be426..2a96289 100644
--- a/lisp/textmodes/string-edit.el
+++ b/lisp/textmodes/string-edit.el
@@ -58,7 +58,8 @@ string-edit
                              (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)))




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 15 Jun 2024 08:40:02 GMT) Full text and rfc822 format available.

Notification sent to Nicholas Vollmer <nv <at> parenthetic.dev>:
bug acknowledged by developer. (Sat, 15 Jun 2024 08:40:03 GMT) Full text and rfc822 format available.

Message #13 received at 71405-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Nicholas Vollmer <nv <at> parenthetic.dev>
Cc: 71405-done <at> debbugs.gnu.org
Subject: Re: bug#71405: 30.0.50; separator line in string-edit's *edit
 string* buffer can be deleted
Date: Sat, 15 Jun 2024 11:38:57 +0300
> From: Nicholas Vollmer <nv <at> parenthetic.dev>
> Cc: 71405 <at> debbugs.gnu.org
> Date: Mon, 10 Jun 2024 16:52:33 -0400
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Does the patch below give good results?
> 
> Yes.

Thanks, installed on master, and closing the bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 13 Jul 2024 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.