From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tatsu Takamaro Newsgroups: gmane.emacs.bugs Subject: bug#74364: Bug? Date: Wed, 27 Nov 2024 17:16:03 +0300 Message-ID: <06bfdebc-1dfb-bde2-f898-dc8f5cc36f87@gmail.com> 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> <87mshl4z0n.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------QY9zUc5k8EdwFTqkXonTi0NC" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17387"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Cc: 74364@debbugs.gnu.org To: Manuel Giraud , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 27 15:18:26 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 1tGIs4-0004Jr-J4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Nov 2024 15:18:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGIro-0006GU-SQ; Wed, 27 Nov 2024 09:18:08 -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 1tGIrk-0006G4-0H for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2024 09:18:05 -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 1tGIri-0006Io-Ie for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2024 09:18:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=kBXINTseC7h8KZVHQ3osw2Ik5cr5BEl00/I0jtuuhgM=; b=ukSgjCrxE2vGK+EJzLYz0qWbygpgTYTzzIB6pJ5M4EW/tjPq7VKeGlc3tah9njV5gZfEi/oOc0Ahbn6ICY/KE0G470nL72nl+R8K7ZI8bu49CIdJRFW6vBnisbRNI1G9O27zJ919DM1ryn7BhxViam/QB4qNfrcROzuZfh8NZ43o1fp8i1o+5oDogGwXu5VID0xPbp+KrxDiqdyts1+Y2dVGZzWyGp1l6DYc0XwdSo+B+yFJxBkEABI3vwXNZsgB7CssPInrY0Jl6qy3PUxatVwOdcegKkEjz7R6VhtNRi6v2fRKhU5iWzgRg5Ik0JG4bB8Yvnz29IU7hJQBzfPu2g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGIri-00087Y-2d for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2024 09:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tatsu Takamaro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Nov 2024 14:18: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.173271703031149 (code B ref 74364); Wed, 27 Nov 2024 14:18:02 +0000 Original-Received: (at 74364) by debbugs.gnu.org; 27 Nov 2024 14:17:10 +0000 Original-Received: from localhost ([127.0.0.1]:32849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGIqr-00086K-ND for submit@debbugs.gnu.org; Wed, 27 Nov 2024 09:17:10 -0500 Original-Received: from mail-lj1-f177.google.com ([209.85.208.177]:55668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGIqo-00086C-VR for 74364@debbugs.gnu.org; Wed, 27 Nov 2024 09:17:08 -0500 Original-Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2ffa678ddd2so59813851fa.3 for <74364@debbugs.gnu.org>; Wed, 27 Nov 2024 06:17:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732716966; x=1733321766; darn=debbugs.gnu.org; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=kBXINTseC7h8KZVHQ3osw2Ik5cr5BEl00/I0jtuuhgM=; b=ld3c9uF9xAT+jo7fgUNBG2Te4o6+ZRRNmlitcM8U3LQeH66A/OBX5xM2Q/an+JHrXL Oy1DX+jjVyj5oFi8uZDYgZUN0FsMLCc7h2ebYCXFSPUSzVp0u2YYg9mscfMDQGHyAiv2 SC4nGtg/i28zOU7qb7t/aLOg5mG45CLRRYNRc3qlwhHUGlXs0od+U8OwFhaTaTayyd4F 0FkfzKvrAKfcESnq0EghLAer6FNLRffZsxjMS6VtFGQZM7p8FiM/P9U9rK3eSl08FNjE XA1Y14KpaTJwSEuegN4D54TMSIyErUYapIs/yeuHVEs/MAvn0CHtxhl2C9Q39O00fUY9 Z3Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732716966; x=1733321766; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=kBXINTseC7h8KZVHQ3osw2Ik5cr5BEl00/I0jtuuhgM=; b=XSquebq7XeXIyzHFhjpsm6ElDjkI/kn0n9I8vaRky566U6M0r5iO1b6T8pZ901WNxw vf/dSRawVLPGBs6mUoVJe7tIGKhmmG8AmLjw9eZ8VoXUZHsa/PWY3dZhDCHnWlgGcjfQ V8kr+60usJopu/TZ/x0CaR0ztn1ZioTqLoStc/cefobrVP5g1RhcYmqcl/wnASfc7FRN ME+DBNV+K2GLKEFSBUtzRo38/5nbJgTB1kcwHX9hNLcOEJ51g5qnc67PbvaAsT4JE/R2 Usi7gYS1aZLEyHwh12bBAO6UiI8fFZI68O2eEBzU1UbdRp522VaUw7aWlSuO/T4AtE+B LRmg== X-Gm-Message-State: AOJu0YzGykgRzqDn+FCLA9hM1X9xIsIoTrjPQn1I0mVknRNrwb1yWReA NvPH9cZQVssJGlm86s5vbT+AjhmPIBmmugPi5IxaM8sp27wUqZ2V X-Gm-Gg: ASbGncvWXggGd4cCaUvD7Tec+M96CUahjtQTLU+wYbSnxKadvNPSUSh03dEV+TECcLi NOM3DpEn353Fx1UJZ0YRVUlqeYBLhFiG+jhuzm3ey/U2hcqA8+kttmj2KhLvb0dwymwCWx7D0/V l6ZcYuIrpJKpjXjGVbBeQFGqIfIUZM4sTA9/zDGnlg0JDGhnswN3uF1UiBDyZ3md3Nr60t9Xdnv WrWmPnJHW+C5kw1HTsgrENExeP8S0CV/qsNeABAEWXcFFLPPIEzcyEbkgW9thA/CxOHcBjLG0sF xvqQtjDvcx3FHPtb3BJNvLtEeWvoRut3PO8ajfg= X-Google-Smtp-Source: AGHT+IFi395k6umLnWeXrKtY/fayYfm7NbFgsXPQltsJBC1V3Jx2GUblRXeZbD16xVm/IZJQm1I71g== X-Received: by 2002:a2e:9a0a:0:b0:2ff:c422:c52 with SMTP id 38308e7fff4ca-2ffd60ecdf5mr16551811fa.39.1732716965495; Wed, 27 Nov 2024 06:16:05 -0800 (PST) Original-Received: from [192.168.1.120] (broadband-37-110-24-126.ip.moscow.rt.ru. [37.110.24.126]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ffab3c240esm19224351fa.107.2024.11.27.06.16.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Nov 2024 06:16:04 -0800 (PST) Content-Language: ru In-Reply-To: <87mshl4z0n.fsf@ledu-giraud.fr> 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:296032 Archived-At: This is a multi-part message in MIME format. --------------QY9zUc5k8EdwFTqkXonTi0NC Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I never use (in other situations and letters) the Reply to all button, so I may sometimes forget to press it instead of a usual answer. Sorry. But I'm trying ^_^ >>Saving TUTORIAL is a strange thing to do. What is the purpose? I suppose there are two main reasons: 1. Correcting mistakes. Eg. I saw "vv" on a new line where it was not supposed to be. Or there was a mistake in a "homework" section in the command, I don't remember where exectly. 2. Making notes for oneself. To explain something better (more clear to an exact learner). *3. Or maybe even to argue. If I see some information which I completely disagree with, but I don't want to disturb the support team or waste time, I could just write a couple of sentences right in the Tutorial, kindof a comment, - and feel better ^_^ вт, 26.11.2024 21:43, Manuel Giraud пишет: > 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. --------------QY9zUc5k8EdwFTqkXonTi0NC Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

I never use (in other situations and letters) the Reply to all button, so I may sometimes forget to press it instead of a usual answer. Sorry. But I'm trying ^_^

>>Saving TUTORIAL is a strange thing to do. What is the purpose?

I suppose there are two main reasons:

1. Correcting mistakes. Eg. I saw "vv" on a new line where it was not supposed to be. Or there was a mistake in a "homework" section in the command, I don't remember where exectly.

2. Making notes for oneself. To explain something better (more clear to an exact learner).

*3. Or maybe even to argue. If I see some information which I completely disagree with, but I don't want to disturb the support team or waste time, I could just write a couple of sentences right in the Tutorial, kindof a comment, - and feel better ^_^


вт, 26.11.2024 21:43, Manuel Giraud пишет:
Eli Zaretskii <eliz@gnu.org> 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" <bug-gnu-emacs@gnu.org>

Tatsu Takamaro <tatsu.takamaro@gmail.com> 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.
--------------QY9zUc5k8EdwFTqkXonTi0NC--