From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: call-interactively 'query-replace and 'isearch-forward Date: Mon, 11 Mar 2013 17:21:40 +0100 Message-ID: <87sj41j4a3.fsf@gmail.com> References: <87wqtehqz7.fsf@gmail.com> <21988CA51DDE443B8EAE9816831AA264@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363018941 15713 80.91.229.3 (11 Mar 2013 16:22:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Mar 2013 16:22:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 11 17:22:41 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UF5Ul-0007NP-A4 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Mar 2013 17:22:39 +0100 Original-Received: from localhost ([::1]:44354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF5UO-0003KA-Uy for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Mar 2013 12:22:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF5UD-0003Id-0V for help-gnu-emacs@gnu.org; Mon, 11 Mar 2013 12:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UF5U7-0003K3-Pg for help-gnu-emacs@gnu.org; Mon, 11 Mar 2013 12:22:04 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF5U7-0003Jz-JT for help-gnu-emacs@gnu.org; Mon, 11 Mar 2013 12:21:59 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UF5UR-00074G-G5 for help-gnu-emacs@gnu.org; Mon, 11 Mar 2013 17:22:19 +0100 Original-Received: from g231106151.adsl.alicedsl.de ([92.231.106.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Mar 2013 17:22:19 +0100 Original-Received: from tjolitz by g231106151.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Mar 2013 17:22:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231106151.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:UpuHVJU3EMrjlYUXfaaeN6OnJxU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89470 Archived-At: "Drew Adams" 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