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:52:17 +0100 Message-ID: <87d0yw1h5q.fsf@tcd.ie> References: <87sh7s1hvv.fsf@tcd.ie> <87lgdk1hk6.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1524077469 3686 195.159.176.226 (18 Apr 2018 18:51:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2018 18:51:09 +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:51:05 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 1f8sAb-0000qx-6t for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 20:51:05 +0200 Original-Received: from localhost ([::1]:44767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8sCg-0002aw-74 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 14:53:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8sCZ-0002aj-OD for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:53:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8sCU-0001LF-U7 for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:53:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51681) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8sCU-0001L1-M6 for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f8sCU-0000Yz-6y for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:53: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:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31211 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 31211-submit@debbugs.gnu.org id=B31211.15240775472124 (code B ref 31211); Wed, 18 Apr 2018 18:53:02 +0000 Original-Received: (at 31211) by debbugs.gnu.org; 18 Apr 2018 18:52:27 +0000 Original-Received: from localhost ([127.0.0.1]:59578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8sBu-0000YC-LM for submit@debbugs.gnu.org; Wed, 18 Apr 2018 14:52:26 -0400 Original-Received: from mail-wr0-f171.google.com ([209.85.128.171]:41442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8sBt-0000Xz-Bq for 31211@debbugs.gnu.org; Wed, 18 Apr 2018 14:52:25 -0400 Original-Received: by mail-wr0-f171.google.com with SMTP id v24-v6so7513103wra.8 for <31211@debbugs.gnu.org>; Wed, 18 Apr 2018 11:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version; bh=TnsAuElpp+qFyO/OcUVPCCjSXvkr+c0aOOsK5PuoZ8U=; b=KLmD1M8TY5fc8i6R1of9ui6wP8w0/l14WbuVL8jwz63IRd5ljaXeeU9WvHHG75ttwh 46/NnrR+qLI36ZaGuwunbxm/FO0BXFg52Hqa+Ho2Ic9cJvqf6pH5sb1BFmk6bHqYcxHC c2ajNDR+Bcx9c+5bioqN1EyyMp5ZOLZ6DA1gtntI4Vnv5P8CBERAvrpG7fNOhklHxESn EetmXdr2o9xeMCvjPSoYgtMe/6DsXY4n/3tYQioNJA76lUb8f9Q5E7NlDcHyYXVdcIA0 lLpAbALnms8F/Y2dfzsB224VVXoHg5XISgs538T+Rhx/C4DvSIINk2F1mGO88G0th1yg exWg== 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:references:mail-followup-to:date :in-reply-to:message-id:user-agent:mime-version; bh=TnsAuElpp+qFyO/OcUVPCCjSXvkr+c0aOOsK5PuoZ8U=; b=OtRAR1JsgoJujIWrkLbYyit1WXcONbykvFdUcvVv+QlA05j/pQi/jhJw5T5Lk0OMYy fGJfwl+CXbV3I2KpmjxRHnUSuMCUZATTH2QE7qU983C3LTPCddsNoqigpem9VSH+DHGO MB9YBv5MxQi4K+R/nalnqlVOuubWeaDuXkQv1uzh4ibympLvkZlNdrh5SBFu1CXBNOrU AkuuOHDCiCuHZzaj3CRmTkW0DljDAyNM2HyJcisD2d5TrfVHvfwtwR2wrS2wwTxAsKWw 7WUedhEv0RDnXxBri7/OizjTFANFUFLOwcCkFEhpbnYN1kdTUY13sTYOrEoOBm48MmRV EVYQ== X-Gm-Message-State: ALQs6tCv15QV2KEabwMe+cvMet2LxYoyBLk5vFI+dEWyylqoXUw3IyIL KmSRXqO4uQJ2mPVjuTiXEvMSnI8v X-Google-Smtp-Source: AIpwx4+eqf1XXZ4ZeHQgKf3cZyOBJNnDSmMmdtgie0SXo0wIJCol1kxi7jcD8zD5o8EyjwzdR1vodA== X-Received: by 10.80.160.198 with SMTP id 64mr4807316edo.158.1524077539362; Wed, 18 Apr 2018 11:52:19 -0700 (PDT) Original-Received: from localhost ([213.233.149.10]) by smtp.gmail.com with ESMTPSA id v15sm1329419eda.90.2018.04.18.11.52.18 for <31211@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 11:52:18 -0700 (PDT) Mail-Followup-To: 31211@debbugs.gnu.org In-Reply-To: <87lgdk1hk6.fsf@tcd.ie> (Basil L. Contovounesios's message of "Wed, 18 Apr 2018 19:43:37 +0100") 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:145582 Archived-At: "Basil L. Contovounesios" writes: > The second suggests some minor refactors/simplifications in surrounding > functions. P.S. I see that, with kill-append-merge-undo enabled, kill-append removes the next undo boundary it finds in buffer-undo-list. This search for the next undo boundary, however, starts with the second element of buffer-undo-list. Is it reasonable to expect that the first element of buffer-undo-list is never nil here? -- Basil