all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Remove duplicates in comint-mode command history
@ 2005-12-07 21:17 Denis Bueno
  2005-12-07 22:04 ` Peter Dyballa
  0 siblings, 1 reply; 5+ messages in thread
From: Denis Bueno @ 2005-12-07 21:17 UTC (permalink / raw)


I've been programming in SML for a class I'm taking at school. This  
involved firing up Emacs and a sml-mode buffer with the source code,  
and another Emacs buffer with inferor-sml-mode, which uses comint.

Is there any way (simple, preferably, but otherwise is fine) to  
remove duplicate command history entries? When I hit M-p, I want to  
see the last *unique* command I typed, not the last 25 times I typed  
the command to run my program.

Ideas?

-Denis

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Remove duplicates in comint-mode command history
  2005-12-07 21:17 Denis Bueno
@ 2005-12-07 22:04 ` Peter Dyballa
  2005-12-08  2:55   ` Denis Bueno
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2005-12-07 22:04 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 07.12.2005 um 22:17 schrieb Denis Bueno:

> Is there any way (simple, preferably, but otherwise is fine) to remove 
> duplicate command history entries?

(setq history-delete-duplicates t), or in customisation.

--
Greetings

   Pete

The world would be a better place if Larry Wall had been born in
Iceland, or any other country where the native language actually
has syntax.
         -- Peter da Silva

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Remove duplicates in comint-mode command history
       [not found] <mailman.18352.1133990315.20277.help-gnu-emacs@gnu.org>
@ 2005-12-07 23:30 ` Johan Bockgård
  0 siblings, 0 replies; 5+ messages in thread
From: Johan Bockgård @ 2005-12-07 23:30 UTC (permalink / raw)


Denis Bueno <dbueno@gmail.com> writes:

> I've been programming in SML for a class I'm taking at school. This
> involved firing up Emacs and a sml-mode buffer with the source code,
> and another Emacs buffer with inferor-sml-mode, which uses comint.
>
> Is there any way (simple, preferably, but otherwise is fine) to
> remove duplicate command history entries? When I hit M-p, I want to
> see the last *unique* command I typed, not the last 25 times I typed
> the command to run my program.

`comint-input-ignoredups'

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Remove duplicates in comint-mode command history
  2005-12-07 22:04 ` Peter Dyballa
@ 2005-12-08  2:55   ` Denis Bueno
  2005-12-08 10:07     ` Peter Dyballa
  0 siblings, 1 reply; 5+ messages in thread
From: Denis Bueno @ 2005-12-08  2:55 UTC (permalink / raw)
  Cc: help-gnu-emacs

On 12/7/05, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 07.12.2005 um 22:17 schrieb Denis Bueno:
>
> > Is there any way (simple, preferably, but otherwise is fine) to remove
> > duplicate command history entries?
>
> (setq history-delete-duplicates t), or in customisation.

For the record, the above did not work, but the below did.

(add-hook 'comint-mode-hook
          '(lambda () (setq comint-input-ignoredups t)))

-Denis

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Remove duplicates in comint-mode command history
  2005-12-08  2:55   ` Denis Bueno
@ 2005-12-08 10:07     ` Peter Dyballa
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2005-12-08 10:07 UTC (permalink / raw)
  Cc: Emacs help


Am 08.12.2005 um 03:55 schrieb Denis Bueno:

> On 12/7/05, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>>
>> Am 07.12.2005 um 22:17 schrieb Denis Bueno:
>>
>>> Is there any way (simple, preferably, but otherwise is fine) to 
>>> remove
>>> duplicate command history entries?
>>
>> (setq history-delete-duplicates t), or in customisation.
>
> For the record, the above did not work, but the below did.
>
> (add-hook 'comint-mode-hook
>           '(lambda () (setq comint-input-ignoredups t)))
>

Well, I took it out of my customisation clause where it is recorded as:

	'(history-delete-duplicates t)


--
Greetings

   Pete

The human animal differs from the lesser primates in his passion for 
lists of "Ten Best".
		-- H. Allen Smith

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-12-08 10:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.18352.1133990315.20277.help-gnu-emacs@gnu.org>
2005-12-07 23:30 ` Remove duplicates in comint-mode command history Johan Bockgård
2005-12-07 21:17 Denis Bueno
2005-12-07 22:04 ` Peter Dyballa
2005-12-08  2:55   ` Denis Bueno
2005-12-08 10:07     ` Peter Dyballa

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.