all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#71405: 30.0.50; separator line in string-edit's *edit string* buffer can be deleted
@ 2024-06-06 15:55 Nicholas Vollmer
  2024-06-08 13:02 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Nicholas Vollmer @ 2024-06-06 15:55 UTC (permalink / raw)
  To: 71405


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".





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#71405: 30.0.50; separator line in string-edit's *edit string* buffer can be deleted
  2024-06-06 15:55 bug#71405: 30.0.50; separator line in string-edit's *edit string* buffer can be deleted Nicholas Vollmer
@ 2024-06-08 13:02 ` Eli Zaretskii
       [not found]   ` <87tti0wmem.fsf@parenthetic.dev>
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2024-06-08 13:02 UTC (permalink / raw)
  To: Nicholas Vollmer; +Cc: 71405

> From: Nicholas Vollmer <nv@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)))





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#71405: 30.0.50; separator line in string-edit's *edit string* buffer can be deleted
       [not found]   ` <87tti0wmem.fsf@parenthetic.dev>
@ 2024-06-15  8:38     ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2024-06-15  8:38 UTC (permalink / raw)
  To: Nicholas Vollmer; +Cc: 71405-done

> From: Nicholas Vollmer <nv@parenthetic.dev>
> Cc: 71405@debbugs.gnu.org
> Date: Mon, 10 Jun 2024 16:52:33 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Does the patch below give good results?
> 
> Yes.

Thanks, installed on master, and closing the bug.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-15  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-06 15:55 bug#71405: 30.0.50; separator line in string-edit's *edit string* buffer can be deleted Nicholas Vollmer
2024-06-08 13:02 ` Eli Zaretskii
     [not found]   ` <87tti0wmem.fsf@parenthetic.dev>
2024-06-15  8:38     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.