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: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation Date: Sun, 03 Nov 2019 22:50:14 +0200 Organization: LINKOV.NET Message-ID: <8736f4isst.fsf@mail.linkov.net> References: <20191026101407.GA17424@ACM> <87o8y3d4ur.fsf@gnus.org> <87mudl3l83.fsf@mail.linkov.net> <87v9s9b12x.fsf@gnus.org> <87ftjctsx5.fsf@mail.linkov.net> <87k18n233r.fsf@gnus.org> <87pnifcdzd.fsf@mail.linkov.net> <87d0efxfxg.fsf@gnus.org> <875zk57sqk.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="99099"; 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: Alan Mackenzie , Lars Ingebrigtsen , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 03 22:03:45 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 1iRN2H-000Pfy-Bb for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2019 22:03:45 +0100 Original-Received: from localhost ([::1]:56240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRN2F-0003yU-O4 for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2019 16:03:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51540) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRMvz-0000Zw-9L for emacs-devel@gnu.org; Sun, 03 Nov 2019 15:57:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRMvy-0002fa-2Y for emacs-devel@gnu.org; Sun, 03 Nov 2019 15:57:14 -0500 Original-Received: from anteater.elm.relay.mailchannels.net ([23.83.212.3]:42389) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iRMvx-0002fI-Ku for emacs-devel@gnu.org; Sun, 03 Nov 2019 15:57:14 -0500 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 942F15011F2; Sun, 3 Nov 2019 20:57:11 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a83.g.dreamhost.com (100-96-60-110.trex.outbound.svc.cluster.local [100.96.60.110]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1F6225013C4; Sun, 3 Nov 2019 20:57:11 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a83.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.18.5); Sun, 03 Nov 2019 20:57:11 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Shelf-Bubble: 2486fbdf17f07c0a_1572814631373_757842117 X-MC-Loop-Signature: 1572814631373:2820272510 X-MC-Ingress-Time: 1572814631373 Original-Received: from pdx1-sub0-mail-a83.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a83.g.dreamhost.com (Postfix) with ESMTP id B5CF982D97; Sun, 3 Nov 2019 12:57:05 -0800 (PST) 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; s=linkov.net; bh=vfxZGmgEZYj6uWbvROKFApI/ar4=; b= UvBO6x380OIfJrdJkIwRFnhCTD0voLU+j9un6WiOTtsk3IzmWx1H+OXJeI3xjW2k HeenfqOMVVB9gGEK4zc2E6OarkmkajptQEungXFDoc98ccVUexvX6wANlpOj9Diq 4CAJMuZ2fuSFk6/nflug/tPXqjEmkpbkCtA6jJjgJts= Original-Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77]) (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-a83.g.dreamhost.com (Postfix) with ESMTPSA id DC07882D8C; Sun, 3 Nov 2019 12:57:02 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a83 In-Reply-To: (Stefan Monnier's message of "Wed, 30 Oct 2019 22:00:40 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:241762 Archived-At: >> query-replace-map needs to be translated to another keymap >> where the same characters from 'query-replace-map' >> run real commands, not intermediate symbols. > > E.g. > > (defvar foo-remapping-map > (let ((map (make-sparse-keymap))) > (define-key map [remap ask] '...) > ... > map)) > > and then > > ... (make-composed-keymap query-replace-map foo-remapping-map) .. Thanks, I tried this, and everything works fine. I'll post the patch after more testing.