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: Mon, 25 Nov 2024 11:21:45 +0300 Message-ID: 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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------Vy0OxqYaYZSuqRMiCfwUIngV" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24464"; 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 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 25 09:23:24 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 1tFUNO-0006EI-Pl for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Nov 2024 09:23:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFUN6-0004Yw-7v; Mon, 25 Nov 2024 03:23:04 -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 1tFUN4-0004YY-7N for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 03:23:02 -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 1tFUN3-00019J-T1 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 03:23:01 -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=0PKPWB9z1pi7zNsjCXXhdRCRlD9vkPnmZ4uPwoO24eU=; b=YYU2XkvXFRRJnYZtgL20fSgZ2Tx+qsk+zsdVdHwcsW6JjCMOrgo6+zpadNnnq5NR0UO7BnN4DKi2LHr+D2SehslpXcqw8rQORgFmuq58915Pwo9e/V0q5EmpWlrKPQjrUGMd79FA84zKQ7YOFO29SRnPaYIuvbn51GemdlXfmB2AN7xFIr6OTMky9eT4tXHHi8K/GBQJt0Rprlh13YKfG/c5guVsWFmfXxKrd0SK0mYMtI7tGrka307yY0nmyigxDfFJP4T96EEpX06WZICa8zelQu/QzpFqtOqGLBmNfZ5hYn6sXXDPX8NBRW+BrTs/v05hE+9GoAvMgempLwB2cQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFUN3-0002Fr-OO for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 03:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tatsu Takamaro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Nov 2024 08:23:01 +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.17325229728649 (code B ref 74364); Mon, 25 Nov 2024 08:23:01 +0000 Original-Received: (at 74364) by debbugs.gnu.org; 25 Nov 2024 08:22:52 +0000 Original-Received: from localhost ([127.0.0.1]:37757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFUMt-0002FQ-KR for submit@debbugs.gnu.org; Mon, 25 Nov 2024 03:22:52 -0500 Original-Received: from mail-lj1-f176.google.com ([209.85.208.176]:59413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFUMs-0002FJ-GY for 74364@debbugs.gnu.org; Mon, 25 Nov 2024 03:22:51 -0500 Original-Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2ffa12ad18cso45242231fa.2 for <74364@debbugs.gnu.org>; Mon, 25 Nov 2024 00:22:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732522909; x=1733127709; 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=0PKPWB9z1pi7zNsjCXXhdRCRlD9vkPnmZ4uPwoO24eU=; b=A6ZltioJFyDbazSbHkRQ3OmduiSmElpmQiihI/niyNMJspd4c5oj4ZGxN/KCwT63Hf zIM1FYEcGuEyNMQMi1pMd6xwL3UYc5l7lknnwyJn2NvCjQ/ZltLFrNX6jVMNZqiwT+wc gXJGRXvk7dUimuZkuNxOUtmTLgOsH9Y/h3di7Crg2D5FO4dYa53hsW85NWHAYShIduZQ tT410A7ERZ2lFKza9rGQ+Y6pIS5IIxSj3DxacBKNVaKlqXBjREQfDhH0u99rpOaLhHjC 2BrALVQFRJgfXnUD+f3unSjKWlV4VIc9IqtyTy8gIP1OAASL8BvblHYPFHby5tsK0lzv 5iiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732522909; x=1733127709; 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=0PKPWB9z1pi7zNsjCXXhdRCRlD9vkPnmZ4uPwoO24eU=; b=XYfJazRLnz/A0y1Jl8PhMAsQzG0ssPFZOFqfhnJFagOLRwuvbcummubM3189Lqd0xl X0KPGuI8tLplLdcPatlFc95HO+heYbwouq4G2pGxHinar7d03GfvZiZvV7qbZuwVy6KY fzezMvbEC4zO6bdrCmMLDDKsid1T6mkEwXnO3y5egRE4C7/yFL0z+DmuCgyt780WyKY7 i4A6fppGQsntCvRUCX9qztK8sdCxHv6Igcq3+Peoqel3KVNGK2eSSs34r8OfhLhPBpcc TMc+WTAdV8qU0x08CnqP/EUxHZuZipgZWheinqxJq1zeB/KHcW2QhHGsTtLMLtMO1O8+ 69Fw== X-Gm-Message-State: AOJu0YyM+nKAW+4LglvDqbHyN1YLvMqRLOrmN0w9yQa1yLyBG0ObQiW8 sWwHrqcDU/nDUcIE574BeRVD4bYOE80whtNe1MHyv8G6YY2sML9M X-Gm-Gg: ASbGncuNv6fo9/ydvbnPXY/AmwjbN6SqQCzyBNrzHWAHFcocKSfZKrlSTxGY+/uUgVY qg+/Pnpb4aRniSr82w9lMw5K4s9ChynfFLdkK8K7ocauK5XWNXyFdS74e585Wv/Ss8hMLK4GAqC 9TObM9FzRQLYrJH6utPazm9nxmt/FvmpbS5fHBnZoac22vUiLMlbE+6unIbOUCykr+yo+1bXdc+ nVbulhboa4jFBpQ6b0kklhkV4b140hBgLNOA49Aqy7WQEjh3oqpfNEjQQj5cK/IE90aZ9wZ+pgv RFz/fYHE25WO6r/oqgs100eC8pQ4FoOkrEbTANA= X-Google-Smtp-Source: AGHT+IEB69B8uCnjKPoytRd2G3nY7FXyWO5CN2DzsW2E56UXOOrFdmqw52O15U8dnGLcU2bMZO49AQ== X-Received: by 2002:a2e:a9a0:0:b0:2ff:c7ad:97a9 with SMTP id 38308e7fff4ca-2ffc7ad9a4bmr3754541fa.33.1732522908968; Mon, 25 Nov 2024 00:21:48 -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-2ffb91cc6afsm6830871fa.46.2024.11.25.00.21.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Nov 2024 00:21:46 -0800 (PST) Content-Language: ru In-Reply-To: <87wmgu8brh.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:295937 Archived-At: This is a multi-part message in MIME format. --------------Vy0OxqYaYZSuqRMiCfwUIngV Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Well, it's not a big problem though. But I can describe my actions as an algorithm for you to make it easier to reproduce the bug: 1. I start Emacs, it starts with my minor custom changes that I added to .emacs file. 2. Open an Emacs Tutorial with a mouse click and answer Yes to load my remembered position. 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). 5. Minibuffer shows me message "Wrote c:\...path...TUTORIAL" 6. I Press C-x-c to exit. It shows "Save your position in the tutorial?". Answer Yes (y). 7. Minibuffer shows "Wrong type argument: stringp, nil". And doesn't quit! 8. Then I press C-x-c again, but now I choose No (n). And Emacs exits. Tutorial file is not saved (I can see it by opening it again and check)! So, here is how it is going on. But note, that if I skip the 4-th item (don't press C-x-s to save) and press C-x-c right after changing the Tutorial (addding a new line), Emacs quits normally and the Tutorial file is being saved! So, I guess it is a C-x-s function that triggers problem. Hope it will help you cathing the bug. сб, 23.11.2024 13:50, Manuel Giraud пишет: > Tatsu Takamaro writes: > >> In GNU Emacs 29.4 (build 2, x86_64-w64-mingw32) of 2024-07-05 built on >>  AVALON >> Windowing system distributor 'Microsoft Corp.', version 10.0.19045 >> System Description: Microsoft Windows 10 Pro (v10.0.2009.19045.5131) > I just tried to reproduce it with Emacs 29.4 (not on windows though) and > I was not able to get the same error as you. > > What is strange is that there is only one call to `file-name-extension' > in `tutorial--saved-file' and at this point, as you've seen, > `tutorial--lang' is set to something meaningful (not nil). --------------Vy0OxqYaYZSuqRMiCfwUIngV Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Well, it's not a big problem though. But I can describe my actions as an algorithm for you to make it easier to reproduce the bug:

1. I start Emacs, it starts with my minor custom changes that I added to .emacs file.

2. Open an Emacs Tutorial with a mouse click and answer Yes to load my remembered position.

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).

5. Minibuffer shows me message "Wrote c:\...path...TUTORIAL"

6. I Press C-x-c to exit. It shows "Save your position in the tutorial?". Answer Yes (y).

7. Minibuffer shows "Wrong type argument: stringp, nil". And doesn't quit!

8. Then I press C-x-c again, but now I choose No (n). And Emacs exits. Tutorial file is not saved (I can see it by opening it again and check)!

So, here is how it is going on. But note, that if I skip the 4-th item (don't press C-x-s to save) and press C-x-c right after changing the Tutorial (addding a new line), Emacs quits normally and the Tutorial file is being saved! So, I guess it is a C-x-s function that triggers problem.

Hope it will help you cathing the bug.

сб, 23.11.2024 13:50, Manuel Giraud пишет:
Tatsu Takamaro <tatsu.takamaro@gmail.com> writes:

In GNU Emacs 29.4 (build 2, x86_64-w64-mingw32) of 2024-07-05 built on
 AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.19045
System Description: Microsoft Windows 10 Pro (v10.0.2009.19045.5131)
I just tried to reproduce it with Emacs 29.4 (not on windows though) and
I was not able to get the same error as you.

What is strange is that there is only one call to `file-name-extension'
in `tutorial--saved-file' and at this point, as you've seen,
`tutorial--lang' is set to something meaningful (not nil).
--------------Vy0OxqYaYZSuqRMiCfwUIngV--