emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ignoring entries starting with space


From: Stefan Monnier
Subject: Re: Ignoring entries starting with space
Date: Thu, 25 Jun 2009 14:44:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

>> 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.

There are many minibuffer history variables.

> Yes, that's the point.  In general, any potentially dangerous command
> won't be stored into the history by simply pre-pending an space.
> Its the same as in Bash, the source of inspiration of this patch,
> especially when you are typing dangerous commands as root.
> It's better not to store them into the history.

Most minibuffer input is not commands but just "data" (e.g. file names).
So maybe, you should write something more specific that only applies to
those cases where the input takes the form of a (shell) command.

Having a blanket "throw away anything startign with a space for any
minibufffer input" sounds a bit too radical to me.  After all, bash only
applies this rule to the history of commands, doesn't it?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]