From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.devel Subject: Re: ielm automatic saving of history -- bug 67000 Date: Thu, 31 Oct 2024 16:12:05 +0530 (IST) Message-ID: <20241031.161205.384163890653085993.enometh@meer.net> References: <865xpsr3b0.fsf@gnu.org> <20241016.143359.2067752235306528118.enometh@meer.net> <86jze7q4io.fsf@gnu.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16180"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: eliz@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 31 11:43:07 2024 Return-path: Envelope-to: ged-emacs-devel@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 1t6Sdv-00041L-10 for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Oct 2024 11:43:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6Sd9-0004mO-Sf; Thu, 31 Oct 2024 06:42:19 -0400 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 1t6Sd8-0004mE-D9 for emacs-devel@gnu.org; Thu, 31 Oct 2024 06:42:18 -0400 Original-Received: from smtp0.ctinetworks.com ([205.166.61.207]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6Sd6-00087U-RB; Thu, 31 Oct 2024 06:42:18 -0400 X-ctinetworks-Watermark: 1731235331.40656@3gOcaRoMtUPaQdXohuEw6A X-ctinetworks-Envelope-From: enometh@meer.net X-ctinetworks-VirusCheck: Found to be clean X-ctinetworks-Message-ID: 5800799E8.A1D76 Original-Received: from localhost (unknown [117.254.37.96]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: enometh@meer.net) by smtp0.ctinetworks.com (Postfix) with ESMTPSA id 5800799E8; Thu, 31 Oct 2024 06:42:09 -0400 (EDT) In-Reply-To: <86jze7q4io.fsf@gnu.org> X-Mailer: Mew version 6.9 on Emacs 31.0.50 Received-SPF: pass client-ip=205.166.61.207; envelope-from=enometh@meer.net; helo=smtp0.ctinetworks.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324962 Archived-At: * Eli Zaretskii <86jze7q4io.fsf@gnu.org> Wrote on Wed, 16 Oct 2024 21:36:15 +0300 >> the ielm-history file from which the comint-input-ring is initalized > > That's not what bothers me. What bothers me is the way we save the > history of the ielm command the first time, when they are not taken > from a file, but from the user input. > >> Here I am prompted with the coding system warning . If i go ahead >> and qchoose utf-8-unix, it goes ahead and saves it. I can compare >> 2.txt.binary and 2.txt.out to see that utf-8-unix has not resulted >> in any data loss. Hence all the claims in my previous message. > > The data loss I had in mind is not in this case. I still think there is some fishy behaviour when raw-text-unix is used by as the initial (unspecified) encoding. The message which the prompt presents (that utf-8-unix cannot be used to save etc.) is surely incorrect, since it goes ahead and saves it anyway as utf-8-unix. BTW did you have a chance to consider the patch I mailed on oct-17-2024? -- Regards, madhu