From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeremy Bryant via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#67355: [PATCH] Add doc string to simple.el Date: Tue, 21 Nov 2023 23:33:50 +0000 Message-ID: <87r0kiel47.fsf@jeremybryant.net> Reply-To: Jeremy Bryant Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13827"; mail-complaints-to="usenet@ciao.gmane.io" To: 67355@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 22 00:36:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1r5aHu-0003Nr-BU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Nov 2023 00:36:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r5aHh-0006s1-27; Tue, 21 Nov 2023 18:36:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5aHf-0006rt-FA for bug-gnu-emacs@gnu.org; Tue, 21 Nov 2023 18:35:59 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r5aHf-0001CD-6r for bug-gnu-emacs@gnu.org; Tue, 21 Nov 2023 18:35:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r5aHh-0002Ze-Nj for bug-gnu-emacs@gnu.org; Tue, 21 Nov 2023 18:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jeremy Bryant Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Nov 2023 23:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67355 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17006097259848 (code B ref -1); Tue, 21 Nov 2023 23:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Nov 2023 23:35:25 +0000 Original-Received: from localhost ([127.0.0.1]:57683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r5aH7-0002Ym-11 for submit@debbugs.gnu.org; Tue, 21 Nov 2023 18:35:25 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:42320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r5aGr-0002YF-1B for submit@debbugs.gnu.org; Tue, 21 Nov 2023 18:35:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5aGi-0006mN-CO for bug-gnu-emacs@gnu.org; Tue, 21 Nov 2023 18:35:00 -0500 Original-Received: from out-188.mta1.migadu.com ([95.215.58.188]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5aGg-0000OU-Be for bug-gnu-emacs@gnu.org; Tue, 21 Nov 2023 18:35:00 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net; s=key1; t=1700609695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=UgeRtwEtNb0qjXnnMF/C97yLvN0/+VIMS+5xi/cOSZk=; b=HWROTn0E3XsmxRJHjX76OLWo8lsRkuvmiAFmM0/Qyy7Dr0nLk5m0fQZy7JsB6WYu/BsVHm OwyApbHyWojZiblkZscc8a/yVZYnX15aX06+Zuuwo6uoiTUZPmDJE9oYxRg6iJWK1O6nFk /d5NPpnmNRAT8C8KEks5omDqagK9fycDe2DyxvtnKa15OOZL3C7PYN0qVIOHoLY+G88cxf sKEc/txoF032as7OmSPXUz9iZuHNppBItkEj+zpmGc537voSmvn+HkN+Eh1Rm+1iQb+IB7 Q7nR5iF53TNtPs43Jay0i58Hh8Jl9csVTEZYAD9em6XNU2tVpIQY1H9rfj7V0A== X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=95.215.58.188; envelope-from=jb@jeremybryant.net; helo=out-188.mta1.migadu.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274745 Archived-At: --=-=-= Content-Type: text/plain Tags: patch This patch adds a doc string to simple.el where there was none. Please confirm if this is good to install or if any refinements are needed. Thanks in advance. --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Add-doc-string-to-simple.el.patch >From 2ca9dab72f2aacb51e0b3d6d6403c4659e168fb9 Mon Sep 17 00:00:00 2001 From: Jeremy Bryant Date: Tue, 21 Nov 2023 23:27:44 +0000 Subject: [PATCH] Add doc string to simple.el * lisp/simple.el (kill-buffer--possibly-save): Add doc string. --- lisp/simple.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/simple.el b/lisp/simple.el index b770d9d7d33..69d29bc306b 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -10863,6 +10863,9 @@ scratch-buffer (pop-to-buffer-same-window (get-scratch-buffer-create))) (defun kill-buffer--possibly-save (buffer) + "Prompt user whether to kill BUFFER, possibly saving it first. + +This assumes the buffer is known to be modified." (let ((response (cadr (read-multiple-choice -- 2.40.1 --=-=-=--