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: New feature in project.el: Remembering the previously used projects Date: Sat, 30 May 2020 03:42:12 +0300 Message-ID: <7b8fe2bf-3d1e-65f8-0fdb-111bd39490b5@yandex.ru> References: <6f0f6cc9-52f4-8383-9827-ead54e898472@yandex.ru> <87h7vy9wrv.fsf@gmail.com> <81be7027-4079-0de6-b4dc-d669cd4c6f71@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="100931"; 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: =?UTF-8?Q?Simen_Heggest=c3=b8yl?= , emacs-devel 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 May 30 02:42:51 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 1jepaM-000Q7y-Uc for ged-emacs-devel@m.gmane-mx.org; Sat, 30 May 2020 02:42:50 +0200 Original-Received: from localhost ([::1]:50774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jepaL-0004dR-U0 for ged-emacs-devel@m.gmane-mx.org; Fri, 29 May 2020 20:42:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jepZp-0003tj-PJ for emacs-devel@gnu.org; Fri, 29 May 2020 20:42:17 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:35355) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jepZo-0003XE-Np for emacs-devel@gnu.org; Fri, 29 May 2020 20:42:17 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id x14so5921952wrp.2 for ; Fri, 29 May 2020 17:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dJFOJSF7DOFZo+ciQSnG4pddeF0+oWqtHvMdxOxiSV4=; b=CjedTZlfRPz9HRN4YIRvIQOFJSVewEJRi3wJF3JsNFPuyzd0s++heBIb/Icm1lAAcI iMi56gGqSQ2LaclLojf3xxqACMoEB9N2C4gu4XTdZAU7b++AnSF6340UNYIfHf9Bh+cC /j1omcy4qfAtUsLBAatdHQ95zOL3sGvun5tthpbgpUSONjQpouVcWE1AQ7BysEx01IYX OK8nNOk3LnnnYeac920mMSgUFmOB1wZaUsg2xmDOHeAkLu5bNZhBtGqVPLLpP5uoNvBI loBXfrAv+jPEEu7FKHbhLJqtUR38OyfT1D4dGmXtjHA2/dPHwsWVwerYwMvVdlmxhjEL tMrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dJFOJSF7DOFZo+ciQSnG4pddeF0+oWqtHvMdxOxiSV4=; b=ZZOSZwQ5+1Q/dEWiZQd4yTCZVIrO9mY7IQM1B/WyHC6C1wFljGSieB8c6+4IxqgFjl Fk4sBOiY2eOFfuhwIGbfKfP2ciQ0Gfssuqb5EmkaBxaBcJay3Xuh53GUJP9OSjtXkmYY ga5FGtnUX9dAM+wM/t44aa4LzcBd3L0Gg+NwvkCE4zFb4h9acN52hmbGxYQKEWXZnQI9 SPTYtR5e/kmYSTtzlv4yIhwf3OhA3hERu2WxrUsJD5D9uQ8QqO8ZbvF7FrBsC/6xlnYT /bN0G6RitOfMgRrkacawtIFkYvggaNalon8STsxGerc8+KHwz4J/x5sNg10VpO2UN5lz 7eHA== X-Gm-Message-State: AOAM533TKfEKlJDnMAWgHPDJMFkBHWwUQ0MSiy0gsTJRM8JkTV2MoVsa Sl1S9E9eM7Tn1QlSNl517o+h8jL4 X-Google-Smtp-Source: ABdhPJy7m61SVXeP7OPizj2TZycF+X/jua1xPqsoFIpAcVVmEeEk5ygeaUwsmoTjSOGDKB9CuOEN2w== X-Received: by 2002:adf:fb0f:: with SMTP id c15mr11772298wrr.410.1590799334338; Fri, 29 May 2020 17:42:14 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id h7sm1584392wml.24.2020.05.29.17.42.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 May 2020 17:42:13 -0700 (PDT) In-Reply-To: <81be7027-4079-0de6-b4dc-d669cd4c6f71@yandex.ru> 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: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, 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:251632 Archived-At: On 30.05.2020 02:22, Dmitry Gutov wrote: > And another thought: maybe we should only add a project to the project > list if user interaction happened (i.e. going through > project-prompt-project-dir). Simen, what do you think? Alternatively, we could defer writing the file until Emacs is being closed (and do that in kill-emacs-hook).