From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#58423: 29.0.50; Weird behavior of string-edit Date: Tue, 11 Oct 2022 17:12:40 +0300 Message-ID: References: <86bkqje2c5.fsf@protected.rcdrun.com> <87v8orjix3.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="7577"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Cc: 58423@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 11 16:14:16 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 1oiG1Q-0001j5-43 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 16:14:16 +0200 Original-Received: from localhost ([::1]:40618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiG1O-0007CR-VX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 10:14:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiG1C-0007Ap-Tu for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 10:14:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiG1C-0007cM-M2 for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 10:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiG1C-0004e1-HW for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 10:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2022 14:14: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.166549759617787 (code B ref 58423); Tue, 11 Oct 2022 14:14:02 +0000 Original-Received: (at 58423) by debbugs.gnu.org; 11 Oct 2022 14:13:16 +0000 Original-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 Original-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 Original-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 Content-Disposition: inline In-Reply-To: <87v8orjix3.fsf@gnus.org> 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:245114 Archived-At: * 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/