From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#41890: 28.0.50; [PATCH]: Add bindings for project.el Date: Mon, 13 Jul 2020 03:13:34 +0300 Message-ID: References: <87mu50b43d.fsf@warpmail.net> <87pn92t1ye.fsf@iris.silentflame.com> <874kqcsnu5.fsf@iris.silentflame.com> <875zasthvn.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5676"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: "Basil L. Contovounesios" , "Philip K." , 41890@debbugs.gnu.org To: Juri Linkov , Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 13 02:14:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jum6k-0001MK-UG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Jul 2020 02:14:10 +0200 Original-Received: from localhost ([::1]:43028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jum6j-0001sQ-GL for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jul 2020 20:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jum6c-0001sC-Ki for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2020 20:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jum6c-0002Hw-CG for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2020 20:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jum6c-0006SY-7R for bug-gnu-emacs@gnu.org; Sun, 12 Jul 2020 20:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Jul 2020 00:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41890-submit@debbugs.gnu.org id=B41890.159459922724788 (code B ref 41890); Mon, 13 Jul 2020 00:14:02 +0000 Original-Received: (at 41890) by debbugs.gnu.org; 13 Jul 2020 00:13:47 +0000 Original-Received: from localhost ([127.0.0.1]:47179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jum6M-0006Rk-Un for submit@debbugs.gnu.org; Sun, 12 Jul 2020 20:13:47 -0400 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:44837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jum6J-0006RT-4O for 41890@debbugs.gnu.org; Sun, 12 Jul 2020 20:13:45 -0400 Original-Received: by mail-wr1-f48.google.com with SMTP id b6so12600560wrs.11 for <41890@debbugs.gnu.org>; Sun, 12 Jul 2020 17:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MI0pJ+OYWJeUBN2GCavAsghC9XFaMxOtn/vTC0KkpAo=; b=cmk4v3BBuKMHk6l+kO2nSoHXLNxfwveRY1stOSOKNIhke38QXaAcG/ekCG3EjpKy0/ Iyj0bsWSA+QQVk6x/swbKdorIaniH+IPYN+EFHVRghDQOlWFmWWd7quyoZbUPxBeavV4 HFuCYW0vmb2Yp6Q9IU0q9eYZ+9cqzEoiIR1xIt+DMxfpCc8LPPpAcq7xIub9jeC4afOD FolEx54BVUC3xijpSB0V0wX+PzyiItlLEACzKWTGha90EJKwZb/XZEjIKVW+tc5WiEhu ttMN4ksSCKLrwyWq1+MUuoIikiBv+zPUuhnyAHLKXHQiXWvUELLfrueNhJ/2PFxJ6UTL X7wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MI0pJ+OYWJeUBN2GCavAsghC9XFaMxOtn/vTC0KkpAo=; b=ADDbDEGBBowK8VwkoSbVvcPb7JTwOSLPGswAjOoLXrxVNoB0YPaNmNuJU2kvxuRcZJ tlyy+ubx5T8/tipf8An7u0XqQd5zA4RrjP/eFksSf+tpLaCirIfbqNWdXO9vJdU5PyIB saw1yKz0eplf1Chq7fcJEahsgLpU4gZLUMGQptxhnxjpe8eITSRI4u4Rlz8gd1BsdWIl je2LNCBm7E4hFSzhW623zlDUG0BooVPcs6yzL4WU38j8i0p8bjcda0jJ/2wvp/Rzg2Cw rgC6r4l8Tz7L46crXl9GrAN4ps0fkqRlEI6u+1NCSRoHS9I+VFAyFscAMaXJlJkuTgrk l2iA== X-Gm-Message-State: AOAM533D55IsbjhTudJa/FwnUGBDRplUgqtbNONh5pZXskplzpwy8aUS xAOR9s2EhCX0OdyNXw8TJSWHLCkr X-Google-Smtp-Source: ABdhPJyrLAA5vifS6kg6P0W7adi2lNSt+eqWMk8c/IOGG1OBTKUgIv3lzTupyQmqsCHsC9dHI2BRZg== X-Received: by 2002:a5d:6912:: with SMTP id t18mr76137593wru.411.1594599217014; Sun, 12 Jul 2020 17:13:37 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id u8sm21199150wrt.28.2020.07.12.17.13.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Jul 2020 17:13:36 -0700 (PDT) In-Reply-To: <875zasthvn.fsf@mail.linkov.net> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182958 Archived-At: On 13.07.2020 02:48, Juri Linkov wrote: > But later Philip sent another patch in > https://debbugs.gnu.org/41890#100 > that doesn't use set-transient-map > for the reasons that I don't understand. > Providing the explanation Philip said: > > It turned out that the transient map approach didn't work, as it > ignored the value in default-directory, thus running all commands in > whatever the current project was. > > Maybe the same function can set default-directory > to solve the problem to be able to use set-transient-map? I think I can explain that: you can set the transient map to handle the next command, but you can let-bind a variable to only have the binding have the effect during the next command. And you can't exactly setq that value either, or else it would overwrite the buffer-local default-directory value in the current buffer.