all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Francesc Rocher <francesc.rocher@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Ignoring entries starting with space
Date: Mon, 22 Jun 2009 02:00:49 +0300	[thread overview]
Message-ID: <87y6rl5h0e.fsf@mail.jurta.org> (raw)
In-Reply-To: <ade856a30906211420i1b199d8am6e79953f16b7d3f6@mail.gmail.com> (Francesc Rocher's message of "Sun, 21 Jun 2009 23:20:04 +0200")

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




  reply	other threads:[~2009-06-21 23:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-21 21:20 Ignoring entries starting with space Francesc Rocher
2009-06-21 23:00 ` Juri Linkov [this message]
2009-06-24 21:21 ` Stefan Monnier
2009-06-24 22:08   ` Juri Linkov
2009-06-25  7:58     ` Francesc Rocher
2009-06-25 12:44       ` Stefan Monnier
2009-06-25 20:45         ` Juri Linkov
2009-06-25 22:57           ` Stefan Monnier
2009-06-25 23:03             ` Lennart Borgman
2009-06-26 18:25               ` Francesc Rocher
2009-06-26 19:02                 ` Drew Adams
2009-06-26 22:54                 ` Juri Linkov
2009-06-26 23:42                 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y6rl5h0e.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=francesc.rocher@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.