all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Jean Louis <bugs@gnu.support>
Cc: Phil Sainty <psainty@orcon.net.nz>,
	Lars Ingebrigtsen <larsi@gnus.org>,
	58423@debbugs.gnu.org
Subject: bug#58423: 29.0.50; Weird behavior of string-edit
Date: Tue, 11 Oct 2022 22:34:09 +0300	[thread overview]
Message-ID: <867d1640jy.fsf@mail.linkov.net> (raw)
In-Reply-To: <Y0V7C9wmGGHc4+J5@protected.localdomain> (Jean Louis's message of "Tue, 11 Oct 2022 17:17:47 +0300")

>> > How about returning the edited string (or nil if aborted)?  Then it
>> > would be possible to use `string-edit' as a method of interactively
>> > obtaining a string value.
>>
>> That's `read-string-from-buffer'.
>
> Aha that one, thanks.
>
> (read-string-from-buffer "Enter text" "") ⇒ "OK here"

I expected that typing immediately 'C-c C-c' will return an empty string,
but it returned the prompt.  A bug?

> It is to consider, thanks. I like it full window.

It's possible to customize to full window by 'display-buffer-alist'.





  reply	other threads:[~2022-10-11 19:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-10 22:33 bug#58423: 29.0.50; Weird behavior of string-edit Jean Louis
2022-10-11  0:07 ` Stefan Kangas
2022-10-11 14:10   ` Jean Louis
2022-10-11  0:36 ` Lars Ingebrigtsen
2022-10-11 10:40   ` Phil Sainty
2022-10-11 11:00     ` Lars Ingebrigtsen
2022-10-11 12:11       ` Phil Sainty
2022-10-11 14:17       ` Jean Louis
2022-10-11 19:34         ` Juri Linkov [this message]
2022-10-11 19:37           ` Lars Ingebrigtsen
2022-10-11 14:12   ` Jean Louis
2022-10-11 14:14     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=867d1640jy.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=58423@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    --cc=larsi@gnus.org \
    --cc=psainty@orcon.net.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.