From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: dabbrev-expand should escape kbd macros, shouldn't it? Date: Fri, 19 Jul 2019 01:22:04 +0300 Organization: LINKOV.NET Message-ID: <87a7dbnfub.fsf@mail.linkov.net> References: <4ea4470ad1919b2f1915d6ec77f7d2b8.squirrel@dancol.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="32638"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Andreas Schwab , emacs-devel@gnu.org To: "Daniel Colascione" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 19 00:36:41 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 1hoF0y-0008IO-RS for ged-emacs-devel@m.gmane.org; Fri, 19 Jul 2019 00:36:41 +0200 Original-Received: from localhost ([::1]:41100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoF0x-0008O8-Su for ged-emacs-devel@m.gmane.org; Thu, 18 Jul 2019 18:36:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56781) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoF0u-0008Nb-M1 for emacs-devel@gnu.org; Thu, 18 Jul 2019 18:36:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoF0s-0000xv-Lt for emacs-devel@gnu.org; Thu, 18 Jul 2019 18:36:36 -0400 Original-Received: from anteater.elm.relay.mailchannels.net ([23.83.212.3]:5121) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hoF0q-0000uH-KK for emacs-devel@gnu.org; Thu, 18 Jul 2019 18:36:34 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 645248C10A7; Thu, 18 Jul 2019 22:36:29 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a40.g.dreamhost.com (100-96-1-113.trex.outbound.svc.cluster.local [100.96.1.113]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id B22528C0999; Thu, 18 Jul 2019 22:36:28 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a40.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Thu, 18 Jul 2019 22:36:29 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Spot-Dime: 749ed0522a70066b_1563489389072_1095826147 X-MC-Loop-Signature: 1563489389072:1422898256 X-MC-Ingress-Time: 1563489389072 Original-Received: from pdx1-sub0-mail-a40.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a40.g.dreamhost.com (Postfix) with ESMTP id 358A484089; Thu, 18 Jul 2019 15:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=BIlu63 SoLYohHi6p3MO0XAGd/to=; b=m2VmnJMbssajqr90c+OytG86hUECQZR7eHvtK8 LM0RwkI/OLYrrQtlaCKItVabwS7xOAvO5Ggy5JNSK6vR2Q8sCEac4E1XbRIQTPdV Nz5Sw6sYG2imBNU5rwEZUGYvL+tHoaOoi+EKdRrK1+9sJ4vTGVJU57M7PFNx0B/n CAJEg= Original-Received: from mail.jurta.org (m91-129-110-135.cust.tele2.ee [91.129.110.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a40.g.dreamhost.com (Postfix) with ESMTPSA id E30E184080; Thu, 18 Jul 2019 15:36:22 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a40 In-Reply-To: (Daniel Colascione's message of "Wed, 17 Jul 2019 11:30:54 -0700") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrieeigddufecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtgfesthekredttderjeenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdduuddtrddufeehnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddutddrudefhedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegurghntgholhesuggrnhgtohhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.212.3 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:238692 Archived-At: > Most of the time, recorded keystrokes in macros aren't that sensitive > to _temporal_ and _interbuffer_ context, and dabbrev is, so I think we > should make an exception for dabbrev. Recently I had the same thoughts when a kbd macro recorded the paste keystroke and not the text it pasted (as a sequence of self-inserting keys). I know that it records just plain keystrokes, but in that context the result was unexpected. However, I don't think that pasting should be an exception. Maybe keyboard macros should provide a special macro-escap= e feature (like there is a macro-query feature available via =E2=80=98C-x q= =E2=80=99) to ask whether to record the keystroke literally or to record the effect of the command. This ambiguity demonstrates why it's impossible to implement a package that would convert keyboard macros to programs - because there are too many logical levels of how the result of every keystroke can be interpret= ed depending on expectancy even of the same user in different contexts.