From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 1e3b0f2: Improve doc strings of project.el Date: Sat, 20 Jun 2020 15:37:51 +0300 Message-ID: <83tuz5vrog.fsf@gnu.org> References: <87bllfqj82.fsf@warpmail.net> <83o8pfxhzq.fsf@gnu.org> <83imfnxgt3.fsf@gnu.org> <626efe11-0f9c-081b-11dd-0d61cee8168d@yandex.ru> <83h7v7xf7w.fsf@gnu.org> <831rmayj55.fsf@gnu.org> <6dc2c2ac-8e17-f044-dc78-8c109f936ad2@yandex.ru> <83wo42w83e.fsf@gnu.org> <83a70yw1y8.fsf@gnu.org> <87eeqat0wz.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="128857"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philip@warpmail.net, emacs-devel@gnu.org, theothornhill@pm.me, kevin.legouguec@gmail.com To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 20 14:38:33 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jmclU-000XQg-4l for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 14:38:32 +0200 Original-Received: from localhost ([::1]:41878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmclT-0003TC-7V for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 08:38:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmckz-0002oA-C8 for emacs-devel@gnu.org; Sat, 20 Jun 2020 08:38:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38655) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmckz-0003qB-0d; Sat, 20 Jun 2020 08:38:01 -0400 Original-Received: from [176.228.60.248] (port=4857 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jmcky-0008Bv-Eq; Sat, 20 Jun 2020 08:38:00 -0400 In-Reply-To: (message from Dmitry Gutov on Sat, 20 Jun 2020 14:57:07 +0300) 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252441 Archived-At: > Cc: Eli Zaretskii , Theodor Thornhill , > philip@warpmail.net, emacs-devel@gnu.org > From: Dmitry Gutov > Date: Sat, 20 Jun 2020 14:57:07 +0300 > > > Would it make sense for these special modes to have a buffer-local > > variable pointing to the buffer where the command was invoked? > > project.el could then consult that variable first, then fallback to > > default-directory? > > Perhaps. I don't know if that would be enough for Eli's purposes, however. It will solve some of them, to be sure. > After all, in the Grep example, it could have been invoked from one of > the buffers belonging to the current project, or just as well from an > "outside" buffer (because, for example, that made it easier to select > the intended directory). So you are saying that it's better to have no way of supporting that use case than have some, even restricted, way?