From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: master 1e3b0f2: Improve doc strings of project.el Date: Sat, 20 Jun 2020 13:30:57 +0100 Message-ID: <87lfkhdim6.fsf@tcd.ie> 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> <6762abf5-71c1-aa54-1bac-d4c90c20870b@yandex.ru> <831rmavsuq.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="101123"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, philip@warpmail.net, theo@thornhill.no, Dmitry Gutov To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 20 14:32:07 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 1jmcfG-000QDp-SQ for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 14:32:06 +0200 Original-Received: from localhost ([::1]:36018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmcfF-0006N9-Uv for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Jun 2020 08:32:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmceH-0005DJ-QR for emacs-devel@gnu.org; Sat, 20 Jun 2020 08:31:05 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:38083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmceE-0002ni-5P for emacs-devel@gnu.org; Sat, 20 Jun 2020 08:31:05 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id z13so392102wrw.5 for ; Sat, 20 Jun 2020 05:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=V6o4LKFV3MNWT4bbWfu4/B2o5/Pdu7frBbustfAxAq0=; b=K/JGQKxP5xIp/wNUsZ4YFuwWHgr2vhMmm+KjPUMFOWGdMUFk5qTVyXQXk6xhbApS7e nM0PO68hweTD9mvgMLjxn4QSaLnMkSs9hPk31iNLqsFXjwkdwzeWwLVdVjTXmlK0Wzwa gWqTBNYM33mO6ZoBt0CnPNgH2Bt06ZLGGCJZWF4CrldpRNDLR01q6GI3NYIGE4uQtRJQ zjymCiCa2B22K3H8+MByPwt9+758Fk/biWrViyNTCHOKq9cXnrdhLJ6c+hU3CAH1jsc6 AfVas/uC+5V4huFEtrgbWVT7ywoMzDwKePYTW9Lf1n8mK/7QzH6BfHai/RIWn1POf4so 7E7w== 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=V6o4LKFV3MNWT4bbWfu4/B2o5/Pdu7frBbustfAxAq0=; b=hnOd2Pb6X8+3L80mVBkFBWkDLi4zhk+C11ysCOfXB4lFasKzNXBcb1JzlC+GBDompq +De2vJJBQvK+j1Bk8X0vGDyf70qmIg+izewF8/5h/4o8EfQ2R/G47TxY2P7xdllj3gKS uJuFhYHYMtf9TIAPCXU+xxdWGQeBCa2hLEvhN+W8y/AViInZ7UE/ZPzx5R+ZURCsGPCA AWnS66amCIbtsPUn/lCu4vMk3iH2petSUIHVhLC7PTPZvs955SVbXFFZIw44wpVKYuyY invq+746CEeCfv2u7bid9yyHblRR3Uphbitmcw2ueVegPm6KoCSjbQHbAWj1hEH8JfK+ nc0w== X-Gm-Message-State: AOAM530ZpDi+qXnXpOrmfzrq9PtMnj3rQ8+Z6zbb25b/b2fCNNalHP5e YbOPUBswFCafDSmUjCdDO4FlxQ== X-Google-Smtp-Source: ABdhPJwWnjiBpYedrhb9LocT24glENgnu8HI1P4GUrDRWvDUaOsWvYygRnLvCSNFrUefpronp58M/Q== X-Received: by 2002:a5d:4903:: with SMTP id x3mr9515143wrq.351.1592656259675; Sat, 20 Jun 2020 05:30:59 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id 14sm2058555wmk.19.2020.06.20.05.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jun 2020 05:30:59 -0700 (PDT) In-Reply-To: <831rmavsuq.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 20 Jun 2020 15:12:29 +0300") Received-SPF: none client-ip=2a00:1450:4864:20::429; envelope-from=contovob@tcd.ie; helo=mail-wr1-x429.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: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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:252438 Archived-At: Eli Zaretskii writes: >> One might interpret your request essentially as "I want any buffer, >> arbitrarily, based on my current intention, be associated with the >> current project". It's probably not as arbitrary, so you're welcome to >> suggest an alternative indicator. > > I already suggested one: let the user specify that with special > commands, and have other commands do that automatically where we know > the user will want that with very high probability. > > Doing this means we need some indicator other than default-directory. > A buffer-local variable, perhaps, or membership in some data > structure, like a list of buffers associated with a project. Or > anything else, really, that can support better, more accurate > decisions. There are many alternatives; my point is that basing this > on default-directory is not the best strategy. What if grep, xref, etc. "singleton" buffers get created per project, either automatically by detecting that they are called from within a project, or by providing project.el wrappers for their respective commands? Then they could be switched to based on default-directory alone, right? Would that fly at all? -- Basil