From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Strange use of (run-with-timer 0 nil #'foo args) in do-after-load-evaluation Date: Wed, 30 Oct 2019 22:00:40 -0400 Message-ID: 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="80416"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Alan Mackenzie , Lars Ingebrigtsen , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 31 03:03:00 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 1iPzne-000Kme-Rp for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2019 03:02:58 +0100 Original-Received: from localhost ([::1]:45862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPznd-0004oI-7M for ged-emacs-devel@m.gmane.org; Wed, 30 Oct 2019 22:02:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44100) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPzlc-0004mR-3f for emacs-devel@gnu.org; Wed, 30 Oct 2019 22:00:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPzlZ-0003Zq-MK for emacs-devel@gnu.org; Wed, 30 Oct 2019 22:00:50 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:19617) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iPzlZ-0003UZ-EP for emacs-devel@gnu.org; Wed, 30 Oct 2019 22:00:49 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 0252844966D; Wed, 30 Oct 2019 22:00:48 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8881B44966A; Wed, 30 Oct 2019 22:00:42 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1572487242; bh=gPUasJO3EmAFLJdLg0NegC3GkPJuT0pL1bFhzCox35A=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Occ4LItyHsLh+44vSHksVD6VdnIG2q9BV/QGBZjY4LN2Ij58NlUIBfin6kyogj9OY IW/ln0KC1E+9/kExLwBIsVxKTMYfNLrcgoisxdZNhJlVdJPy3LiyXLd+G38hKXfv6J kzx4J80j3vyRPKOqt58ds44zK11JBdVu+Y0w4eWunHsgdcXQIvpycyFJzNqp7rp4D0 540bTwAW46LGpc1MVrZeRlzMnAGx6aedjaIxkItLOPzvoDh3X11NfQqcoMYj/GVeuY DbHysbXyKw+AC8x5QzK2KE/qYSIOdcSckJbJAfTqxNr4Z0UySFu1A5lNocvyHCoCdY lkwNjBLrxo4bw== Original-Received: from pastel (unknown [45.72.255.86]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0C072120786; Wed, 30 Oct 2019 22:00:41 -0400 (EDT) In-Reply-To: <875zk57sqk.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 31 Oct 2019 00:10:43 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 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:241661 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) .. -- Stefan