From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 27 16:51:54 2019 Received: (at submit) by debbugs.gnu.org; 27 Oct 2019 20:51:54 +0000 Received: from localhost ([127.0.0.1]:43589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOpVx-0002sJ-Rm for submit@debbugs.gnu.org; Sun, 27 Oct 2019 16:51:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:56629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOpVw-0002sC-7R for submit@debbugs.gnu.org; Sun, 27 Oct 2019 16:51:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55542) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOpVu-0000mq-Vr for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2019 16:51:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOpVs-0007RS-Tq for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2019 16:51:50 -0400 Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21432) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iOpVs-0007PX-7W for bug-gnu-emacs@gnu.org; Sun, 27 Oct 2019 16:51:48 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1572209502; cv=none; d=zohomail.com; s=zohoarc; b=aN3TxGr/7Iam/gGbHwmUMU+Q9D4JVHJ6m1yNsZJdFd1AGPjAiP9tJ5Dvibl9XcJgP66yySmvSCM8z+/xrgsZETqxiwm5p3RAq8Chrd1PP2yFaAOzw1B6DxqZE1zqkoPBoVY+2jxwh1cRcdR9krKHqq2KHM83RlWSdssQZDR5qTQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1572209502; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=zIblUJLPbUaNO0/88+JIJbM/o0RP8j0XX9lXv1swUM8=; b=HSYPLjks+KXgR2DG87jAUK5DN9NOgLqlunuj51KxRCz1Iz2ng+ArnN2bDF0PmR0EG9mWIwvqn5QEcuHI28yDLCDhDR6/V3SE77c86yXS6HBA/hs/w/0OvVBdyWfwkAPgysFpIh65dq2eZz2ZLd0MzDlQ0IQo0kccsP0KEqnn5+o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=topbug.net; spf=pass smtp.mailfrom=hong@topbug.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1572209502; s=zoho; d=topbug.net; i=hong@topbug.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; l=1543; bh=zIblUJLPbUaNO0/88+JIJbM/o0RP8j0XX9lXv1swUM8=; b=jUbgB/OkaYjrMQvLDLDIbUiPcMrYV1/JBOKTv19dlLdpS/ssiWdVq0LbQSHmfcBZ Mr/64G97mzz7cjKRGaEYby3WBtZNYMPjCemgE0KIH/Frj2F5WqIjHQiqIEZkL0ahinZ RRUlEXy7vUQwt0d+xzqzQGt1QglioY+favd8P0Hw= Received: from home (69-215-149-151.lightspeed.sntcca.sbcglobal.net [69.215.149.151]) by mx.zohomail.com with SMTPS id 1572209501271510.77637317957806; Sun, 27 Oct 2019 13:51:41 -0700 (PDT) From: Hong Xu To: bug-gnu-emacs@gnu.org Subject: [PATCH] Add doc for goto-history-element. Date: Sun, 27 Oct 2019 13:48:28 -0700 Message-ID: <87sgnd6her.fsf@topbug.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 136.143.188.54 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * lisp/simple.el (goto-history-element): Clarify NABS. * doc/lispref/minibuf.texi (Minibuffer Commands): Add goto-history-element. --- doc/lispref/minibuf.texi | 6 ++++++ lisp/simple.el | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index dd51181db009..d5a160140532 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi @@ -2334,6 +2334,12 @@ Minibuffer Commands contents of the minibuffer before the point. @end deffn +@deffn Command goto-history-element nabs +Puts element of the minibuffer history in the minibuffer. The +argument @var{nabs} specifies the absolute history position in +descending order, where 0 means the current element and a positive +number N means the Nth previous element. +@end deffn @node Minibuffer Windows @section Minibuffer Windows diff --git a/lisp/simple.el b/lisp/simple.el index 5502cd49aa42..fcd271527075 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -2128,7 +2128,9 @@ minibuffer-default-add-completions (defun goto-history-element (nabs) "Puts element of the minibuffer history in the minibuffer. -The argument NABS specifies the absolute history position." +The argument NABS specifies the absolute history position in +descending order, where 0 means the current element and a +positive number N means the Nth previous element." (interactive "p") (when (and (not minibuffer-default-add-done) (functionp minibuffer-default-add-function) -- 2.20.1 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 11:21:22 2019 Received: (at 37948) by debbugs.gnu.org; 28 Oct 2019 15:21:23 +0000 Received: from localhost ([127.0.0.1]:46172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6pd-0008Le-L2 for submit@debbugs.gnu.org; Mon, 28 Oct 2019 11:21:22 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6pb-0008LU-D0 for 37948@debbugs.gnu.org; Mon, 28 Oct 2019 11:21:19 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP6pY-0000RA-4H; Mon, 28 Oct 2019 16:21:18 +0100 From: Lars Ingebrigtsen To: Hong Xu Subject: Re: bug#37948: [PATCH] Add doc for goto-history-element. References: <87sgnd6her.fsf@topbug.net> Date: Mon, 28 Oct 2019 16:21:15 +0100 In-Reply-To: <87sgnd6her.fsf@topbug.net> (Hong Xu's message of "Sun, 27 Oct 2019 13:48:28 -0700") Message-ID: <877e4oaob8.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Hong Xu writes: > * lisp/simple.el (goto-history-element): Clarify NABS. > > * doc/lispref/minibuf.texi (Minibuffer Commands): Add goto-history-element. Makes sense; I've now applied this to Emacs 27. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37948 Cc: 37948@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hong Xu writes: > * lisp/simple.el (goto-history-element): Clarify NABS. > > * doc/lispref/minibuf.texi (Minibuffer Commands): Add goto-history-element. Makes sense; I've now applied this to Emacs 27. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 11:21:28 2019 Received: (at control) by debbugs.gnu.org; 28 Oct 2019 15:21:28 +0000 Received: from localhost ([127.0.0.1]:46175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6pk-0008Lz-11 for submit@debbugs.gnu.org; Mon, 28 Oct 2019 11:21:28 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6pg-0008Ln-2A for control@debbugs.gnu.org; Mon, 28 Oct 2019 11:21:26 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP6pd-0000RL-FJ for control@debbugs.gnu.org; Mon, 28 Oct 2019 16:21:23 +0100 Date: Mon, 28 Oct 2019 16:21:21 +0100 Message-Id: <875zk8aob2.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #37948 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 37948 fixed close 37948 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 37948 fixed close 37948 27.1 quit From unknown Mon Jun 23 11:27:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 26 Nov 2019 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator