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: Thu, 25 Jun 2009 01:08:54 +0300 Organization: JURTA Message-ID: <873a9p5ls2.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 1245883928 19638 80.91.229.12 (24 Jun 2009 22:52:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Jun 2009 22:52:08 +0000 (UTC) Cc: Francesc Rocher , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 25 00:52:01 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 1MJbJv-00016T-Bt for ged-emacs-devel@m.gmane.org; Thu, 25 Jun 2009 00:51:59 +0200 Original-Received: from localhost ([127.0.0.1]:52171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJbJu-0001yK-Qw for ged-emacs-devel@m.gmane.org; Wed, 24 Jun 2009 18:51:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJao4-0008S3-IQ for emacs-devel@gnu.org; Wed, 24 Jun 2009 18:19:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJanz-0008Pn-TL for emacs-devel@gnu.org; Wed, 24 Jun 2009 18:19:04 -0400 Original-Received: from [199.232.76.173] (port=48476 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJanz-0008Pg-Me for emacs-devel@gnu.org; Wed, 24 Jun 2009 18:18:59 -0400 Original-Received: from smtp-out3.starman.ee ([85.253.0.5]:46085 helo=smtp-gw1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJanz-0003qe-5x for emacs-devel@gnu.org; Wed, 24 Jun 2009 18:18:59 -0400 Original-Received: from mx2.starman.ee (mx2.starman.ee [62.65.192.17]) by smtp-gw1.starman.ee (Postfix) with ESMTP id AB5A4A21570; Thu, 25 Jun 2009 01:19:00 +0300 (EEST) X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.29.225.cable.starman.ee [82.131.29.225]) by mx2.starman.ee (Postfix) with ESMTP id C0F603F401E; Thu, 25 Jun 2009 01:18:51 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Wed, 24 Jun 2009 23:21:38 +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:111699 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. > > Could you explain some use cases? I have one use case where this will be useful. In http://thread.gmane.org/gmane.emacs.devel/91359/focus=92106 I suggested a piece of code for .emacs that removes potentially dangerous commands from the minibuffer history. With a new variable `history-ignore-space'=t this will be unnecessary since it's possible to not put dangerous commands to the minibuffer history with just prepending a command with a space like e.g. " rm -rf ." -- Juri Linkov http://www.jurta.org/emacs/