From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.devel Subject: Re: master 1e3b0f2: Improve doc strings of project.el Date: Sat, 20 Jun 2020 13:46:36 +0200 Message-ID: <87eeqat0wz.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="51122"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , philip@warpmail.net, Theodor Thornhill , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 20 13:47:36 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 1jmbyB-000DD4-TG for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 13:47:35 +0200 Original-Received: from localhost ([::1]:44430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmbyA-00043x-UY for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 07:47:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmbxL-0003d7-Sd for emacs-devel@gnu.org; Sat, 20 Jun 2020 07:46:43 -0400 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:34176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmbxJ-0004W6-V7; Sat, 20 Jun 2020 07:46:43 -0400 Original-Received: by mail-wm1-x336.google.com with SMTP id u26so10396841wmn.1; Sat, 20 Jun 2020 04:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=WHq4nFJgamZ/6mwqwe6AOPpFaMmGytrLP/0J04DvJK0=; b=BjHCyv98hF3LPh6cZkjg3aKfXFfLtxv1orYa2/grxHsOr69z171GUDAwI9fPfZNwQ5 lLUnTJeKu51HcwZAWzG2gyPubbsUSllFBxB3OM+L0Ns1aIG106VvIDtsuJKQM26rF5y3 DROsyFiv4a3ndHHSE5H2irgsyzDvnB5bw+UaBBINKUcb50IrjjLtEc5qQlOYEILdfqaM 4qRVhbQXPAlbwNd1BVhYdnd8BSApF5CTjAezPQjdmjyp4OfiqRPKSNfYG3AEWcEIA1iG I81rCdIJtjTaPXijjeZDb8VXtoYAl728CdMn7GYBLahPhzr8mE6TZ3jO/GbdfV/PWMQn wE9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=WHq4nFJgamZ/6mwqwe6AOPpFaMmGytrLP/0J04DvJK0=; b=gxSZFyhbYrQy0QM1N2/sC4G8rAHHbDBd+P4i+74ehOCXcRNNHTllp1wcZdCXlb4X9x ztNJaByMEQ+yGtwru8AxjJU/6h+GEPX3Z85BNkavP6G9N9pEHVW3+Ggf3OoE1UriHzvH l7mysvnjzpqoaa/sQjJZeEp9k2CAJfwTqsOZb8H5zKqNAt+K7YhtLz4aHrhZKtnMrXa0 Ak5COWSVYCuyyVVT+7/4K/BROxINvndxuwMdDr1Spz9RGr/d9I8I73ckWcvRDJ82JX5F riohKy9JYJL/knSnXosTyRaGJPGre0Pui98R9/JMf2jsOvqxBVGwSWC9fsfjz4Erz6PS W/yw== X-Gm-Message-State: AOAM5325iHF0R/pVYcgQmO3z5BEHQHdL789kQ4TGtx5uBu1p0Hpjqrjv cN3tZCObMx4DLcVV6lUEKMzPlrskDgY= X-Google-Smtp-Source: ABdhPJx375ifycdOIlzgREHYZQ1fyhAgkGibv3VkP018fChXIAvJ3UZA/XS/qBGZsKuRmBSQhCQufw== X-Received: by 2002:a1c:2d4d:: with SMTP id t74mr8941751wmt.177.1592653599019; Sat, 20 Jun 2020 04:46:39 -0700 (PDT) Original-Received: from my-little-tumbleweed (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id z9sm9527155wmi.41.2020.06.20.04.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jun 2020 04:46:38 -0700 (PDT) In-Reply-To: (Dmitry Gutov's message of "Sat, 20 Jun 2020 14:29:20 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x336.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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, 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:252434 Archived-At: Dmitry Gutov writes: > On 20.06.2020 11:55, Eli Zaretskii wrote: >> I proposed to find a different way of telling which buffer is related >> to a project, other than by looking at its default-directory. We >> could design a way of doing that which would then support adding >> buffers to a project quite easily. But Dmitry doesn't think we should >> go that way. > > If you can outline and propose that alternative way, I'm all for > considering it. 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?