From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Problem with search-forward in *Help* buffers Date: Sat, 26 Nov 2022 01:08:33 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11509"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 26 05:09:38 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oymVV-0002oX-S1 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 26 Nov 2022 05:09:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oymUl-0003v0-2R; Fri, 25 Nov 2022 23:08:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oymUj-0003un-GM for help-gnu-emacs@gnu.org; Fri, 25 Nov 2022 23:08:49 -0500 Original-Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oymUh-0006RY-RI for help-gnu-emacs@gnu.org; Fri, 25 Nov 2022 23:08:49 -0500 Original-Received: by mail-io1-xd2c.google.com with SMTP id 11so4233372iou.0 for ; Fri, 25 Nov 2022 20:08:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=CI3sCpGqxOc/vtr4u6w3RdqDXzzCZoouKLhx4wcO3dg=; b=SpBsyGonSilX3S4OAQubJimgzfKcfQMbcalJ96V5mBNQYrqnJ2D481FEMG6VjRowyI cED13u6GeTQFd3u6B87bLBQFYuSU+IpP9GcnXoM8l3m1q2s5pBUYmmHy4GNvVyioa3fo Sotcoe6+6ZNrnZeU37bsq2V82KLk1h/g4D/wTW3V2Mv2OfNrg3tOg57ak5ktEEiQ7qaL 0RGF2PnVJZObRVCLNYRBb/L5FPP/7B3hf5Pz2u1ENx8ztrcOmw4Y0Cw3dKdf/Goxv+oC 6APaRziSEt6SYFoOrRWuXZDiwbZQ1hWhbThl1xk2WVRDQ585IFa1kkvOxpYHLLtivQIo R/lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CI3sCpGqxOc/vtr4u6w3RdqDXzzCZoouKLhx4wcO3dg=; b=PuCguSZs9OVsrAReHVDP3IAysaCdGjF3IQP1LTaFzfxtDNFSQQDlHgRt2hhkosatZ5 0NGyrCISQKtKVoxEZcQMd0u9NY6oDGRYb/w29gTapxdIT3jr38HnGdvFIgjv+TZZmtwc /OTCykfwAce/+Hz8UR6aOTlzVG0czL7z4oWxzXAMrm/aRt6+tf2m6ApF0grm90EKkg+O SclS3KWQO6LQYU+RLCphMtt8LSSbFnOx49qwSUusP8GjqXoDN2Ol5HHEFxzv2FlHJ6Us AF2uoQJR5LA8JYLVOfPWch30SHbNuFO7f42gbWvJhkBY1TVh+txL8GZb1Fn4iH65502u F/3g== X-Gm-Message-State: ANoB5plU6yLuW74m1872hIDctYaUCgcp3YfKlIeREXsCK8WFjNm+TCD7 C9PDU2cvTBfZ6E9pba5uO50MOhdcWkg4NH2HAsxlFT9KWk0= X-Google-Smtp-Source: AA0mqf7T1FdL7Zw3EJxAjXSlfVil85vJEf1E+gp1Dxyd9zRypnm3kWROADHdeODsJfFBwGchf4DUgfbEKGez2MJo5fw= X-Received: by 2002:a02:cc05:0:b0:388:fce4:9b4a with SMTP id n5-20020a02cc05000000b00388fce49b4amr4348248jap.253.1669435725037; Fri, 25 Nov 2022 20:08:45 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2c; envelope-from=eduardoochs@gmail.com; helo=mail-io1-xd2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141159 Archived-At: Hi list, consider these two defuns, and the four tests after them: ;; This is a simplified version of: ;; (find-efunction 'ee-goto-position) ;; http://angg.twu.net/eev-current/eev-blinks.el.html#ee-goto-position (defun ee-goto-position-mini (&optional str &rest strs) (when str (goto-char (point-min)) (search-forward str) (dolist (s strs) (search-forward s)))) ;; This is a simplified version of: ;; (find-efunction 'find-dbsw-call) ;; http://angg.twu.net/eev-current/eev-blinks.el.html#find-dbsw (defun find-dbsw-call-mini (sexp &rest pos-spec-list) (let ((display-buffer-overriding-action '(display-buffer-same-window))) (eval sexp)) (apply 'ee-goto-position-mini pos-spec-list)) (find-dbsw-call-mini '(customize-group 'editing) "Parent") (find-dbsw-call-mini '(describe-function 'next-line) "line-move-visual") (find-dbsw-call-mini '(list-input-methods) "TeX") (find-dbsw-call-mini '(describe-input-method 'TeX) "\\bullet") The first call to `find-dbsw-call-mini' works as I expected: it runs (customize-group 'editing) and searches for the first occurrence of the string "Parent" in it. But in the other ones the search doesn't work - after the (find-dbsw-call-mini ...) is run the point is elsewhere. What is happening here? And do you have any suggestions of how to fix that? Thanks in advance! Eduardo Ochs http://angg.twu.net/#eev