From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96318 invoked by alias); 4 Jun 2015 16:47:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 96309 invoked by uid 89); 4 Jun 2015 16:47:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 Jun 2015 16:47:31 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NPF00L00IEFT100@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Thu, 04 Jun 2015 19:47:14 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NPF00LTPIMQNO40@a-mtaout20.012.net.il>; Thu, 04 Jun 2015 19:47:14 +0300 (IDT) Date: Thu, 04 Jun 2015 16:47:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Add option to remove duplicate command history entries In-reply-to: <1433434918-30948-1-git-send-email-patrick@parcs.ath.cx> To: Patrick Palka Cc: gdb-patches@sourceware.org, patrick@parcs.ath.cx Reply-to: Eli Zaretskii Message-id: <83y4jzpgj6.fsf@gnu.org> References: <1433434918-30948-1-git-send-email-patrick@parcs.ath.cx> X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00072.txt.bz2 > From: Patrick Palka > Cc: Patrick Palka > Date: Thu, 4 Jun 2015 12:21:58 -0400 > > This patch implements the new option "history remove-duplicates", which > controls whether GDB should remove duplicate command-history entries > (off by default). Thanks. > gdb/doc/ChangeLog: > > * gdb.texinfo: Document the new option > "history remove-duplicates". This ChangeLog entry should name the node in which you made the changes, as if it were a function (i.e., in parentheses). > diff --git a/gdb/NEWS b/gdb/NEWS > index bbfb55d..411be32 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -123,6 +123,10 @@ show max-completions > to avoid generating large completion lists, the computation of > which can cause the debugger to become temporarily unresponsive. > > +set history remove-duplicates > +show history remove-duplicates > + Control the removal of duplicate history entries. This part is OK. > +@cindex remove duplicate history > +@kindex set history remove-duplicates > +@item set history remove-duplicates > +@itemx set history remove-duplicates on > +Remove duplicate history entries added during the current session. Before a Given the description below, this summary is slightly misleading, IMO. Why not simply Keep in history of CLI commands only one copy of each command. > +entry it finds. This option is off by default. ^^ Two spaces between sentences, please. The documentation parts are okay with these fixed.