From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#31211: 27.0.50; Pruning of command-history in command-execute is off by one Date: Wed, 18 Apr 2018 19:36:36 +0100 Message-ID: <87sh7s1hvv.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1524076510 3425 195.159.176.226 (18 Apr 2018 18:35:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2018 18:35:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 31211@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 18 20:35:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8rv7-0000oD-5q for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 20:35:05 +0200 Original-Received: from localhost ([::1]:44059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8rxD-0006l1-GB for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 14:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8rx6-0006kK-8V for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:37:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8rx0-0002YB-HT for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:37:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51666) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8rx0-0002Y6-BO for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f8rx0-0006gS-5I for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Apr 2018 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31211 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152407661425678 (code B ref -1); Wed, 18 Apr 2018 18:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Apr 2018 18:36:54 +0000 Original-Received: from localhost ([127.0.0.1]:59563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8rws-0006g6-FA for submit@debbugs.gnu.org; Wed, 18 Apr 2018 14:36:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8rwq-0006fq-6E for submit@debbugs.gnu.org; Wed, 18 Apr 2018 14:36:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8rwk-0002Oj-4M for submit@debbugs.gnu.org; Wed, 18 Apr 2018 14:36:46 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58977) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f8rwk-0002OM-0Q for submit@debbugs.gnu.org; Wed, 18 Apr 2018 14:36:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8rwh-0006ef-AP for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:36:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8rwe-0002JO-85 for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:36:43 -0400 Original-Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:39083) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8rwd-0002I2-VK for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:36:40 -0400 Original-Received: by mail-wr0-x234.google.com with SMTP id q6-v6so7418358wrd.6 for ; Wed, 18 Apr 2018 11:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:mail-followup-to:date:message-id:user-agent :mime-version; bh=VdAW3nzuDpZkPht8xwcU+KulEzUT33aFuf61U2BWvUw=; b=ucn0vTjo/TUXmr+Oqz5HmOnQLbomwq2fVLLikqtzhR/TNnWTqgTCZXjNoqsKGtrNef iUe73h2OfykNMbC/aU04D+kVO8FGxEM8Vf3ZGNK8DydEzBNUbxrhP7GR3eegapsWH3eS G4cETnaCx8Fmy3OlCOFEFJihu/SZ/abrmk+QLAhNhZjbvvPhwT0cH7SY05vQJJYFzlk9 MmRa7iUGSkoBe5Mk3syXoLrKnrjBjVLN7JFYaVQXin1h2VN0NRooMb8SJsBPUmUOoarV +2VvzTwlE8oM6Kkacu4TAmXCPREgWnvGDTKJif6Vj4HfZufJQPAHramjlM9fNejLNRW1 lQ8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:mail-followup-to:date:message-id :user-agent:mime-version; bh=VdAW3nzuDpZkPht8xwcU+KulEzUT33aFuf61U2BWvUw=; b=nNBlck1/A+G0gEfeLZBWBUl+BbeHV6cviXhJa2KyltOjNnAVwzgxGy07Nzi8z3CUjd ZXNn4GIV9mnL8NyheRacjbTnAvAwGFgzD2s+BJXKQiOWpbp3Vh0wJ3bRKYppYvxgKpbj i1kpnq0gpSb/0KurZqaRMLRIBWbkYHS+nwl1PVf1zSb1Pes7MkSZL2ibkIcYbcyuRwfE GowgyU/5XXjT8MoksZ6JD9htEnY5hicR02YrDlj14AmTwitlRbUDgTBqh39my2jK//TB 8LnxwFpje1wlO/CcK9+LH+sZCC8w+ThRkt/bOLDehm53vQaEhVe/HaJbpB5X9e34130H SVxw== X-Gm-Message-State: ALQs6tDdEhA46RZshzVM3VVxHnrv/QwlhofmM91Sf2qLy3HzMjSmWTNQ k4FIpsbuMzkmZDm0alGIsav48N4G X-Google-Smtp-Source: AIpwx4+4FLjOX1qWlc9TjMxaqUwu0axvr/BGsGQPb9CJsSz0xvOuVDXBVxlLvoj79aDl8Pbgku6WUQ== X-Received: by 10.80.177.25 with SMTP id k25mr4723087edd.217.1524076598079; Wed, 18 Apr 2018 11:36:38 -0700 (PDT) Original-Received: from localhost ([213.233.149.32]) by smtp.gmail.com with ESMTPSA id k8sm1159371edn.71.2018.04.18.11.36.37 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 11:36:37 -0700 (PDT) Mail-Followup-To: bug-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145580 Archived-At: Evaluating the following: (let ((history-length 1)) (dotimes (_ 2) (command-execute #'ignore t)) (length command-history)) gives 2, instead of the expected 1. Patch addressing this to follow. -- Basil In GNU Emacs 27.0.50 (build 6, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2018-04-18 built on thunk Repository revision: 5dff4905d73d0d42447ff4b114d1af726a689c6a Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Debian GNU/Linux buster/sid