From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Daniel Colascione" Newsgroups: gmane.emacs.devel Subject: dabbrev-expand should escape kbd macros, shouldn't it? Date: Wed, 17 Jul 2019 08:13:05 -0700 Message-ID: <4ea4470ad1919b2f1915d6ec77f7d2b8.squirrel@dancol.org> Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9408"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: SquirrelMail/1.4.23 [SVN] To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 17 17:13:20 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnlcM-0002Id-Nr for ged-emacs-devel@m.gmane.org; Wed, 17 Jul 2019 17:13:20 +0200 Original-Received: from localhost ([::1]:58366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnlcL-0004hp-9E for ged-emacs-devel@m.gmane.org; Wed, 17 Jul 2019 11:13:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55277) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnlcI-0004h7-Qe for emacs-devel@gnu.org; Wed, 17 Jul 2019 11:13:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnlcH-0003jF-VW for emacs-devel@gnu.org; Wed, 17 Jul 2019 11:13:14 -0400 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:56286) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnlcH-0003dv-Dj for emacs-devel@gnu.org; Wed, 17 Jul 2019 11:13:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:To:From:Subject:Date:Message-ID; bh=lxui1ZSVYnnO8jZ38FgPQj6aSwEbHAmfwEsdtuGsjSA=; b=AUmHGjAtWz+Yw1XyfOt4EBRYPH6krGBaT72Rg/mo60+557uxotogZFkVMigRFqGDtHokvgYd7iZC8AjmiMeKhbP2AILtg2cdMRRxv0vvP1klToVn0yvLJjlh/FRrZIy2WYkzpwMdkONdDXnlwReVbyGXYepBvfuS/3E155B1g9sftK1VQzgtO1pu+IVMP5eOeTKgvGOoLtr+zLpiVPXIZE7nAK1eCzyQEJFRYIcQOTfcLnTtC53bH0mDjU5LQFGWAb4HxOlR6A29WVC800ljjQSC1noBOnQ/VQRx4Sp7+kPUcz/1S+vfaU+9XaZXvdl5DYa8QE0nHCQpN45hhgaC+w==; Original-Received: from localhost ([127.0.0.1] helo=dancol.org) by dancol.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnlc9-0005qa-D7 for emacs-devel@gnu.org; Wed, 17 Jul 2019 08:13:05 -0700 Original-Received: from 127.0.0.1 (SquirrelMail authenticated user dancol) by dancol.org with HTTP; Wed, 17 Jul 2019 08:13:05 -0700 X-Priority: 3 (Normal) Importance: Normal X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238616 Archived-At: Right now, if you record a kbd macro and hit M-/, the act of hitting M-/ is recorded like any other command in the kbd macro. On replay, we'll run dabbrev-expand. The problem is that dabbrev-expand produces radically different results depending on buffer context, making macro replay unpredictable. Should the *result* of dabbrev-expand just get put into the kbd macro instead?