all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jidanni@jidanni.org
To: bug-gnu-emacs@gnu.org
Subject: bug#2989: implement bash's ignoredups
Date: Tue, 14 Apr 2009 08:00:17 +0800	[thread overview]
Message-ID: <87d4bgt88e.fsf@jidanni.org> (raw)

M-p (translated from <escape> p) runs the command previous-history-element

Which gets rather frustrating when one runs into a long patch of the
same command, e.g.,

(compile "make" nil)
(compile "make" nil)
(compile "make" nil)

That's because emacs hasn't implement bash's ignoredups:

       HISTCONTROL

              ...value of
              ignoredups causes lines matching the previous history
              entry to not be saved...A value of erasedups
              causes all previous lines matching the current line to be
              removed from the history list before that line is saved.

Note I'm not talking about the *shell* buffer, but instead
repeat-complex-command's previous-history-element etc.







             reply	other threads:[~2009-04-14  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200904140120.n3E1Kbm2006695@godzilla.ics.uci.edu>
2009-04-14  0:00 ` jidanni [this message]
2009-04-14  1:30   ` bug#2989: marked as done (implement bash's ignoredups) Emacs bug Tracking System
2009-04-15  0:20   ` bug#2989: marked as done (history-delete-duplicates does not apply to command history) Emacs bug Tracking System
2009-04-14  1:33 ` bug#2989: implement bash's ignoredups jidanni
2009-04-14  2:01   ` Dan Nicolaescu
2009-04-14  2:07     ` bug#2989: history-delete-duplicates does not apply to command history jidanni
2009-04-14  2:15       ` Processed: " Emacs bug Tracking System
2009-04-14  5:14       ` bug#2989: " Jason Rumney
2009-04-14  5:42         ` jidanni
2009-04-14  5:33       ` Dan Nicolaescu
2009-04-14 13:04         ` 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=87d4bgt88e.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=2989@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /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.