From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Liu Hui Newsgroups: gmane.emacs.bugs Subject: bug#66700: 30.0.50; Some history is missing with multiple eshell buffers Date: Mon, 23 Oct 2023 20:14:27 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27480"; mail-complaints-to="usenet@ciao.gmane.io" To: 66700@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 23 14:15:53 2023 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 1qutqa-00073V-UM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Oct 2023 14:15:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qutqL-00009P-PB; Mon, 23 Oct 2023 08:15:37 -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 1qutqI-00008W-A3 for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 08:15:36 -0400 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 1qutqI-0004xL-0A for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 08:15:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qutqk-0006hQ-DM for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 08:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Liu Hui Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Oct 2023 12:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66700 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169806331925687 (code B ref -1); Mon, 23 Oct 2023 12:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Oct 2023 12:15:19 +0000 Original-Received: from localhost ([127.0.0.1]:49261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qutq3-0006gF-5P for submit@debbugs.gnu.org; Mon, 23 Oct 2023 08:15:19 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:51176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qutpz-0006fu-Bv for submit@debbugs.gnu.org; Mon, 23 Oct 2023 08:15:17 -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 1qutpQ-0008Pd-TN for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 08:14:40 -0400 Original-Received: from mail-vk1-xa32.google.com ([2607:f8b0:4864:20::a32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qutpP-0004UF-GE for bug-gnu-emacs@gnu.org; Mon, 23 Oct 2023 08:14:40 -0400 Original-Received: by mail-vk1-xa32.google.com with SMTP id 71dfb90a1353d-49d39f07066so1425318e0c.0 for ; Mon, 23 Oct 2023 05:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698063278; x=1698668078; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=8g/e0ufrKXSQKTzOS/NbDgWfdPP9o/txSjOInJgp7Cw=; b=BHe+jOuLr+O78ZLPnN+cDsOklae0ieFJuHJ0kowRhPK1uxRRqKg0mQqGIl5af4RQ3s D/rQh2LsLcvEzYnYoYjwHgvXsomPwdSqL1xc5yLHv8IYyDm9ipv6jMUa500UyxO6s6p2 dCFidNcTrwDEy6oP7qU8WbAePDSnq4J7SvJxmZeIluZG5L9y+DH00nkP5iUPnrBpu//N Su0CnOEGs47fPptGRtfi1HxqqH7QqgdPqUhW/SAMgYQG1cknDV0MdrMt67gDSXhMYUBi f9flIykhKQEYz8gosr99MaPmapqgTu7AK/e7sniY2Fg6YzhqgfPhwjHJHXFkiyRNx43M CJLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698063278; x=1698668078; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8g/e0ufrKXSQKTzOS/NbDgWfdPP9o/txSjOInJgp7Cw=; b=fjEJqberMG8b4qh+tdvyrkqKi61LMhAwho+YBLdWH/aiVyVUrR0o2+0auwQXnyv+Bp YXmPD2rtqjuOchc4dEcgG0R5ol8Jmad0Be/YM1v9hxGfxgj+jkaVcbvTUUVWO879rx7R 2Vdk+I286iSNnwhimIPeL0ueUb/9QvHiUm+u0hWCePROi6ZT34FoSIN7P7zO+uAvtsz5 ZuQrivdZuKLAeXuhT1ZGPVSPjuVvH+WJQ+NfC56m2WzyVSUHHDTVsxMgVqQmi+2cOMK0 zPs/ogUeJY3oD5GYNJiGiWITtIp9h5fMUQJqPDyp/1ERhwV5JATM6kSRS2fZIPoQildi 2vxA== X-Gm-Message-State: AOJu0YyFd8JR9FFvGbTKlChizQ9vxyYOZSyoswxe/4rkLymr8FibC8Az 6C/K/QX6sxPbzpV1QbmrLHS4ScA4yG4XdJzRmmzVz3hoJkk= X-Google-Smtp-Source: AGHT+IES1UCLvu+PHwgbEScoIrLnj1CHYEZo4Bq5teLEjN1dJuUObr9Tbbxocj49DBiTmpqKGWte4QxWE654i8lDYvU= X-Received: by 2002:a05:6122:ca8:b0:496:248e:43fc with SMTP id ba40-20020a0561220ca800b00496248e43fcmr9138913vkb.8.1698063278071; Mon, 23 Oct 2023 05:14:38 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::a32; envelope-from=liuhui1610@gmail.com; helo=mail-vk1-xa32.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:273013 Archived-At: Hi, Eshell saves history by default when quitting the buffer or emacs, but some history is missing when there are multiple eshell buffers. For example, 1. emacs -Q 2. M-x eshell, and type foo 3. C-u M-x eshell, and type bar 4. quit emacs I would expect both commands are saved, but in fact only one command is saved in the file eshell-history-file-name. I think the reason is the history file is always overwritten when an eshell buffer tries to save the history, so maybe eshell should save commands by appending to the file? Best -- Liu Hui