From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: master 1e3b0f2: Improve doc strings of project.el Date: Sat, 20 Jun 2020 14:57:07 +0300 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="91963"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 Cc: Eli Zaretskii , philip@warpmail.net, Theodor Thornhill , emacs-devel@gnu.org To: =?UTF-8?Q?K=c3=a9vin_Le_Gouguec?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 20 13:57:46 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 1jmc82-000NqM-AQ for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 13:57:46 +0200 Original-Received: from localhost ([::1]:49602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmc81-0002V2-CU for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 07:57:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmc7W-0001LU-Gd for emacs-devel@gnu.org; Sat, 20 Jun 2020 07:57:14 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:41199) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmc7U-00067d-Ff; Sat, 20 Jun 2020 07:57:14 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id q2so9667366wrv.8; Sat, 20 Jun 2020 04:57:11 -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=7exW0oMnL68KvtvOQmWBj8qXoe3ai1UY+AlCxR/MgMU=; b=Ya2vsfJN7NRIzWi0nnmKIKd8PuibIl6sXID0IG4ZiG2q3/fPNkZSu7irxn6cgmPcXW 2KEYj++M+AJ/4sbC6LVDHTP3zC6SfmLYORIBeWRsUMPiluUpO5mJ9YS/dEREDMNdytrR wq5pNlvNAjbbl7gkI5bGY1FhRzPwOERfABkaRoU+vHoQo1/KG9tzrTWtyRI40xD+w7j4 ErcgXDezwMtrZ+WCLym/Taf6W76aB4Th2LKocz+VUkVQCgip2/RhFDSp0NuQpZKh6sDl DfW7/eFsMjMH4iJgAdVCWnGM7lCpRtW4yUOdJHGq7bCcTKkvxFIZ1D0DyKkDwh+Dqt/u 4XGw== 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=7exW0oMnL68KvtvOQmWBj8qXoe3ai1UY+AlCxR/MgMU=; b=gdwDa+jXGDgSYrbSyVLrPCF0GkPKPTWqXQdxulBVhP9+eV1gmq3poaj44SVWW0aXmv kJ8bZLot4fROVnBPc8SDGoKv50FPFiRYfQ8Y+aIaN40vxswa0uz749N2DXq8vZVpPQuE 1OOySVlGaaydrh5S81ny1IewmF5EjCkYiS1EGQu9xDKZAEjD6axAnTGO4/s2gyYyCPJp or7wjj/veSiqKY7u/Zibe8zhI3ebRigDGc0yWReDt3lZBus00lZ0SQsHTDCtZidV6GNS UjYq/c4G9Rdc+X4WCcJMdrs54kESPSAwNgPZci0D953ju54OgxgaGEIpEQf0pOYto/rW 9yMw== X-Gm-Message-State: AOAM5327M/P5d4umJM2i3EMnLdGAy+q5ZQsO8ikbutNZHD0sWZvyGRzE HnZm7LadxTm8vjs5ltISMSUKXVri X-Google-Smtp-Source: ABdhPJyR1eQ0rL8lw0tgwW9xkOEI2TegjB25R7wTPGu/Zh8ernYfShiiQgBOwrJvf/6eq3xHeG5ymw== X-Received: by 2002:adf:e4cc:: with SMTP id v12mr8542920wrm.183.1592654230324; Sat, 20 Jun 2020 04:57:10 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id 67sm10775402wrk.49.2020.06.20.04.57.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Jun 2020 04:57:09 -0700 (PDT) In-Reply-To: <87eeqat0wz.fsf@gmail.com> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=raaahh@gmail.com; helo=mail-wr1-x435.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:252435 Archived-At: On 20.06.2020 14:46, Kévin Le Gouguec wrote: > A few messages back, Eli said: > >> If we really >> want to record in these buffers what project they are related to, we >> need to have stronger evidence, like what was the current-buffer when >> the command was invoked, or maybe something else (like name the >> buffers in some special way). > Where "these buffers" refers, IIUC, to "stuff like*XREF*, Eshell, > Occur,*Compilation*,*Grep*, etc.". > > 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. 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).