From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#24992: 25.1; Using mouse, can put empty keyboard macro in macro ring Date: Thu, 07 Dec 2017 22:01:28 -0500 Message-ID: <877etxgbxz.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512702129 9420 195.159.176.226 (8 Dec 2017 03:02:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Dec 2017 03:02:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: 24992@debbugs.gnu.org To: Gemini Lasswell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 08 04:02:04 2017 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 1eN8vM-0002IZ-85 for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Dec 2017 04:02:04 +0100 Original-Received: from localhost ([::1]:35373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN8vT-00082U-KL for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Dec 2017 22:02:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN8vN-0007wN-C9 for bug-gnu-emacs@gnu.org; Thu, 07 Dec 2017 22:02:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN8vK-0004Xa-AK for bug-gnu-emacs@gnu.org; Thu, 07 Dec 2017 22:02:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN8vK-0004XW-5I for bug-gnu-emacs@gnu.org; Thu, 07 Dec 2017 22:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eN8vJ-0005fa-OV for bug-gnu-emacs@gnu.org; Thu, 07 Dec 2017 22:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Dec 2017 03:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24992 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24992-submit@debbugs.gnu.org id=B24992.151270209921764 (code B ref 24992); Fri, 08 Dec 2017 03:02:01 +0000 Original-Received: (at 24992) by debbugs.gnu.org; 8 Dec 2017 03:01:39 +0000 Original-Received: from localhost ([127.0.0.1]:51233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eN8uw-0005es-Or for submit@debbugs.gnu.org; Thu, 07 Dec 2017 22:01:38 -0500 Original-Received: from mail-it0-f48.google.com ([209.85.214.48]:35966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eN8uu-0005eZ-5u; Thu, 07 Dec 2017 22:01:36 -0500 Original-Received: by mail-it0-f48.google.com with SMTP id d16so1884585itj.1; Thu, 07 Dec 2017 19:01:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=TmB/v+Phf2HZcW0qBXpAsLmVifoVtp7nLh/LUyaR6CE=; b=jYeMOvZtkt2RxzwEhq/aoP2+r08mEX5Wqz6C0jDAqWOAmHdu8Swgj0OjkpyrVYXDF6 DR9DquY38LB5Qk4il8zz1z5u+OFR7LlL0/aZdnGeXLrG6dpw1CvY0A10eZ5KuHIEJTMr I6Dyr3gQ9tSQPIFPce0RagNucI1dVxOIpy8lAE4h/YlN77Q15EQdpkDWgKZWs7ZrOGRG jMDRmdjPCs1lXif3iTHbCR/YWDwSFKYtzdVJ4Rv5wfSl5CqCG96pqAFYTYvIwviai+CS dnUn6URkLnx8us8RH3n39u9EW4pSbJ7z3eDHwh/vHuyyskrbKD1Sm6JXXF8a/x9OqBga neuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=TmB/v+Phf2HZcW0qBXpAsLmVifoVtp7nLh/LUyaR6CE=; b=Esyh2FQ3wAnf077A7tRm66jSqf0mRl1rowQHcO/aVhM9aVlutmkNs3BLCagnqIOgGS Z2dmcdDXKGeL9329y0QIeaIB9NvTLyWAQJLtUEGcy+I1zFltqPt+mUWIk0XvKfqFfVmU hDgbxk+g95RCY+sDqmodilmrVCVXLFA/aCh5hf2a/yn5PFvM8WR0kVtCb6pULHX0b+SN AbxCdjqsX9wsAdenJZJZvMRPHDt5uh+Fhc2lEQsy5qEfzlFhEX+4E6Fe4fylTS/ekt+x w3aVjC0cUWED7EAfGj8ecHECN9suSHUnCXYNM42cHE0Th2Wrofg4Bay+pYcalSAyS0zC 3aYw== X-Gm-Message-State: AJaThX7SNH77elinJHVkSuHIeutms2U27NNmPRpw87apWhlddrbj7JjV /odbKf+NnWV3206LX9E0OPJMOw== X-Google-Smtp-Source: AGs4zMbjfG0iT/Ez/+szmHYsnsjgKW6QTddCWDkS2az7wEU+T9lP9CW3G4f4OaMKw1+7394eMD7Gpg== X-Received: by 10.107.53.138 with SMTP id k10mr42115383ioo.59.1512702090392; Thu, 07 Dec 2017 19:01:30 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id p3sm312334itc.39.2017.12.07.19.01.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Dec 2017 19:01:29 -0800 (PST) In-Reply-To: (Gemini Lasswell's message of "Tue, 22 Nov 2016 14:32:18 -0800") 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:140801 Archived-At: severity 24992 minor tags 24992 + patch quit Gemini Lasswell writes: > The commentary in lisp/kmacro.el says "Note: an empty macro is never > added to the macro ring.", but here is a way to add an empty macro to > the ring using kmacro-end-call-mouse, which is by default bound to > S-mouse-3. I am not aware of any serious side effects of there being an > empty macro in the ring. > > To reproduce, with emacs -Q and the mouse pointer positioned over your > Emacs window: > > C-x ( aaa S-mouse-3 > C-x ( S-mouse-3 > C-x ( bbb S-mouse-3 > C-x C-k C-n C-n C-n > > This defines three macros, one which inserts "aaa", an empty one, and one > which inserts "bbb". Then the repeated C-n's of the last step cycle > through the macros in the ring and display them in the echo area. > > I'm attaching a patch which makes kmacro-end-call-mouse do the same > thing that kmacro-end-and-call-macro does in this case, which is to end > the definition of the empty macro, pop the empty macro off the ring, and > then run the macro which becomes current. I guess this could be applied now?