From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Ignoring entries starting with space Date: Mon, 22 Jun 2009 02:00:49 +0300 Organization: JURTA Message-ID: <87y6rl5h0e.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245625373 17678 80.91.229.12 (21 Jun 2009 23:02:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Jun 2009 23:02:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Francesc Rocher Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 22 01:02:50 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MIW3l-00009U-Nx for ged-emacs-devel@m.gmane.org; Mon, 22 Jun 2009 01:02:50 +0200 Original-Received: from localhost ([127.0.0.1]:55610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIW3l-0008Du-3M for ged-emacs-devel@m.gmane.org; Sun, 21 Jun 2009 19:02:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIW3h-0008Dn-89 for emacs-devel@gnu.org; Sun, 21 Jun 2009 19:02:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIW3b-0008Db-JJ for emacs-devel@gnu.org; Sun, 21 Jun 2009 19:02:44 -0400 Original-Received: from [199.232.76.173] (port=51877 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIW3b-0008DY-E8 for emacs-devel@gnu.org; Sun, 21 Jun 2009 19:02:39 -0400 Original-Received: from smtp-out3.starman.ee ([85.253.0.5]:54130 helo=smtp-gw1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIW3a-0006fs-Ov for emacs-devel@gnu.org; Sun, 21 Jun 2009 19:02:39 -0400 Original-Received: from mx1.starman.ee (mx1.starman.ee [62.65.192.16]) by smtp-gw1.starman.ee (Postfix) with ESMTP id 463E4A21515; Mon, 22 Jun 2009 02:02:35 +0300 (EEST) X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.30.148.cable.starman.ee [82.131.30.148]) by mx1.starman.ee (Postfix) with ESMTP id 025AC3F406B; Mon, 22 Jun 2009 02:02:29 +0300 (EEST) In-Reply-To: (Francesc Rocher's message of "Sun, 21 Jun 2009 23:20:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111619 Archived-At: > The same way it is possible to delete duplicates in minibuffer history, I > think it is also very useful to have the possibility to ignore entries > starting with space(s). The new variable `history-ignore-space' would take > care of this, being `nil' its defaut value. I think it's good since bash provides this option in HISTCONTROL and it is useful: HISTCONTROL A colon-separated list of values controlling how commands are saved on the history list. If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list. A value of ignoredups causes lines matching the previous history entry to not be saved. A value of ignoreboth is shorthand for ignorespace and ignoredups. A value of erasedups causes all previous lines matching the current line to be removed from the history list before that line is saved. We already have `history-delete-duplicates' that corresponds to the bash option `ignoredups'. So a new option that corresponds to `ignorespace' would be good too. -- Juri Linkov http://www.jurta.org/emacs/