unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Editing the previous regexp
@ 2011-07-26  6:49 C K Kashyap
  2011-07-26  6:56 ` Andreas Röhler
  0 siblings, 1 reply; 5+ messages in thread
From: C K Kashyap @ 2011-07-26  6:49 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

Hi,
When I do M-x replace-regexp and type in a wrong regexp, I end up having to
re-type the whole thing when I try again. How can I edit the previously
attempted regexp?
Regards,
Kashyap

[-- Attachment #2: Type: text/html, Size: 217 bytes --]

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

* Re: Editing the previous regexp
  2011-07-26  6:49 Editing the previous regexp C K Kashyap
@ 2011-07-26  6:56 ` Andreas Röhler
  2011-07-26  7:33   ` C K Kashyap
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Röhler @ 2011-07-26  6:56 UTC (permalink / raw)
  To: help-gnu-emacs

Am 26.07.2011 08:49, schrieb C K Kashyap:
> M-x replace-regexp

Inside M-x replace-regexp

<up> accesses the history like any shell-command-history



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

* Re: Editing the previous regexp
  2011-07-26  6:56 ` Andreas Röhler
@ 2011-07-26  7:33   ` C K Kashyap
  2011-07-26 16:02     ` Vijay Lakshminarayanan
  0 siblings, 1 reply; 5+ messages in thread
From: C K Kashyap @ 2011-07-26  7:33 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

On Tue, Jul 26, 2011 at 12:26 PM, Andreas Röhler <
andreas.roehler@easy-emacs.de> wrote:

> Am 26.07.2011 08:49, schrieb C K Kashyap:
>
>> M-x replace-regexp
>>
>
> Inside M-x replace-regexp
>
> <up> accesses the history like any shell-command-history
>
>
Nice ... thanks Andreas.
Regards,
Kashyap

[-- Attachment #2: Type: text/html, Size: 713 bytes --]

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

* Re: Editing the previous regexp
  2011-07-26  7:33   ` C K Kashyap
@ 2011-07-26 16:02     ` Vijay Lakshminarayanan
  2011-07-28  4:08       ` Le Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Vijay Lakshminarayanan @ 2011-07-26 16:02 UTC (permalink / raw)
  To: C K Kashyap; +Cc: help-gnu-emacs

M-p works too.  I prefer that to arrow keys.  M-n is the equivalent of <down>

Cheers
~vijay

On Tue, Jul 26, 2011 at 1:03 PM, C K Kashyap <ckkashyap@gmail.com> wrote:
>
>
> On Tue, Jul 26, 2011 at 12:26 PM, Andreas Röhler
> <andreas.roehler@easy-emacs.de> wrote:
>>
>> Am 26.07.2011 08:49, schrieb C K Kashyap:
>>>
>>> M-x replace-regexp
>>
>> Inside M-x replace-regexp
>>
>> <up> accesses the history like any shell-command-history
>>
>
> Nice ... thanks Andreas.
> Regards,
> Kashyap



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

* Re: Editing the previous regexp
  2011-07-26 16:02     ` Vijay Lakshminarayanan
@ 2011-07-28  4:08       ` Le Wang
  0 siblings, 0 replies; 5+ messages in thread
From: Le Wang @ 2011-07-28  4:08 UTC (permalink / raw)
  To: Vijay Lakshminarayanan; +Cc: help-gnu-emacs

On Wed, Jul 27, 2011 at 12:02 AM, Vijay Lakshminarayanan
<laks.vij@gmail.com> wrote:
> M-p works too.  I prefer that to arrow keys.  M-n is the equivalent of <down>

`previous-complete-history-element' is way more useful than the
default binding of <M-p>.  You have to change it in a few key-maps if
you want the behaviour across many prompts:

rough snippet straight from my init, fix as required:

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

-- 
Le



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

end of thread, other threads:[~2011-07-28  4:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26  6:49 Editing the previous regexp C K Kashyap
2011-07-26  6:56 ` Andreas Röhler
2011-07-26  7:33   ` C K Kashyap
2011-07-26 16:02     ` Vijay Lakshminarayanan
2011-07-28  4:08       ` Le Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).