From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#58423: 29.0.50; Weird behavior of string-edit Date: Tue, 11 Oct 2022 22:34:09 +0300 Organization: LINKOV.NET Message-ID: <867d1640jy.fsf@mail.linkov.net> References: <86bkqje2c5.fsf@protected.rcdrun.com> <87v8orjix3.fsf@gnus.org> <6a5ef382eb76edafb45c013a9613e830@webmail.orcon.net.nz> <87pmeyiq0e.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1909"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Phil Sainty , Lars Ingebrigtsen , 58423@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 11 21:48:41 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiLF3-0000O0-57 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 21:48:41 +0200 Original-Received: from localhost ([::1]:54686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiLEn-0006Y4-57 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 15:48:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiL2p-0006pZ-1i for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiL2o-00078J-No for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiL2o-0006i2-F8 for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2022 19:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58423 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 58423-submit@debbugs.gnu.org id=B58423.166551695225773 (code B ref 58423); Tue, 11 Oct 2022 19:36:02 +0000 Original-Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 19:35:52 +0000 Original-Received: from localhost ([127.0.0.1]:54910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiL2e-0006hd-5g for submit@debbugs.gnu.org; Tue, 11 Oct 2022 15:35:52 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:50607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiL2c-0006hQ-K3 for 58423@debbugs.gnu.org; Tue, 11 Oct 2022 15:35:51 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 785EA1C0008; Tue, 11 Oct 2022 19:35:41 +0000 (UTC) In-Reply-To: (Jean Louis's message of "Tue, 11 Oct 2022 17:17:47 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245139 Archived-At: >> > 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'.