From unknown Wed Jun 18 20:51:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1505 <1505@debbugs.gnu.org> To: bug#1505 <1505@debbugs.gnu.org> Subject: Status: duplicate entries in compile-history Reply-To: bug#1505 <1505@debbugs.gnu.org> Date: Thu, 19 Jun 2025 03:51:38 +0000 retitle 1505 duplicate entries in compile-history reassign 1505 emacs submitter 1505 Tom Tromey severity 1505 normal thanks From tromey@redhat.com Sat Dec 6 06:12:54 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Dec 2008 14:12:54 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB6ECn0e019970 for ; Sat, 6 Dec 2008 06:12:51 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8xtp-0001pC-9k for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 09:12:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8xto-0001oJ-F9 for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 09:12:48 -0500 Received: from [199.232.76.173] (port=52897 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8xto-0001o1-4m for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 09:12:48 -0500 Received: from mx2.redhat.com ([66.187.237.31]:39492) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8xtn-0003s0-NI for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 09:12:48 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mB6ECk6T002430 for ; Sat, 6 Dec 2008 09:12:46 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mB6EChRR024977; Sat, 6 Dec 2008 09:12:43 -0500 Received: from opsy.redhat.com (vpn-14-21.rdu.redhat.com [10.11.14.21]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mB6ECgSi007616; Sat, 6 Dec 2008 09:12:42 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 88B5E5080FC; Sat, 6 Dec 2008 07:12:41 -0700 (MST) To: bug-gnu-emacs@gnu.org Subject: duplicate entries in compile-history From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Sat, 06 Dec 2008 07:12:41 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I ran into the following situation yesterday: I ran one compile command in the morning. Then, for the rest of the day, I ran a couple of different compile command, alternating them many times. Near the end of the day, I wanted to re-run the first command, but it had been removed from history. It would be nice if there were a way to eliminate duplicates from compile-history, so that older commands were not completely dropped. For instance, a command could still be put at the front of the list; but all duplicates of it elsewhere in the list could be removed at the same time. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/22.2/etc/DEBUG for instructions. In GNU Emacs 22.2.1 (i386-redhat-linux-gnu, GTK+ Version 2.12.9) of 2008-05-23 on xenbuilder4.fedora.phx.redhat.com Windowing system distributor `The X.Org Foundation', version 11.0.10500000 configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-x-toolkit=gtk' '--with-sound' '--with-toolkit-scroll-bars' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: auto-fill-function: do-auto-fill compilation-in-progress: (gid) shell-dirtrack-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-spelling-mode: t erc-truncate-mode: t flyspell-mode: t eldoc-mode: t erc-status-mode: t erc-services-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-readonly-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-p C-p C-k I I t ' s SPC b e e n SPC a SPC w h i l e SPC . . . SPC y o u SPC o k ? C-c C-c M SPC = q s M-v C-u C-u C-p n n n n M-g M-g M-g s C-h v c o m p i l a t C-g C-x C-f ~ / . e m a c s M-> C-r c o m p C-h v C-x k C-x o C-x 1 C-c b C-h v c o m p i l e - h i C-x o C-x 1 M-> C-c b C-z o C-z o C-h v M-p C-x 1 C-l C-s c o m C-w C-w C-s C-a C-z o C-x C-f g n E m e m l i s p r o c o m p r o g c o m C-s c o m p i l e - h i s t o r y C-s C-p C-a M-f C-h f C-h f r e a C-g C-z o C-z o C-x C-g M-x l g r e p C-x o C-x 1 C-u C-n C-u C-n C-u C-n C-n C-c C-c C-x 1 C-l C-u C-n C-u C-n C-l C-n C-n M-f C-p C-h f C-x o C-x 1 C-c b C-z o C-h l C-x o C-x 1 C-c b M-x r e p o r t - e m b b Recent messages: Note: file is write protected Mark saved where search started Making completion list... Mark saved where search started You didn't specify a function QuitError during redisplay: (quit) Mark set Type C-x 1 to remove help window. [2 times] Making completion list... Loading emacsbug...done Tom From richardeng@foxmail.com Sat Dec 6 07:16:15 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.5 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1505) by emacsbugs.donarmstrong.com; 6 Dec 2008 15:16:15 +0000 Received: from smtpbg3.foxmail.com (smtpbg3.foxmail.com [121.14.102.33]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mB6FG8Tt004009 for <1505@emacsbugs.donarmstrong.com>; Sat, 6 Dec 2008 07:16:10 -0800 Received: from 172.23.147.140 (foxmail.com [172.23.147.140]) by smtpbg3 (foxmail.com) with SMTP id MGZyZxla; Sat, 06 Dec 2008 23:14:41 +0800 (envelope-from richardeng@foxmail.com) X-QQ-mid: esmtp512285764809682424 Received: from 889D3A80E680420 (unknown [116.225.243.63]) by smtp.foxmail.com (Postfix) with ESMTP id ; Sat, 6 Dec 2008 23:14:40 +0800 (CST) Date: Sat, 6 Dec 2008 23:14:43 +0800 From: "richardeng" To: "Tom Tromey" , "1505" <1505@debbugs.gnu.org> Subject: Re: bug#1505: duplicate entries in compile-history Message-ID: <200812062314421938416@foxmail.com> X-mailer: Foxmail 6, 14, 103, 20 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit This is not a bug. add following in your .emacs: (setq history-delete-duplicates t) (setq history-length 1000) From dann@mothra.ics.uci.edu Sat Dec 6 09:50:30 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-9.1 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1505) by emacsbugs.donarmstrong.com; 6 Dec 2008 17:50:30 +0000 Received: from barrelv2.ics.uci.edu (barrelv2.ics.uci.edu [128.195.1.114]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB6HoRIh010162 for <1505@emacsbugs.donarmstrong.com>; Sat, 6 Dec 2008 09:50:28 -0800 Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mB6HoHOC025527; Sat, 6 Dec 2008 09:50:17 -0800 (PST) Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mB6HoGaL010867; Sat, 6 Dec 2008 09:50:17 -0800 (PST) Date: Sat, 6 Dec 2008 09:50:17 -0800 (PST) Message-Id: <200812061750.mB6HoGaL010867@mothra.ics.uci.edu> From: Dan Nicolaescu To: Tom Tromey Cc: 1505@debbugs.gnu.org Subject: Re: bug#1505: duplicate entries in compile-history References: X-Debbugs-No-Ack: yes In-Reply-To: (Tom Tromey's message of "Sat, 06 Dec 2008 07:12:41 -0700") Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mB6HoHOC025527 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu Tom Tromey writes: > I ran into the following situation yesterday: > > I ran one compile command in the morning. Then, for the rest of the > day, I ran a couple of different compile command, alternating them > many times. Near the end of the day, I wanted to re-run the first > command, but it had been removed from history. > > It would be nice if there were a way to eliminate duplicates from > compile-history, so that older commands were not completely dropped. > For instance, a command could still be put at the front of the list; > but all duplicates of it elsewhere in the list could be removed at the > same time. C-h v history-delete-duplicate RET history-delete-duplicates is a variable defined in `C source code'. Its value is t Documentation: *Non-nil means to delete duplicates in history. If set to t when adding a new history element, all previous identical elements are deleted from the history list. (inspired by tcsh's histdup) This works on all histories, not only compile-history. From tromey@redhat.com Sat Dec 6 12:22:11 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,SPF_HELO_PASS autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1505) by emacsbugs.donarmstrong.com; 6 Dec 2008 20:22:11 +0000 Received: from mx2.redhat.com (mx2.redhat.com [66.187.237.31]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB6KM837016085 for <1505@emacsbugs.donarmstrong.com>; Sat, 6 Dec 2008 12:22:09 -0800 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mB6KM7uI025595; Sat, 6 Dec 2008 15:22:08 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mB6KM6qC002218; Sat, 6 Dec 2008 15:22:06 -0500 Received: from opsy.redhat.com (vpn-12-152.rdu.redhat.com [10.11.12.152]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mB6KM5BX032129; Sat, 6 Dec 2008 15:22:05 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id D2A3D3785F7; Sat, 6 Dec 2008 13:22:04 -0700 (MST) To: Dan Nicolaescu Cc: 1505@debbugs.gnu.org Subject: Re: bug#1505: duplicate entries in compile-history References: <200812061750.mB6HoGaL010867@mothra.ics.uci.edu> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Sat, 06 Dec 2008 13:22:04 -0700 In-Reply-To: <200812061750.mB6HoGaL010867@mothra.ics.uci.edu> (Dan Nicolaescu's message of "Sat\, 6 Dec 2008 09\:50\:17 -0800 \(PST\)") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Dan> C-h v history-delete-duplicate RET Thanks, I didn't know about this. Dan> *Non-nil means to delete duplicates in history. Dan> If set to t when adding a new history element, all previous identical Dan> elements are deleted from the history list. Dan> This works on all histories, not only compile-history. I'll try it and see whether there are cases where I want the other behavior. Tom From cyd@stupidchicken.com Sat Dec 6 17:40:26 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 7 Dec 2008 01:40:26 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB71eNiW032013 for ; Sat, 6 Dec 2008 17:40:24 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 0E50A57E1D1; Sat, 6 Dec 2008 20:40:27 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 1505 Date: Sat, 06 Dec 2008 20:40:27 -0500 Message-ID: <87wseclq44.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii close 1505 thanks From unknown Wed Jun 18 20:51:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Sun, 04 Jan 2009 15:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator