help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call-interactively 'query-replace and 'isearch-forward


From: Thorsten Jolitz
Subject: Re: call-interactively 'query-replace and 'isearch-forward
Date: Mon, 11 Mar 2013 17:21:40 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux)

"Drew Adams" <drew.adams@oracle.com> writes:

> This works as I would expect:
>
> emacs -Q
>
> (defun foo ()
>   (interactive)
>   (call-interactively #'isearch-forward))
>
> M-x foo
>
> Does that not do what you expect?

Try:

,------------------------------------------
| emacs -Q
| 
| (defun foo ()
|   (interactive)
|   (call-interactively #'isearch-forward)
|   (call-interactively #'query-replace))
| 
| (defun bar ()
|   (interactive)
|   (call-interactively #'query-replace)
|   (call-interactively #'isearch-forward))
| 
| M-x foo
| M-x bar
`------------------------------------------

Both do the same thing: ask for input for 'query-replace'.

'isearch-forward' is simply skipped when calling 'foo'.

-- 
cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]