From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Changes for emacs 28 Date: Mon, 14 Sep 2020 13:54:15 +0200 Message-ID: References: <20200910231420.kvqg6ohvxetpup5c.ref@Ergus> <20200910231420.kvqg6ohvxetpup5c@Ergus> <875z8lhz3p.fsf@gmail.com> <83tuw4hkad.fsf@gnu.org> <83tuw4flzy.fsf@gnu.org> <83h7s4fier.fsf@gnu.org> <83d02sfh58.fsf@gnu.org> <83a6xwf9ym.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35589"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ergus , caiohcs0@gmail.com, emacs-devel , rekado@elephly.net, ghe@sdf.org, Eli Zaretskii , Drew Adams To: Thibaut Verron Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 14 13:55:08 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 1kHn4d-00095M-Uu for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 13:55:07 +0200 Original-Received: from localhost ([::1]:41244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHn4d-0008MR-0J for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Sep 2020 07:55:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHn3t-0007oR-3J for emacs-devel@gnu.org; Mon, 14 Sep 2020 07:54:21 -0400 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:40523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHn3r-0003fV-FE; Mon, 14 Sep 2020 07:54:20 -0400 Original-Received: by mail-wr1-x431.google.com with SMTP id j2so18391885wrx.7; Mon, 14 Sep 2020 04:54:18 -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 :mime-version:content-transfer-encoding; bh=hNfaEoI8zixjw3iIroK8jebQ0OKthENXw73DOKvGZmw=; b=CpPnBxLiiw4LyNAfNHqyAUmfhggtg/hQ3fTuIOZqWd2LMe7Gf5Hw7kof9mIlqnGCwd p2cBs9LWVOIb+nLb6xM2gVj3JB9cv+wP1EmeJYfd4ONN4zcfDkR8u+vXgT8poeWdIt/V 1WdZqH2QXskQ9trZ78hBeIClBYXuyZTJO0/uDVXN8pvtbWSSu1hA9QYfDRg70ufqryY/ uaSw90HQqgLANWa5uVZbh2Z0wlXLKSOnjyFPr5NyykA8DVgsIfOLYDpRtZEH5I97B3D4 9RFh3yUTkYiS7Q5Yy224kNKWY7/sJ29+grh7mHEg41OTOMAJCO1XJcDL0ch39cQ2CLsC KWIQ== 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:mime-version:content-transfer-encoding; bh=hNfaEoI8zixjw3iIroK8jebQ0OKthENXw73DOKvGZmw=; b=ts4K3SylfpY213sx+wlSGzX73dvfB11K0cw+JzsxOJzLSJ3fw6rPMBuSHJs3PylJjw 5E4JEeo48xGkQ8xYKymMQygCY3CeZlRzfV7FvfjbVmip5J+h+Hx1PoHNqyC8gzVBiz/A YrEaFlXcTHg2IT6j6WKB+5n3dzQoqOHQPU6HDxQLVXKlDfd0qu1m6dzKIX52AhcxfF9k he3mAFLpkWklqAH0YssXIduJqr7mqOo6ug0wLUNj2zoyIHGfld49byEtmPwrP+lCi0cp DcsCt9lnxC6AFim3UkkPbEyEtP5Ew1D1IZ2D2lOTh4M7mDalhDaPXcLF0HtbKjbP2n2Q G71g== X-Gm-Message-State: AOAM531it/dohRm+A9492uV0o4YzKPEdcejThuNdneGQHL9Wm+Vnwl5b KA4LqFBNy4rDb0w2bUqxeQc= X-Google-Smtp-Source: ABdhPJwD8YJ9TsMmraQSb2wOmY8aplNf5S2q4sHogl53cmbplM1x5KYNUaveldTQ7M6gzkEQL/L4Yw== X-Received: by 2002:a5d:414b:: with SMTP id c11mr15003429wrq.181.1600084457511; Mon, 14 Sep 2020 04:54:17 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:5055:7f7f:92a2:59ec]) by smtp.gmail.com with ESMTPSA id x16sm20293771wrq.62.2020.09.14.04.54.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 04:54:16 -0700 (PDT) In-Reply-To: (Thibaut Verron's message of "Mon, 14 Sep 2020 09:53:28 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=rpluim@gmail.com; helo=mail-wr1-x431.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=ham autolearn_force=no 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:255635 Archived-At: >>>>> On Mon, 14 Sep 2020 09:53:28 +0200, Thibaut Verron said: >>=20 >> We could set 'kill-buffer-hook' to a querying function in buffers >> created via the toolbar. >>=20 Thibaut> There is already a (buffer-local) variable buffer-offer-save w= hich, set to Thibaut> 'always, causes save-some-buffers to query for save the corres= ponding Thibaut> buffer, if non-empty. Right, but toolbar-save doesn=CA=BCt run save-some-buffers. That could be added, but it seems people feel toolbar space is precious (here the default toolbar uses slightly more than 50% of the available width when running -Q) Thibaut> And save-buffers-kill-emacs calls save-some-buffers with the s= econd Thibaut> argument set to t, aka, "also save some non-file buffers". Thibaut> It really looks as if this scenario is already planned, but ju= st not for Thibaut> entry from the tool-bar. That covers the 'exiting emacs' scenario, we=CA=BCd still need something to cover the 'clicked the kill-buffer button'. Or if we really want to go whole hog, we automatically save the state of buffers created via the toolbar, and restore them on startup. Robert