all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emulate readline
@ 2011-04-06 17:04 fork
  2011-04-06 18:01 ` Eli Zaretskii
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: fork @ 2011-04-06 17:04 UTC (permalink / raw
  To: help-gnu-emacs

Is there a way to get the behavior of this (super cool) 
readline behavior in the minibuffer?  

In my .inputrc I have this:

"\e[A": history-search-backward
"\e[B": history-search-forward
"\eOA": history-search-backward
"\eOB": history-search-forward

So in bash I can type "ps", hit the up-arrow, and get the most recent
 command that started with these two letters (e.g. "psql -D foobar").  
The next time I hit up-arrow, I get "psql -U fork -D forksdb", etc.

I would like to type M-x in emacs, then cycle through previous
 commands like this.

Any help is appreciated!  Thanks!




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

* Re: emulate readline
       [not found] <mailman.1.1302109600.30021.help-gnu-emacs@gnu.org>
@ 2011-04-06 17:52 ` despen
  2011-04-06 19:01   ` fork
  2011-04-06 19:06   ` Richard Riley
  0 siblings, 2 replies; 22+ messages in thread
From: despen @ 2011-04-06 17:52 UTC (permalink / raw
  To: help-gnu-emacs

fork <forkandwait@gmail.com> writes:

> Is there a way to get the behavior of this (super cool) 
> readline behavior in the minibuffer?  
>
> In my .inputrc I have this:
>
> "\e[A": history-search-backward
> "\e[B": history-search-forward
> "\eOA": history-search-backward
> "\eOB": history-search-forward
>
> So in bash I can type "ps", hit the up-arrow, and get the most recent
>  command that started with these two letters (e.g. "psql -D foobar").  
> The next time I hit up-arrow, I get "psql -U fork -D forksdb", etc.
> I would like to type M-x in emacs, then cycle through previous
>  commands like this.

M-p


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

* Re: emulate readline
  2011-04-06 17:04 emulate readline fork
@ 2011-04-06 18:01 ` Eli Zaretskii
  2011-04-06 18:53   ` fork
       [not found]   ` <mailman.11.1302116146.29474.help-gnu-emacs@gnu.org>
  2011-04-06 19:19 ` Peter Dyballa
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 22+ messages in thread
From: Eli Zaretskii @ 2011-04-06 18:01 UTC (permalink / raw
  To: help-gnu-emacs

> From: fork <forkandwait@gmail.com>
> Date: Wed, 6 Apr 2011 17:04:26 +0000 (UTC)
> 
> Is there a way to get the behavior of this (super cool) 
> readline behavior in the minibuffer?  
> 
> In my .inputrc I have this:
> 
> "\e[A": history-search-backward
> "\e[B": history-search-forward
> "\eOA": history-search-backward
> "\eOB": history-search-forward
> 
> So in bash I can type "ps", hit the up-arrow, and get the most recent
>  command that started with these two letters (e.g. "psql -D foobar").  
> The next time I hit up-arrow, I get "psql -U fork -D forksdb", etc.
> 
> I would like to type M-x in emacs, then cycle through previous
>  commands like this.

Your wish has been granted!  In Emacs, this is invoked with M-s and
M-r.  That is

   M-x M-r psql RET

will show you a past command that matches "psql".



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

* Re: emulate readline
  2011-04-06 18:01 ` Eli Zaretskii
@ 2011-04-06 18:53   ` fork
       [not found]   ` <mailman.11.1302116146.29474.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 22+ messages in thread
From: fork @ 2011-04-06 18:53 UTC (permalink / raw
  To: help-gnu-emacs

Eli Zaretskii <eliz <at> gnu.org> writes:

> Your wish has been granted!  In Emacs, this is invoked with M-s and
> M-r.  That is
> 
>    M-x M-r psql RET
> 
> will show you a past command that matches "psql".

Thanks! That is close, and much better than nothing, but not exactly the ease of
the up-arrow key that cycles through alternatives.  

Does anybody have any get-started elisp for this?







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

* Re: emulate readline
  2011-04-06 17:52 ` despen
@ 2011-04-06 19:01   ` fork
  2011-04-07  4:45     ` Kevin Rodgers
  2011-04-06 19:06   ` Richard Riley
  1 sibling, 1 reply; 22+ messages in thread
From: fork @ 2011-04-06 19:01 UTC (permalink / raw
  To: help-gnu-emacs

 <despen <at> verizon.net> writes:


> 
> M-p

That doesn't match -- if I type "eva" I should be able to get "eval-region"
(since that is in my history), but it gives me my latest command "pa" instead.




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

* Re: emulate readline
  2011-04-06 17:52 ` despen
  2011-04-06 19:01   ` fork
@ 2011-04-06 19:06   ` Richard Riley
  1 sibling, 0 replies; 22+ messages in thread
From: Richard Riley @ 2011-04-06 19:06 UTC (permalink / raw
  To: help-gnu-emacs

despen@verizon.net writes:

> fork <forkandwait@gmail.com> writes:
>
>> Is there a way to get the behavior of this (super cool) 
>> readline behavior in the minibuffer?  
>>
>> In my .inputrc I have this:
>>
>> "\e[A": history-search-backward
>> "\e[B": history-search-forward
>> "\eOA": history-search-backward
>> "\eOB": history-search-forward
>>
>> So in bash I can type "ps", hit the up-arrow, and get the most recent
>>  command that started with these two letters (e.g. "psql -D foobar").  
>> The next time I hit up-arrow, I get "psql -U fork -D forksdb", etc.
>> I would like to type M-x in emacs, then cycle through previous
>>  commands like this.
>
> M-p

How do you make M-p work like bash filtered history (C-r, C-n from bash
line) as requested in the op?



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

* Re: emulate readline
       [not found]   ` <mailman.11.1302116146.29474.help-gnu-emacs@gnu.org>
@ 2011-04-06 19:14     ` despen
  2011-04-06 19:59       ` fork
       [not found]       ` <mailman.19.1302119959.29474.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 22+ messages in thread
From: despen @ 2011-04-06 19:14 UTC (permalink / raw
  To: help-gnu-emacs

fork <forkandwait@gmail.com> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> Your wish has been granted!  In Emacs, this is invoked with M-s and
>> M-r.  That is
>> 
>>    M-x M-r psql RET
>> 
>> will show you a past command that matches "psql".
>
> Thanks! That is close, and much better than nothing, but not exactly the ease of
> the up-arrow key that cycles through alternatives.  
>
> Does anybody have any get-started elisp for this?

I didn't get your question the first time.

By default the up arrow just goes to the previous element.

This is close but not right:

(define-key minibuffer-local-map [(up)] 'previous-matching-history-element)

but it might lead to a solution.

I think you want the up arrow when not on the first position to do a
match.


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

* Re: emulate readline
  2011-04-06 17:04 emulate readline fork
  2011-04-06 18:01 ` Eli Zaretskii
@ 2011-04-06 19:19 ` Peter Dyballa
  2011-04-06 19:23   ` fork
  2011-04-07  1:48 ` Le Wang
       [not found] ` <mailman.0.1302140940.25667.help-gnu-emacs@gnu.org>
  3 siblings, 1 reply; 22+ messages in thread
From: Peter Dyballa @ 2011-04-06 19:19 UTC (permalink / raw
  To: fork; +Cc: help-gnu-emacs


Am 06.04.2011 um 19:04 schrieb fork:

> I would like to type M-x in emacs, then cycle through previous
> commands like this.


Exactly this works with M-p! (And M-n in the other direction.) The  
functions term or terminal-emulator might give you something closer to  
an xterm. (For me shell is OK.)

--
Greetings

   Pete

Competition is the great erode of profits.




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

* Re: emulate readline
  2011-04-06 19:19 ` Peter Dyballa
@ 2011-04-06 19:23   ` fork
  2011-04-06 19:36     ` Peter Dyballa
  0 siblings, 1 reply; 22+ messages in thread
From: fork @ 2011-04-06 19:23 UTC (permalink / raw
  To: help-gnu-emacs

Peter Dyballa <Peter_Dyballa <at> Web.DE> writes:


> Exactly this works with M-p! (And M-n in the other direction.) The  
> functions term or terminal-emulator might give you something closer to  
> an xterm. (For me shell is OK.)

Hm...

Is there a setting for this?  I am running emacs OUTSIDE of any shell, so it
probably doesn't read my inputrc.

I don't want a terminal inside my emacs, I want to go search-backward-history
insdid my M-x (and when I open files too).







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

* Re: emulate readline
  2011-04-06 19:23   ` fork
@ 2011-04-06 19:36     ` Peter Dyballa
  2011-04-06 19:44       ` fork
  0 siblings, 1 reply; 22+ messages in thread
From: Peter Dyballa @ 2011-04-06 19:36 UTC (permalink / raw
  To: fork; +Cc: help-gnu-emacs


Am 06.04.2011 um 21:23 schrieb fork:

> I don't want a terminal inside my emacs, I want to go search- 
> backward-history

C-x ESC ESC invokes the function repeat-complex-command. This works  
outside of a terminal in GNU Emacs. It does not rewind a shell command  
once invoked in a *shell* buffer or something similar.

> insdid my M-x (and when I open files too).


What is your "M-x"? Has it a documented name one can find and look up  
in the GNU Emacs documentation?  (Then use it and not any slang one or  
two people might be using when together.) And what are your  
parentheses standing for?

--
Greetings

   Pete

The light at the end of the tunnel has been turned off due to budget  
cuts.




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

* Re: emulate readline
  2011-04-06 19:36     ` Peter Dyballa
@ 2011-04-06 19:44       ` fork
  2011-04-06 20:21         ` Peter Dyballa
  2011-04-06 20:45         ` Drew Adams
  0 siblings, 2 replies; 22+ messages in thread
From: fork @ 2011-04-06 19:44 UTC (permalink / raw
  To: help-gnu-emacs

Peter Dyballa <Peter_Dyballa <at> Web.DE> writes:

> 
> C-x ESC ESC invokes the function repeat-complex-command. This works  
> outside of a terminal in GNU Emacs. It does not rewind a shell command  
> once invoked in a *shell* buffer or something similar.

Thats cool, but not what I want.

> > insdid my M-x (and when I open files too).
> 
> What is your "M-x"? 

I want to be able to replay all the commands I have typed in, subsetted by their
initial string which I have so far typed into the minibuffer, with each press of
my up-arrow key.  I don't know how to be any more specific or clearer.  This
behavior is possible at the bash shell prompt when you configure inputrc
correctly, but I want it within emacs when I am cycling through arbitrary
commands after typing M-x.

If you haven't done this in a shell, you probably dont have any idea what I am
talking about, but I am not sure how to be any more explicit -- I give an
example in my first email.

>Has it a documented name one can find and look up  
> in the GNU Emacs documentation?  (Then use it and not any slang one or  
> two people might be using when together.) 

If I knew, I would happily, but I don't.  

> And what are your  
> parentheses standing for?

They are just parantheses, not a command (like this).





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

* Re: emulate readline
  2011-04-06 19:14     ` despen
@ 2011-04-06 19:59       ` fork
       [not found]       ` <mailman.19.1302119959.29474.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 22+ messages in thread
From: fork @ 2011-04-06 19:59 UTC (permalink / raw
  To: help-gnu-emacs

 <despen <at> verizon.net> writes:

> By default the up arrow just goes to the previous element.

Yes.

> This is close but not right:
> 
> (define-key minibuffer-local-map [(up)] 'previous-matching-history-element)

Cool!

Is there a way to pass the text currently in the minibuffer to a function (which
would be bound to "up" like the above)?
 
> 
> but it might lead to a solution.
> 
> I think you want the up arrow when not on the first position to do a
> match.

Yes!

> 







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

* Re: emulate readline
  2011-04-06 19:44       ` fork
@ 2011-04-06 20:21         ` Peter Dyballa
  2011-04-06 20:29           ` fork
  2011-04-06 20:45         ` Drew Adams
  1 sibling, 1 reply; 22+ messages in thread
From: Peter Dyballa @ 2011-04-06 20:21 UTC (permalink / raw
  To: fork; +Cc: help-gnu-emacs


Am 06.04.2011 um 21:44 schrieb fork:

> I want to be able to replay all the commands I have typed in,  
> subsetted by their
> initial string which I have so far typed into the minibuffer, with  
> each press of
> my up-arrow key.

So start with C-x ESC ESC and then arrow up! Arrow up. Arrow up. ...

>
> If you haven't done this in a shell, you probably dont have any idea  
> what I am
> talking about


Yes, I'm no bash fan, I don't have the time to browse in my past  
commands for an eternity. Or half.


Since you've got so much time to browse in your command history,  
couldn't you find some to browse the GNU Emacs documentation? The Help  
menu offers some entry points you could browse through. You might some  
concept that might come close to your wish.

--
Greetings

   Pete

"A TRUE Klingon warrior does not comment his code."




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

* Re: emulate readline
  2011-04-06 20:21         ` Peter Dyballa
@ 2011-04-06 20:29           ` fork
  0 siblings, 0 replies; 22+ messages in thread
From: fork @ 2011-04-06 20:29 UTC (permalink / raw
  To: help-gnu-emacs

Peter Dyballa <Peter_Dyballa <at> Web.DE> writes:

> 
> <SNIP>
> Am 06.04.2011 um 21:44 schrieb fork:
> 
> > I want to be able to replay all the commands I have typed in,  
> > subsetted by their
> > initial string which I have so far typed into the minibuffer, with  
> > each press of
> > my up-arrow key.
> 
> So start with C-x ESC ESC and then arrow up! Arrow up. Arrow up. ...
> 
> >
> > If you haven't done this in a shell, you probably dont have any idea  
> > what I am
> > talking about
> 
> Yes, I'm no bash fan, I don't have the time to browse in my past  
> commands for an eternity. Or half.
> 
> Since you've got so much time to browse in your command history,  
> couldn't you find some to browse the GNU Emacs documentation? The Help  
> menu offers some entry points you could browse through. You might some  
> concept that might come close to your wish.

Thanks for the condescension and lack of understanding my problem, I will
refrain from replying to anymore of your snide and unhelpful emails. Just to
clarify:  I understand my problem just fine, it is a solution to the eternity of
up-arrows you mention above, and I would like to find an implementation in
emacs.  And I have wasted more time with you than I have already, so I will
refrain from randomly browsing the documentation as you so helpfully suggest.






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

* RE: emulate readline
  2011-04-06 19:44       ` fork
  2011-04-06 20:21         ` Peter Dyballa
@ 2011-04-06 20:45         ` Drew Adams
  2011-04-06 21:23           ` fork
  1 sibling, 1 reply; 22+ messages in thread
From: Drew Adams @ 2011-04-06 20:45 UTC (permalink / raw
  To: 'fork', help-gnu-emacs

> I want to be able to replay all the commands I have typed in, 
> subsetted by their initial string which I have so far typed

Others have given you some info about what comes closest in vanilla Emacs to
what you requested.

In Icicles:

1. `M-h' matches what you've typed so far in the minibuffer against the history
elements.  You can complete to them or cycle among them.

2. `M-pause' filters the current set of matching candidates to ones you've used
previously. Again, you can then complete against or cycle among those.

3. You can use `M-o' at any time (not just during completion) to insert an entry
from the current history into the minibuffer.  Again, you can complete against
or cycle among the candidates.

The difference between #1 and #2 is that #2 narrows the current set of
candidates and #1 matches directly against all history elements.

In all cases, for completion you can match using a prefix, a substring, or a
regexp - au choix.  You can use the up/down arrows to cycle among the current
matches.

There are additional history enhancements.  All are described here:

http://www.emacswiki.org/emacs/Icicles_-_History_Enhancements




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

* Re: emulate readline
  2011-04-06 20:45         ` Drew Adams
@ 2011-04-06 21:23           ` fork
  0 siblings, 0 replies; 22+ messages in thread
From: fork @ 2011-04-06 21:23 UTC (permalink / raw
  To: help-gnu-emacs

Drew Adams <drew.adams <at> oracle.com> writes:


> 
> In Icicles:

... That looks promising -- thanks for the tip!




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

* Re: emulate readline
       [not found]       ` <mailman.19.1302119959.29474.help-gnu-emacs@gnu.org>
@ 2011-04-06 23:44         ` despen
  2011-04-07 16:44           ` fork
  0 siblings, 1 reply; 22+ messages in thread
From: despen @ 2011-04-06 23:44 UTC (permalink / raw
  To: help-gnu-emacs

fork <forkandwait@gmail.com> writes:

>  <despen <at> verizon.net> writes:
>
>> By default the up arrow just goes to the previous element.
>
> Yes.
>
>> This is close but not right:
>> 
>> (define-key minibuffer-local-map [(up)] 'previous-matching-history-element)
>
> Cool!
>
> Is there a way to pass the text currently in the minibuffer to a function (which
> would be bound to "up" like the above)?

Well, I just tried what seemed "intuitive" and it seems to work.

I typed:

M-x

then

m C-r

That gave me a prompt for isearch backwards
with the "m" already in place.

I hit C-r again and it pulled out the command
I was looking for "man".

Then I hit return and got the completed M-x prompt
where I could then run the command.

Try it.

I think there's an option about nesting commands in the mini-buffer
that you may have to enable.  I have this:

(setq minibuffer-max-depth nil)


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

* Re: emulate readline
  2011-04-06 17:04 emulate readline fork
  2011-04-06 18:01 ` Eli Zaretskii
  2011-04-06 19:19 ` Peter Dyballa
@ 2011-04-07  1:48 ` Le Wang
  2011-04-07 15:09   ` fork
       [not found] ` <mailman.0.1302140940.25667.help-gnu-emacs@gnu.org>
  3 siblings, 1 reply; 22+ messages in thread
From: Le Wang @ 2011-04-07  1:48 UTC (permalink / raw
  To: fork; +Cc: help-gnu-emacs

On Thu, Apr 7, 2011 at 1:04 AM, fork <forkandwait@gmail.com> wrote:
>
> Is there a way to get the behavior of this (super cool)
> readline behavior in the minibuffer?
>
> In my .inputrc I have this:
>
> "\e[A": history-search-backward
> "\e[B": history-search-forward
> "\eOA": history-search-backward
> "\eOB": history-search-forward
>
> So in bash I can type "ps", hit the up-arrow, and get the most recent
>  command that started with these two letters (e.g. "psql -D foobar").
> The next time I hit up-arrow, I get "psql -U fork -D forksdb", etc.
>
> I would like to type M-x in emacs, then cycle through previous
>  commands like this.
>
> Any help is appreciated!  Thanks!

The commands you seek are (previous|next)-complete-history-element,
which are not bound to keys by default.

You also have to consider that not all mini-buffer inputs are using
the same local key-map.  I have the following code in my
initialization to bind M-p and M-n to these functions:

(mapc (lambda (map)
        (define-key map [(meta p)] 'previous-complete-history-element)
        (define-key map [(meta n)] 'next-complete-history-element))
      (list minibuffer-local-completion-map
	    minibuffer-local-isearch-map
	    minibuffer-local-map
	    minibuffer-local-must-match-map
	    minibuffer-local-ns-map))

Also see the wiki page: http://www.emacswiki.org/emacs/MinibufferHistory

--
Le



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

* Re: emulate readline
  2011-04-06 19:01   ` fork
@ 2011-04-07  4:45     ` Kevin Rodgers
  0 siblings, 0 replies; 22+ messages in thread
From: Kevin Rodgers @ 2011-04-07  4:45 UTC (permalink / raw
  To: help-gnu-emacs

On 4/6/11 1:01 PM, fork wrote:
>   <despen<at>  verizon.net>  writes:
>>
>> M-p
>
> That doesn't match -- if I type "eva" I should be able to get "eval-region"
> (since that is in my history), but it gives me my latest command "pa" instead.

M-r REGEXP RET e.g. M-r eva RET

The missing functionality is to get M-r (previous-matching-history-element) to
use the current minibuffer contents as REGEXP, possibly anchored to only match
commands that begin with that.

Here's what I came up with:

;; Like previous-matching-history-element, but use the current minibuffer
;; contents as REGEXP:
(defun previous-matching-history-element-default ()
   (interactive)
   (previous-matching-history-element (concat "\\`" (regexp-quote
						    (minibuffer-contents)))
				     (prefix-numeric-value current-prefix-arg)))

;; Bind to M-R to preserve M-r:
(define-key minibuffer-local-map "\M-R" 'previous-matching-history-element-default)

For completeness, define next-matching-history-element-default to call
next-matching-history-element, and bind it to M-S.

-- 
Kevin Rodgers
Denver, Colorado, USA




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

* Re: emulate readline
       [not found] ` <mailman.0.1302140940.25667.help-gnu-emacs@gnu.org>
@ 2011-04-07 10:32   ` Richard Riley
  0 siblings, 0 replies; 22+ messages in thread
From: Richard Riley @ 2011-04-07 10:32 UTC (permalink / raw
  To: help-gnu-emacs

Le Wang <l26wang@gmail.com> writes:

> On Thu, Apr 7, 2011 at 1:04 AM, fork <forkandwait@gmail.com> wrote:
>>
>> Is there a way to get the behavior of this (super cool)
>> readline behavior in the minibuffer?
>>
>> In my .inputrc I have this:
>>
>> "\e[A": history-search-backward
>> "\e[B": history-search-forward
>> "\eOA": history-search-backward
>> "\eOB": history-search-forward
>>
>> So in bash I can type "ps", hit the up-arrow, and get the most recent
>>  command that started with these two letters (e.g. "psql -D foobar").
>> The next time I hit up-arrow, I get "psql -U fork -D forksdb", etc.
>>
>> I would like to type M-x in emacs, then cycle through previous
>>  commands like this.
>>
>> Any help is appreciated!  Thanks!
>
> The commands you seek are (previous|next)-complete-history-element,
> which are not bound to keys by default.
>
> You also have to consider that not all mini-buffer inputs are using
> the same local key-map.  I have the following code in my
> initialization to bind M-p and M-n to these functions:
>
> (mapc (lambda (map)
>         (define-key map [(meta p)] 'previous-complete-history-element)
>         (define-key map [(meta n)] 'next-complete-history-element))
>       (list minibuffer-local-completion-map
> 	    minibuffer-local-isearch-map
> 	    minibuffer-local-map
> 	    minibuffer-local-must-match-map
> 	    minibuffer-local-ns-map))
>
> Also see the wiki page: http://www.emacswiki.org/emacs/MinibufferHistory
>

Nice, but this doesnt emulate the bash history fetch which will include all
histories containing the seed not just candidates beginning with the
seed.


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

* Re: emulate readline
  2011-04-07  1:48 ` Le Wang
@ 2011-04-07 15:09   ` fork
  0 siblings, 0 replies; 22+ messages in thread
From: fork @ 2011-04-07 15:09 UTC (permalink / raw
  To: help-gnu-emacs

Le Wang <l26wang <at> gmail.com> writes:

> > Any help is appreciated!  Thanks!
> 
> The commands you seek are (previous|next)-complete-history-element,
> which are not bound to keys by default.

Yay ! Thanks so much!
 
> You also have to consider that not all mini-buffer inputs are using
> the same local key-map.  I have the following code in my
> initialization to bind M-p and M-n to these functions:
> 
> (mapc (lambda (map)
>         (define-key map [(meta p)] 'previous-complete-history-element)
>         (define-key map [(meta n)] 'next-complete-history-element))
>       (list minibuffer-local-completion-map
> 	    minibuffer-local-isearch-map
> 	    minibuffer-local-map
> 	    minibuffer-local-must-match-map
> 	    minibuffer-local-ns-map))
> 
> Also see the wiki page: http://www.emacswiki.org/emacs/MinibufferHistory

I went with the wiki page instructions to bind directly -- if I get weird
behavior, I will use your code.

Thanks so much!  This was a gaping hole in the perfect emacs experience for me ;)

Fork




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

* Re: emulate readline
  2011-04-06 23:44         ` despen
@ 2011-04-07 16:44           ` fork
  0 siblings, 0 replies; 22+ messages in thread
From: fork @ 2011-04-07 16:44 UTC (permalink / raw
  To: help-gnu-emacs

 <despen <at> verizon.net> writes:

> 
> Well, I just tried what seemed "intuitive" and it seems to work.
> 
> I typed:
> 
> M-x
> 
> then
> 
> m C-r

<SNIP>  This works as designed, but the design isn't what I want.  I want to be
able to type the first few letters and hit an arrow key and see the options that
match the first few letters. 

The wiki has a recipe that seems to be working (thanks to Le Wang):

 http://www.emacswiki.org/emacs/MinibufferHistory





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

end of thread, other threads:[~2011-04-07 16:44 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-06 17:04 emulate readline fork
2011-04-06 18:01 ` Eli Zaretskii
2011-04-06 18:53   ` fork
     [not found]   ` <mailman.11.1302116146.29474.help-gnu-emacs@gnu.org>
2011-04-06 19:14     ` despen
2011-04-06 19:59       ` fork
     [not found]       ` <mailman.19.1302119959.29474.help-gnu-emacs@gnu.org>
2011-04-06 23:44         ` despen
2011-04-07 16:44           ` fork
2011-04-06 19:19 ` Peter Dyballa
2011-04-06 19:23   ` fork
2011-04-06 19:36     ` Peter Dyballa
2011-04-06 19:44       ` fork
2011-04-06 20:21         ` Peter Dyballa
2011-04-06 20:29           ` fork
2011-04-06 20:45         ` Drew Adams
2011-04-06 21:23           ` fork
2011-04-07  1:48 ` Le Wang
2011-04-07 15:09   ` fork
     [not found] ` <mailman.0.1302140940.25667.help-gnu-emacs@gnu.org>
2011-04-07 10:32   ` Richard Riley
     [not found] <mailman.1.1302109600.30021.help-gnu-emacs@gnu.org>
2011-04-06 17:52 ` despen
2011-04-06 19:01   ` fork
2011-04-07  4:45     ` Kevin Rodgers
2011-04-06 19:06   ` Richard Riley

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.