From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Distinguish between regional undo and undo to the beginning in undo-equiv-table Date: Thu, 11 Mar 2021 17:41:01 -0500 Message-ID: References: <195AF8D0-1BFD-419D-88A1-69EA1FEED4D6@gmail.com> <60DCC8C7-CCA4-4113-88BE-B81A395C494D@gmail.com> <4890CDDF-E0DD-464B-9268-AD404015129D@gmail.com> <06A32454-8DB2-492C-9A69-A825AD5B66A2@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38440"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 11 23:42:01 2021 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 1lKU0H-0009rp-Ny for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Mar 2021 23:42:01 +0100 Original-Received: from localhost ([::1]:45438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKU0G-0007RL-RK for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Mar 2021 17:42:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKTzQ-0006mz-8z for emacs-devel@gnu.org; Thu, 11 Mar 2021 17:41:08 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:36609) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKTzN-0006yW-93 for emacs-devel@gnu.org; Thu, 11 Mar 2021 17:41:07 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1205E10023D; Thu, 11 Mar 2021 17:41:04 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C57D31001D2; Thu, 11 Mar 2021 17:41:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1615502462; bh=g7SMe0lse+GpHnzhFZ00EtVFuo/uEXljF/tRzHoxgBE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=LkNefdMboIl0fjLq+TVFe9QQ6WqY5+PZk82t5qVYv8EOiBpVhJ5u/RFk4pMvwQ1fu oCvCcN/bSTJ/xhwBDiuwA2plXOWim6QEvPc6gnGELIadmuIylB2RWSLXTEusSqHWhk /plZX1Oh3orKN+szTAHEmP/PNSiLB2MgXH9FbubVy/JFriCjmvL4eeOQwtbFAZ6CJV o/bAS9pFaSZ3o2cIzhn3EQZcarthLdGJAEx4G2ejovliu9DlZ87VmVMg8N/W53tRzP 7v9YSpMbGtPrYZgtPUonGNUoe5tiODKjf/eoVmAY4UT30yMygVX2ZhRKKGhlnfb8ez Vudbp3NM+mDEg== Original-Received: from alfajor (unknown [216.154.43.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9946C1202CE; Thu, 11 Mar 2021 17:41:02 -0500 (EST) In-Reply-To: <06A32454-8DB2-492C-9A69-A825AD5B66A2@gmail.com> (Yuan Fu's message of "Thu, 4 Mar 2021 11:18:30 -0500") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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.23 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" Xref: news.gmane.io gmane.emacs.devel:266369 Archived-At: > Ok, I looked into it in detail, undo-equiv-table is also used to check if > the previous command is really an undo, alongside with checking > last-command. So the undo record has to map to something, I decide to map= it > to =E2=80=98empty unless there is already a mapping for the record. Here = is the > (standalone) final draft. Please have a look. > > Yuan > > [2. text/x-diff; undo-in-region-3.patch]... Thanks, pushed to `master`. Stefan