From unknown Sun Aug 10 16:51:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58423 <58423@debbugs.gnu.org> To: bug#58423 <58423@debbugs.gnu.org> Subject: Status: 29.0.50; Weird behavior of string-edit Reply-To: bug#58423 <58423@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:51:55 +0000 retitle 58423 29.0.50; Weird behavior of string-edit reassign 58423 emacs submitter 58423 Jean Louis severity 58423 normal tag 58423 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 19:40:09 2022 Received: (at submit) by debbugs.gnu.org; 10 Oct 2022 23:40:09 +0000 Received: from localhost ([127.0.0.1]:50234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi2NU-00043j-Tq for submit@debbugs.gnu.org; Mon, 10 Oct 2022 19:40:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:35648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi2NS-00043c-U2 for submit@debbugs.gnu.org; Mon, 10 Oct 2022 19:40:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi2NR-0003rF-OB for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 19:40:06 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:35943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oi2NN-0007f2-KV for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 19:40:05 -0400 Received: from localhost ([::ffff:154.227.225.142]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BBD14.000000006344AD2D.000065C0; Mon, 10 Oct 2022 16:39:25 -0700 From: Jean Louis To: bug-gnu-emacs@gnu.org Subject: 29.0.50; Weird behavior of string-edit Date: Tue, 11 Oct 2022 01:33:14 +0300 Message-ID: <86bkqje2c5.fsf@protected.rcdrun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=217.170.207.13; envelope-from=admin@protected.rcdrun.com; helo=stw1.rcdrun.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) I don't think that this is right return value from: (string-edit "" "" 'ignore) to be this: #("Type C-c C-c when you=E2=80=99ve finished editing" 5 12 (font-lock-face = help-key-binding face help-key-binding)) In GNU Emacs 29.0.50 (build 7, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6, Xaw3d scroll bars) of 2022-10-10 built on protected.rcdrun.com Repository revision: ed436db1320339862fad5ac754a6ec42de06c766 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Parabola GNU/Linux-libre Configured using: 'configure --with-x-toolkit=3Dlucid' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=3Dexwm-xim locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils text-property-search string-edit cl-loaddefs cl-lib rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 39607 7812) (symbols 48 5166 2) (strings 32 14340 2028) (string-bytes 1 404301) (vectors 16 10449) (vector-slots 8 159634 9905) (floats 8 24 24) (intervals 56 325 0) (buffers 1000 12)) --=20 Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 20:07:51 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 00:07:51 +0000 Received: from localhost ([127.0.0.1]:50240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi2oJ-0004jc-Ji for submit@debbugs.gnu.org; Mon, 10 Oct 2022 20:07:51 -0400 Received: from mail-oo1-f51.google.com ([209.85.161.51]:42745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi2oH-0004jP-Hs for 58423@debbugs.gnu.org; Mon, 10 Oct 2022 20:07:50 -0400 Received: by mail-oo1-f51.google.com with SMTP id r15-20020a4abf0f000000b004761c7e6be1so9000612oop.9 for <58423@debbugs.gnu.org>; Mon, 10 Oct 2022 17:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:from:to:cc:subject:date:message-id :reply-to; bh=fZ20LH6MA039MmJNiBoZPcGdWhKZrwFhkiOiqFY7odQ=; b=OgdE9Q7aOut31D9XE4ASSQux0i95OsxaXotN+zQVGHe3IY5rfSJccRHwd8r22lrIwG 4cZS+e+PF4FzTzOHHoeHjJiMkdKUtnosLkPsEyOY08vu/kxO0aAVnuqaeYBXO6sj+ndd vyi7B1oQCXV8uZ6OjJe/Kk/QtdOui16xDqWK2Rh+kDujYjgzH0nhlZuypIvMLy4pbR/U WMwbxE65xJKeC686QzB8gp+dbyTZn6gaN75xLdU5SrOLqi1Kxe5P15SkUBsTyvsSvF9B tP7543WTz9HEYyfUwwPvh1n5Pz9HulnJlUPGlWLn6/q4ifkib4ok5pvuBOlQ9n7fVlLX Gapg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=fZ20LH6MA039MmJNiBoZPcGdWhKZrwFhkiOiqFY7odQ=; b=hbuP1DSeZ7gUuzw8TdX36RZXA3xhZTZ2hrRI3V6ps/uOhtGbfEbvouftZHit1MC9Su YdbcbEBGFPUkNNHTc7uRM9fR/K/GpWdSaZqYQUTb2WwPxOHYGeCraDVAdjK4S6l9HHWv JQYnswKUfq5bPw2vUYfHOhbsKoHDRTNcPdA/L/HF1DdSMmZnfn7HnXX5dYsqekv2eUIi Af8kTJl1tTkLCsH32obwg/XtDwEmDdQOujrSvNsAjgB4Qj2OjstlJQSL2M0hbjHmcWIl o2QouLRKXhcXibd6Cdr0+Phqh49kQXfP3ufAdXfzTE2/EKv0KLSfAhDZZYy/GwAw1vMw Y43w== X-Gm-Message-State: ACrzQf0VbMcZvUfrQN1Dh64wSpI9c+ABirC+0u3Wj3lz4FMHX6WTm9Wx JCiY1SRkp1hUzMBtQAwbM2Hwk34NTefzqcS7aaU= X-Google-Smtp-Source: AMsMyM4rtDaEjdLsTeVN/eSystjCIn2zvSC1dlJNxUJSsE/PPTmuZ+kpCPTtGXsD/68888L7ApXQl4y2yQ9qpV4UHIM= X-Received: by 2002:a05:6830:3c1:b0:637:28be:7920 with SMTP id p1-20020a05683003c100b0063728be7920mr9040279otc.105.1665446863792; Mon, 10 Oct 2022 17:07:43 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 10 Oct 2022 19:07:43 -0500 From: Stefan Kangas In-Reply-To: <86bkqje2c5.fsf@protected.rcdrun.com> References: <86bkqje2c5.fsf@protected.rcdrun.com> X-Hashcash: 1:20:221010:bugs@gnu.support::atPRQ0FhtI9Q19V/:5Wzk MIME-Version: 1.0 Date: Mon, 10 Oct 2022 19:07:43 -0500 Message-ID: Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit To: Jean Louis , 58423@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58423 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jean Louis writes: > I don't think that this is right return value from: > > (string-edit "" "" 'ignore) > > to be this: > > #("Type C-c C-c when you=E2=80=99ve finished editing" 5 12 (font-lock-fac= e help-key-binding face help-key-binding)) Do you have a use case where you care about the return value? From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 20:36:20 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 00:36:20 +0000 Received: from localhost ([127.0.0.1]:50313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi3Fs-0005U6-Hp for submit@debbugs.gnu.org; Mon, 10 Oct 2022 20:36:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi3Fq-0005Tp-F2 for 58423@debbugs.gnu.org; Mon, 10 Oct 2022 20:36:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QIuPAjPFBAyvGDgy1+hWec28ZXIZ+epF9sbdreUjMXM=; b=goJklHS7pXIYF1mP+l7YQu6K1C dyYnfteWV6ZlNCw6Z3n1TGTQzTya+lKd8MGCk3eRpI1k6QZjIDn/QExAGdbdmG526BJRbqu6ZV0cM rmqtpA6Om6tXcGmTP84crUrvfb64QkQp3rkqs+1XMwrNqDZ29eOm64H9Ccup8Ry+h2Gg=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oi3Fg-0006Hv-LM; Tue, 11 Oct 2022 02:36:12 +0200 From: Lars Ingebrigtsen To: Jean Louis Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit In-Reply-To: <86bkqje2c5.fsf@protected.rcdrun.com> (Jean Louis's message of "Tue, 11 Oct 2022 01:33:14 +0300") References: <86bkqje2c5.fsf@protected.rcdrun.com> X-Now-Playing: Adam F's _15 Years of Metalheadz_: "Metropolis" Date: Tue, 11 Oct 2022 02:36:08 +0200 Message-ID: <87v8orjix3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jean Louis writes: > I don't think that this is right return value from: > > (string-edit "" "" 'ignore) > > to be this: > > #("Type C-c C-c when you’ve finished editing" 5 12 (font-lock-face help-key-binding face hel [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58423 Cc: 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jean Louis writes: > I don't think that this is right return value from: > > (string-edit "" "" 'ignore) > > to be this: > > #("Type C-c C-c when you=E2=80=99ve finished editing" 5 12 (font-lock-fac= e help-key-binding face help-key-binding)) That function isn't defined as having any particular return value, so that's as good a value as any. Closing. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 20:36:26 2022 Received: (at control) by debbugs.gnu.org; 11 Oct 2022 00:36:26 +0000 Received: from localhost ([127.0.0.1]:50316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi3Fx-0005UM-Pe for submit@debbugs.gnu.org; Mon, 10 Oct 2022 20:36:26 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oi3Fv-0005Tv-Ev for control@debbugs.gnu.org; Mon, 10 Oct 2022 20:36:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3aQ0Bc76VZxe4UWj3P+lkhxfQ8PAmRPbkPG5uj5whtg=; b=R8TgRlvOZMjqoZY2HlchjrM1Qe cl76c+nL6RZoP0t6KaSQ9yUtrLF0/o987e+/gshPF4VyUj4DSpmXcVD3IAbw+Xz24yr0T4oTuVGWq fiBj5MsL1UolNhPPeeh7NBUqJJbcV+vdeQWAMgFV0URgvbIOMTQNGjXoLvx/apab/StE=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oi3Fm-0006I2-FM for control@debbugs.gnu.org; Tue, 11 Oct 2022 02:36:17 +0200 Date: Tue, 11 Oct 2022 02:36:14 +0200 Message-Id: <87tu4bjiwx.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #58423 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 58423 notabug close 58423 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 58423 notabug close 58423 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 06:40:25 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 10:40:25 +0000 Received: from localhost ([127.0.0.1]:51107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiCgT-0004Zq-Bx for submit@debbugs.gnu.org; Tue, 11 Oct 2022 06:40:25 -0400 Received: from smtp-2.orcon.net.nz ([60.234.4.43]:58621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiCgR-0004Zd-TJ for 58423@debbugs.gnu.org; Tue, 11 Oct 2022 06:40:24 -0400 Received: from [10.253.37.70] (port=47861 helo=webmail.orcon.net.nz) by smtp-2.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1oiCgK-0001hr-Ct; Tue, 11 Oct 2022 23:40:16 +1300 Received: from ip-116-251-140-135.kinect.net.nz ([116.251.140.135]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Tue, 11 Oct 2022 23:40:16 +1300 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 11 Oct 2022 23:40:16 +1300 From: Phil Sainty To: Lars Ingebrigtsen Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit In-Reply-To: <87v8orjix3.fsf@gnus.org> References: <86bkqje2c5.fsf@protected.rcdrun.com> <87v8orjix3.fsf@gnus.org> Message-ID: <6a5ef382eb76edafb45c013a9613e830@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58423 Cc: Jean Louis , 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2022-10-11 13:36, Lars Ingebrigtsen wrote: > That function isn't defined as having any particular return value, > so that's as good a value as any. Is it really, though? 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. Surely that's a useful-and-therefore-better return value (which can then be documented). From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 07:00:48 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 11:00:48 +0000 Received: from localhost ([127.0.0.1]:51162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiD0C-0005AQ-23 for submit@debbugs.gnu.org; Tue, 11 Oct 2022 07:00:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiD07-0005A9-3l for 58423@debbugs.gnu.org; Tue, 11 Oct 2022 07:00:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SmK83TqH8XB7NQlAlJ6yrLe6QS80EyviSr92Ne0E6aU=; b=s1hgVD/ZFIs7hE+8R4Zh3yY2ae uDsQuY20GJ7hGBRxwP2GivAPKJQ07MTZ833s6T9k133P+tSuxOhCRf2swRshH76joDBCDHNDwKqYb KXNBagSzLf1xmgRAdbSUhU3AdJKlMg4mnZdHdEWWpxnVUcvqNhkOtEg5z534g7UzH8jk=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiCzx-0002vl-U5; Tue, 11 Oct 2022 13:00:35 +0200 From: Lars Ingebrigtsen To: Phil Sainty Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit In-Reply-To: <6a5ef382eb76edafb45c013a9613e830@webmail.orcon.net.nz> (Phil Sainty's message of "Tue, 11 Oct 2022 23:40:16 +1300") References: <86bkqje2c5.fsf@protected.rcdrun.com> <87v8orjix3.fsf@gnus.org> <6a5ef382eb76edafb45c013a9613e830@webmail.orcon.net.nz> X-Now-Playing: Digitalism's _JPEG_: "Knight Life" Date: Tue, 11 Oct 2022 13:00:33 +0200 Message-ID: <87pmeyiq0e.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Phil Sainty writes: > 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58423 Cc: Jean Louis , 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Phil Sainty writes: > 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'. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 08:12:01 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 12:12:01 +0000 Received: from localhost ([127.0.0.1]:51303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiE76-0000lA-SN for submit@debbugs.gnu.org; Tue, 11 Oct 2022 08:12:01 -0400 Received: from smtp-2.orcon.net.nz ([60.234.4.43]:58011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiE73-0000ky-J9 for 58423@debbugs.gnu.org; Tue, 11 Oct 2022 08:11:59 -0400 Received: from [10.253.37.70] (port=39063 helo=webmail.orcon.net.nz) by smtp-2.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1oiE6w-00018E-M7; Wed, 12 Oct 2022 01:11:50 +1300 Received: from ip-116-251-140-135.kinect.net.nz ([116.251.140.135]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 12 Oct 2022 01:11:50 +1300 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 12 Oct 2022 01:11:50 +1300 From: Phil Sainty To: Lars Ingebrigtsen Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit In-Reply-To: <87pmeyiq0e.fsf@gnus.org> References: <86bkqje2c5.fsf@protected.rcdrun.com> <87v8orjix3.fsf@gnus.org> <6a5ef382eb76edafb45c013a9613e830@webmail.orcon.net.nz> <87pmeyiq0e.fsf@gnus.org> Message-ID: X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58423 Cc: Jean Louis , 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2022-10-12 00:00, Lars Ingebrigtsen wrote: > That's `read-string-from-buffer'. Aha. I was going to suggest mentioning that in the `string-edit' docstring to make this easier to discover, but I see you've just done exactly that, so I think it looks good now. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 10:13:12 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 14:13:12 +0000 Received: from localhost ([127.0.0.1]:54507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiG0O-0004cd-6Z for submit@debbugs.gnu.org; Tue, 11 Oct 2022 10:13:12 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:37467) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiG0J-0004c6-Ud for 58423@debbugs.gnu.org; Tue, 11 Oct 2022 10:13:11 -0400 Received: from localhost ([::ffff:154.227.225.142]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BBD13.00000000634579ED.00003327; Tue, 11 Oct 2022 07:13:01 -0700 Date: Tue, 11 Oct 2022 17:10:42 +0300 From: Jean Louis To: Stefan Kangas Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit Message-ID: References: <86bkqje2c5.fsf@protected.rcdrun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58423 Cc: 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * Stefan Kangas [2022-10-11 03:09]: > Jean Louis writes: > > > I don't think that this is right return value from: > > > > (string-edit "" "" 'ignore) > > > > to be this: > > > > #("Type C-c C-c when you’ve finished editing" 5 12 (font-lock-face help-key-binding face help-key-binding)) > > Do you have a use case where you care about the return value? My case is heavy use case, that is what I do every day. I was thinking to start using the Emacs built-in feature, but then I see it misbehaves. Heavy use case is for editing values from database. Just any values. Here is the function that I use and this one returns the string. (defun read-from-buffer (&optional value buffer-name mode title keymap place highlight-list minor-modes input-method) "Edits string and returns it" (let ((this-buffer (buffer-name)) (title (or title "")) (value (or value "")) (new-value value) (point (cond ((numberp place) place) ((listp place) (cdr (assoc "place" place))))) (table (when (listp place) (cdr (assoc "table" place)))) (column (when (listp place) (cdr (assoc "column" place)))) (table-id (when (listp place) (cdr (assoc "table-id" place)))) (_ (message "EDIT %s" place)) (_ (message "%s" place)) (read-buffer (if buffer-name (generate-new-buffer buffer-name) (generate-new-buffer "*edit-string*")))) (save-excursion (switch-to-buffer read-buffer) (erase-buffer) (set-buffer read-buffer) (if mode (if (fboundp mode) (funcall mode) (rcd-message "You need `%s' mode" (symbol-name mode))) (text-mode)) (while minor-modes (let ((minor-mode (pop minor-modes))) (if minor-mode (if (fboundp (intern minor-mode)) (funcall (intern minor-mode)) (rcd-message "You need `%s' minor mode" (symbol-name minor-mode)))))) (setq rcd-db-current-table table) (setq rcd-db-current-column column) (setq rcd-db-current-table-id table-id) ;; (local-set-key (kbd "C-c C-c") 'exit-recursive-edit) (local-set-key (kbd "") 'exit-recursive-edit) (when keymap (use-local-map keymap)) (when input-method (set-input-method input-method)) (setq header-line-format (format "%s ➜ Finish editing with or C-M-c or F8" title)) (if (stringp value) (insert value)) (goto-char (or point (point-min))) (message "When you're done editing press C-M-c or F8 to continue.") (setq eval-expression-debug-on-error nil) (unwind-protect (recursive-edit) (if (get-buffer-window read-buffer) (progn (setq new-value (buffer-substring (point-min) (point-max))) (kill-buffer read-buffer)))) (setq eval-expression-debug-on-error t) (switch-to-buffer this-buffer) new-value))) ;; TODO if mode is used, maybe it should not return propertized string -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 10:13:16 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 14:13:16 +0000 Received: from localhost ([127.0.0.1]:54509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiG0R-0004co-Ok for submit@debbugs.gnu.org; Tue, 11 Oct 2022 10:13:16 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:47097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiG0N-0004cM-1S for 58423@debbugs.gnu.org; Tue, 11 Oct 2022 10:13:12 -0400 Received: from localhost ([::ffff:154.227.225.142]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BBD15.00000000634579F2.00003336; Tue, 11 Oct 2022 07:13:05 -0700 Date: Tue, 11 Oct 2022 17:12:40 +0300 From: Jean Louis To: Lars Ingebrigtsen Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit Message-ID: References: <86bkqje2c5.fsf@protected.rcdrun.com> <87v8orjix3.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87v8orjix3.fsf@gnus.org> User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58423 Cc: 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * Lars Ingebrigtsen [2022-10-11 03:36]: > Jean Louis writes: > > > I don't think that this is right return value from: > > > > (string-edit "" "" 'ignore) > > > > to be this: > > > > #("Type C-c C-c when you’ve finished editing" 5 12 (font-lock-face help-key-binding face help-key-binding)) > > That function isn't defined as having any particular return value, so > that's as good a value as any. > > Closing. I can just say "WOW" on that. I understand that the fallback function is called and I like the approach. But from functions I expect return values. If there is success than I would expect TRUE or something. Best would be not to have special function to handle that, but to have return value. See my function in previous email. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 10:14:50 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 14:14:50 +0000 Received: from localhost ([127.0.0.1]:54514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiG1y-0004fC-EE for submit@debbugs.gnu.org; Tue, 11 Oct 2022 10:14:50 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiG1u-0004ey-CL for 58423@debbugs.gnu.org; Tue, 11 Oct 2022 10:14:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XMUb3Alj7TzQNoAmPUR0L4oeuZULESYzcSuOeNUfSFE=; b=RqV208zIEUTXzsamGhaHUeKz0v YlGV6JcTVlDEcSq3kz0iZbLx53VuN2tTG0cg0L6F9YQPQ275UiQmJzoDcxxRUlQnwPFKAeVWo11PZ pBz8WsOgqfKY5VoSlqGVSXiP3yj+1Mg4q6YwXDVUTUH7UwQiHL6osLRGyI0UWJLcsxHA=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiG1l-0004D5-LG; Tue, 11 Oct 2022 16:14:39 +0200 From: Lars Ingebrigtsen To: Jean Louis Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit In-Reply-To: (Jean Louis's message of "Tue, 11 Oct 2022 17:12:40 +0300") References: <86bkqje2c5.fsf@protected.rcdrun.com> <87v8orjix3.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXr6umyraqCfHb/ //+XMrrBAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YKCw00D7I1sKoAAAEfSURBVCjPVZLBbsMgDIZ/ T2babkQCqbvvtKdwp6RnkGBSdu+hb5Md0uedCdCkf6SETza/bQLwJOez/8k5+ygw+s2/91nfqYLb cuwGYVuTK5B0ZbDYAlddC75kUZhrEr9CIdUKlAqoieo9C4qnk8oKrBZ1ly2AHHgryQU0Bng08Nmo UQULopLJLVbr6kM7vPFhUGaSfWq0+kUn4HNP05ox7RGKWR6AaP6+ZetO3xkf0wIK8CFgkFM4i5qa oGbh5GpXpab41Kx1kmB6o/VkD3oCVTkVtjVwu3XQCfNlH9njBdw3X2iQR4RAIzdTHsqP6zqDbN9j NIl7ZcvR2rE1KyB/6GZ0hrd7IPBTnCYHf11XvSvzfV51QBdinspFmmrnXf+W4y0+tpl3TgAAACV0 RVh0ZGF0ZTpjcmVhdGUAMjAyMi0xMC0xMVQxMzo1MjoxNSswMDowMKWQEBgAAAAldEVYdGRhdGU6 bW9kaWZ5ADIwMjItMTAtMTFUMTM6NTI6MTUrMDA6MDDUzaikAAAAAElFTkSuQmCC X-Now-Playing: Neil Young with Crazy Horse's _Archives Vol. II (8): Dume (1975)_: "Pocahontas" Date: Tue, 11 Oct 2022 16:14:36 +0200 Message-ID: <87y1tmh2gj.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Jean Louis writes: > I understand that the fallback function is called and I like the > approach. It's not a fallback function -- it's a callback function. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58423 Cc: 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Jean Louis writes: > I understand that the fallback function is called and I like the > approach. It's not a fallback function -- it's a callback function. > But from functions I expect return values. Then your expectations are wrong -- many functions don't return anything meaningful, but work by side effect only. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 10:18:30 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 14:18:30 +0000 Received: from localhost ([127.0.0.1]:54523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiG5W-0004lF-Dv for submit@debbugs.gnu.org; Tue, 11 Oct 2022 10:18:30 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]:42019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiG5T-0004l0-Tb for 58423@debbugs.gnu.org; Tue, 11 Oct 2022 10:18:28 -0400 Received: from localhost ([::ffff:154.227.225.142]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000BBD13.0000000063457B2C.0000339A; Tue, 11 Oct 2022 07:18:20 -0700 Date: Tue, 11 Oct 2022 17:17:47 +0300 From: Jean Louis To: Lars Ingebrigtsen Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit Message-ID: 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87pmeyiq0e.fsf@gnus.org> User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58423 Cc: Phil Sainty , 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * Lars Ingebrigtsen [2022-10-11 15:29]: > Phil Sainty writes: > > > 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" It is to consider, thanks. I like it full window. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/ From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 15:35:52 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 19:35:52 +0000 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 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 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 785EA1C0008; Tue, 11 Oct 2022 19:35:41 +0000 (UTC) From: Juri Linkov To: Jean Louis Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit In-Reply-To: (Jean Louis's message of "Tue, 11 Oct 2022 17:17:47 +0300") Organization: LINKOV.NET References: <86bkqje2c5.fsf@protected.rcdrun.com> <87v8orjix3.fsf@gnus.org> <6a5ef382eb76edafb45c013a9613e830@webmail.orcon.net.nz> <87pmeyiq0e.fsf@gnus.org> Date: Tue, 11 Oct 2022 22:34:09 +0300 Message-ID: <867d1640jy.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58423 Cc: Phil Sainty , Lars Ingebrigtsen , 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> > 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'. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 15:37:29 2022 Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 19:37:29 +0000 Received: from localhost ([127.0.0.1]:54917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiL4C-0006kN-RF for submit@debbugs.gnu.org; Tue, 11 Oct 2022 15:37:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiL4A-0006k9-FX for 58423@debbugs.gnu.org; Tue, 11 Oct 2022 15:37:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=5U63IV0BlHUk0ngGoPvKCBUsuXGWO6lUUY0SB4ZtIkk=; b=mgUFAMyuK9jGyAvFTGwzgN71Mt b7DM8xDcQrCede+28pBPmwdvlNJWeM20nv24kiWSlrArFx0Q/HJ4Uln9hYppbEz8966kJLqXRW1df iFCQxdCAAHexjl/c1qa32oI3EabOe4krKLYUQ0AsPN6XLSKHpM6L4ntpt3TnPy8rJGcs=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oiL40-0007eP-KQ; Tue, 11 Oct 2022 21:37:18 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#58423: 29.0.50; Weird behavior of string-edit In-Reply-To: <867d1640jy.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 11 Oct 2022 22:34:09 +0300") References: <86bkqje2c5.fsf@protected.rcdrun.com> <87v8orjix3.fsf@gnus.org> <6a5ef382eb76edafb45c013a9613e830@webmail.orcon.net.nz> <87pmeyiq0e.fsf@gnus.org> <867d1640jy.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEWdVaZIIDK1p7Ks TFzWjmmuOIv///8BKnpWAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YKCxIyK88WF7AAAAGpSURBVDjL hZNLdsMgDEUFqedWCXPKaeehkAX4hAWYOtr/ViqRj2W3PdXAA671HvoAsAbqgP9BUKD8BbIG1jzP j1WBAOZ3qQhK5/gEURLaU2cFTJrnU2alcmhzBg0PDq9bEKERp1yz32VYaI0QX5M/7qUGWrCdEjpX 60VlBFgampK8eKyAz2FMaM7TWZSSkrLwwredJ8o7AIMAmqQhW2DuIOdSN/MwIODiWWraghl9o4ol ixL2ogPfKt5AkV710cYYQ5R4G3FEn5O7pj2Q/uZJ5nGTCrcJfowyj3xxU58h0D24VzLbpSAruVwV aMaTuLMUlyJgHmYGfIjUnEuZr1DuGTcwI3deEqRfTyDf5smJcwcwq0l5Irb2tLD5doQdnHcAaEnn 1oGYrxGpJr8woC2wwMBRcnkHINiaw4I9oyoQuZ+p94uGooDsyYDj8CswHXiCspEKvFif7SewwR6S 7WAjFW3kxR0f762o/yPXNgtwTgGZPXqUF9o3QN0qBiSMDV0H74/TviohA9sEnRG5bmBn9vDsYFJZ qwDD/fhKrCehPQ4n4wI3BAZ5O98nu3i0kMM+6AAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0xMC0x MVQxODo1MDo0MyswMDowMG2cRNgAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMTAtMTFUMTg6NTA6 NDMrMDA6MDAcwfxkAAAAAElFTkSuQmCC X-Now-Playing: Kid Sister's _Ultra Violet_: "Pro Nails (Feat Kanye West)" Date: Tue, 11 Oct 2022 21:37:14 +0200 Message-ID: <87mta2f8yd.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: >> (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? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58423 Cc: Phil Sainty , Jean Louis , 58423@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: >> (read-string-from-buffer "Enter text" "") =E2=87=92 "OK here" > > I expected that typing immediately 'C-c C-c' will return an empty string, > but it returned the prompt. A bug? Yup. From unknown Sun Aug 10 16:51:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 09 Nov 2022 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator