[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ignoring entries starting with space
From: |
Juri Linkov |
Subject: |
Re: Ignoring entries starting with space |
Date: |
Thu, 25 Jun 2009 01:08:54 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (x86_64-pc-linux-gnu) |
>> 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/
- Ignoring entries starting with space, Francesc Rocher, 2009/06/21
- Re: Ignoring entries starting with space, Juri Linkov, 2009/06/21
- Re: Ignoring entries starting with space, Stefan Monnier, 2009/06/24
- Re: Ignoring entries starting with space,
Juri Linkov <=
- Re: Ignoring entries starting with space, Francesc Rocher, 2009/06/25
- Re: Ignoring entries starting with space, Stefan Monnier, 2009/06/25
- Re: Ignoring entries starting with space, Juri Linkov, 2009/06/25
- Re: Ignoring entries starting with space, Stefan Monnier, 2009/06/25
- Re: Ignoring entries starting with space, Lennart Borgman, 2009/06/25
- Re: Ignoring entries starting with space, Francesc Rocher, 2009/06/26
- RE: Ignoring entries starting with space, Drew Adams, 2009/06/26
- Re: Ignoring entries starting with space, Juri Linkov, 2009/06/26
- Re: Ignoring entries starting with space, Stefan Monnier, 2009/06/26