From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Automatically highlight all same occurrence of same stuff which has been currently marked/selected. Date: Sun, 21 May 2023 08:47:18 +0800 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="31433"; 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 Sun May 21 02:48:08 2023 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 1q0XF1-00082H-Kt for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 May 2023 02:48:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0XEV-0003RG-QX; Sat, 20 May 2023 20:47:35 -0400 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 1q0XET-0003R1-V0 for help-gnu-emacs@gnu.org; Sat, 20 May 2023 20:47:34 -0400 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0XES-0001Iy-FE for help-gnu-emacs@gnu.org; Sat, 20 May 2023 20:47:33 -0400 Original-Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-510d6e1f1b2so8086628a12.3 for ; Sat, 20 May 2023 17:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684630049; x=1687222049; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=miLMHK3fwPrC/5ZfJlGx9BJ18OJEb5n6VzD3+YBXRoQ=; b=BJsKZzePMJVwQAO/irz0n6mDHXk0Rd/JAuyP4rwCylLiZNACx5hXqH9pzJYf/N4qQm 4QCbM8+k4tdWcGUF4ztZ/ltaw3QARiODqzi1tntuFJe40XO6YVNsR8Y0iIkr62p1At+X GerENFXoA57HPhOCzfMQBoI7sNBu3E+q/uYctZZ2fWp7b85OZbvfROLAESnZVmZgWEx1 Dk970MRjwdHZsAvo2zCu4NtF69BvKrYohtbWtTJSz+cm5Rn+FcgBCaZMqUnRlPMeODz4 HZhZjCP1ocvMjSiHTUYtzdXoc+n/GnlDujfiSyDwEEZ4FxD5RVQLIzOyks1blk9Nwf7G 286w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684630049; x=1687222049; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=miLMHK3fwPrC/5ZfJlGx9BJ18OJEb5n6VzD3+YBXRoQ=; b=gd7L/GWw5XqDOELZmfdQuzNOHkjCxQDHeYwD5CdmkAI25BGAeF0INEHGx5d5T+fZ1Y 80eyKq3Qp2zIWgHjA2orcrzELtEO9J/cPRJ+XxbF67lRGueZlOHqVx2m/G34FQRZzMoL bOy4SgXLLUrO4ZhboRM7iFN3YIZL1qmoPAoL2DLWMGrCS4UwfHjj4gRC0UVeZKQ1uQ+9 9BOKgohBLEpTWgw485Wm0XkGikAfTrmS5iFl0G8Kil70T/S4zxdXt2jFE4rh4USCDNl2 fPkFw6mBwPkAYz/dJOuw8xXhZTyRL2klTCmt/iua4WvkE0V01/HqsnIVIAdoWWT39QCZ Yhxg== X-Gm-Message-State: AC+VfDxr/CvKG2ssHieGBTE6+jJpCxvcGeIx/lQPgSrxd8cl1sarLNse oPz932U3epXjxL8Uble49QrdxQTRIAS8S8tXdQQDtYAeJFhCa0K4MA0= X-Google-Smtp-Source: ACHHUZ7quLTIemcFxfdWBm81z8c4plqVsF6vtS/Xo32e01JGe928arPZdXfAUUkd0j1rc6ia5atwBH1ALpl5vFKSpcM= X-Received: by 2002:a17:907:6d84:b0:96e:f23c:7fb1 with SMTP id sb4-20020a1709076d8400b0096ef23c7fb1mr5827740ejc.46.1684630049375; Sat, 20 May 2023 17:47:29 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=hongyi.zhao@gmail.com; helo=mail-ed1-x533.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, T_SCC_BODY_TEXT_LINE=-0.01 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:143684 Archived-At: Hi here, In an Emacs buffer, I want to let it automatically highlight all same occurrence of some stuff which has been currently marked/selected. Say, I have the following: foo ... .. bar... baz foo Then when I select one of the `foo` above, the two `foo`s will be highlighted automatically. Any tips for achieving this? Regards, Zhao -- Assoc. Prof. Hongsheng Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province