From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74364: Bug? Date: Tue, 26 Nov 2024 19:43:04 +0100 Message-ID: <87mshl4z0n.fsf@ledu-giraud.fr> References: <17252c4c-d318-9202-01a3-562d0d057bbe@gmail.com> <8734jtvub4.fsf@ledu-giraud.fr> <3ffa9049-44a1-8a88-69aa-6a7b1d5dabee@gmail.com> <87bjyc29ht.fsf@ledu-giraud.fr> <615dc98b-7d7e-67f2-f57d-f75f4de6c661@gmail.com> <87h683qp3r.fsf@ledu-giraud.fr> <654bc467-2f59-b585-eb4c-6f69344bd5a8@gmail.com> <87wmgu8brh.fsf@ledu-giraud.fr> <87iksb6see.fsf@ledu-giraud.fr> <86seregnul.fsf@gnu.org> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2629"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74364@debbugs.gnu.org, tatsu.takamaro@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 26 19:44:14 2024 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 1tG0Xm-0000ZJ-1d for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Nov 2024 19:44:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tG0Xf-00053R-DI; Tue, 26 Nov 2024 13:44:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tG0Xb-00052c-L2 for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2024 13:44:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tG0Xa-0007Gf-Fx for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2024 13:44:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=uRyhR/Vqhep3BQOhPQHjxqSEhzmE53X0t2aSWpeFPOM=; b=TDTYKbv6T3cif5ViktfpnUDVPxUVo0hk+fu8WjTUPOju/J3UJkiFcPNO/PxTsVD/7F4Q2IcPB485to6mfnEPP016Mby0MS7o1OYnFQARFtLVrrEPvJ07REPjQpGK5/hoFG1hmWqacASUqgnBmvCW+Xd9UGQz1xx0nisWbtK2N1X/Dzi8waGMdErRbBzzGxEvRcEloR453nCWznS2uoLf2eIcic9Pz5zH7ovu4MwmNAPIA3RxlfPEtfeEGwdDFm+JjvNKid5UO25bJjqsDbK4I1HkUQAm6CrrbWjWqQEU5w/Wcty2w6/JpUE21K6+jbS4hENoDYbyasdsNjzgIhK9qw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tG0Xa-0001T2-90 for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2024 13:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2024 18:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74364 X-GNU-PR-Package: emacs Original-Received: via spool by 74364-submit@debbugs.gnu.org id=B74364.17326465905541 (code B ref 74364); Tue, 26 Nov 2024 18:44:02 +0000 Original-Received: (at 74364) by debbugs.gnu.org; 26 Nov 2024 18:43:10 +0000 Original-Received: from localhost ([127.0.0.1]:52417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tG0Wj-0001RG-N9 for submit@debbugs.gnu.org; Tue, 26 Nov 2024 13:43:10 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:20075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tG0Wh-0001R5-3D for 74364@debbugs.gnu.org; Tue, 26 Nov 2024 13:43:08 -0500 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=758aAW0P umTVgfID2zAkr+iNxx6ncTaJsgJKnhT63yw=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=I+rTGAiC6Qi9RV+9iB+NYL28eAN3qn kLSeOUDy20PCZAT7g+hH+5pLW7njtk6iG3EDC2cd8HPwd49+xfvx1rDg== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=758aAW0PumTVgfID 2zAkr+iNxx6ncTaJsgJKnhT63yw=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=h2BlFSbVeNco4QV6KXh4KvfayNs1VtzkBLLDoP tNdAgi8BTL3dhurQEPS6xlaJmTAt51aqgYzj8jhheNL/Vc495eH75H+s9bYBxAX+inmhEz iCbcddwMrKCKW8x+gIfGi91KpXmvWxhBi4iH2Q4+hrqjWfT2ui7aTmgOBvbV0HGWYNmwJZ st9hGH0CAC7SbZtI4buZfRI4zOmmdBhxTA0gUG1JfxpgYs4xeMC5cv1ErOJY3HYyzcfHLB L2p4n74oajOvKBoKeZ/8M6TsORZsMyUi07tdAQrxUkk9do8a/hNlWA6Jf2Rjxspz4JItD+ wKOnpJdFY5l6ut7BD/GDIYIQ== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 95955088 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 26 Nov 2024 19:43:06 +0100 (CET) In-Reply-To: <86seregnul.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 26 Nov 2024 14:51:14 +0200") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295998 Archived-At: Eli Zaretskii writes: >> Cc: 74364@debbugs.gnu.org >> Date: Mon, 25 Nov 2024 20:10:49 +0100 >> From: Manuel Giraud via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Tatsu Takamaro writes: >> >> [...] >> >> Ok, now your recipe is more precise and I can reproduce it. >> >> > 3. Put some changes into the Tutorial. Say, just add a new line. >> > >> > 4. Press C-x-s to save. Emacs asks me to write a filename, I write >> > TUTORIAL, because the full path is alredy shown. Then Emacs asks me >> > whether I want to overwrite the file. I anser Yes (type y). >> >> After this 'C-x C-s', you have saved the content of the (modified) >> TUTORIAL into a file named "TUTORIAL" somewhere on your hard drive. >> Now, in this buffer, `tutorial--lang' is set to nil (which cause the >> error you saw) and Emacs still wants to save your progression in the >> tutorial and that's why it asks the question when you tried to quit. >> >> This is indeed a bug but maybe saving the TUTORIAL buffer is not >> supported. Or we should remap `save-buffer' to save tutorial >> progression here? > > Saving TUTORIAL is a strange thing to do. What is the purpose? The > file produced that way cannot be used as a tutorial, AFAIU, because > Emacs doesn't let users specify the tutorial's file name. It seems that at some point of the tutorial, the user is expected to do it. [...] > So my suggestion would be to modify tutorial--save-tutorial and > tutorial--save-on-kill such that of tutorial--lang is nil, they will > do nothing. Because there's no point of trying to save the tutorial > in that case. I could try to come up with a patch like this. -- Manuel Giraud