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: Re: [External] : Re: Regexp for matching control character, say, FORM FEED. (Was: Re: The `^L' appeared in built-in help.) Date: Thu, 22 Jul 2021 16:04:30 +0800 Message-ID: References: <87lf61ymol.fsf@zoho.eu> <87im14xv08.fsf@zoho.eu> <87o8avrvb6.fsf@zoho.eu> <87fsw7run2.fsf@zoho.eu> <878s1z0yty.fsf@zoho.eu> 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="8804"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 22 10:05:26 2021 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 1m6Thu-0002AP-MV for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 10:05:26 +0200 Original-Received: from localhost ([::1]:45716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6Tht-0006n2-OE for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 04:05:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6ThF-0006kr-7g for help-gnu-emacs@gnu.org; Thu, 22 Jul 2021 04:04:45 -0400 Original-Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:42980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6ThD-0008HO-PL for help-gnu-emacs@gnu.org; Thu, 22 Jul 2021 04:04:45 -0400 Original-Received: by mail-lf1-x12e.google.com with SMTP id 8so7159399lfp.9 for ; Thu, 22 Jul 2021 01:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=FSujRQ8po+3A0xyFfpTbxwb3GYRWGPZYhfeSa+7dG7I=; b=EuS5G2CFEpr/EhCaJ3aF2x7P1d3IlJcG8qEIqeL62DIVgK7xXxbEYOtB2kpk1eV3Ks i6juR7lZg37XOcrTGezUZsm5NK+zs5rhm2Nfz8z1/Hb/wsj6afcLavMrS+bDu+sMJQHg 97BInp6I+Zw+/bW+Ms9JKRWwqHFKYaIjWqHIPqqpJUEpyp/GJF74w+T1j7Zfrj9jswpt 4ikSwVDZL2sGJk1jF2CAaHFo6VDAons6ZCvA+ZK/ltzNZXOHfNwMzpWdyG8NkP7wX6ZQ BgUwell/Lpaf6ClGzVjqqZgJHH1KguidI3ZWT1zC54gFpId69+1VtO2vJIv5aG/fdFUf EeLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=FSujRQ8po+3A0xyFfpTbxwb3GYRWGPZYhfeSa+7dG7I=; b=pj5UGs7t5Ku9iPbRvD0ZBZQbq0DiAGz45CnVHTDI3cSQvL+ZM7ObgsOICtGllyHdv1 2nUEbg5iqYNSnOx7w5Au+OjAUfFrYPxH9CwFaU/zCaUhgGXZnrQm3MJnVpVniDdhOiJw NLNm/bx0CH+iP68s84hcbB5U/qg4n7mSoY5OWIrx7os7Igpqqgsa95X7r/cLJWCPyges T/6NYESxpPErKp9YMFHWWhpTkKpL9Kyb3IBU/AWDwnqnnzEQ+yAG/ebU6+z5DqVdWe+6 pMuhxN5PNZZuXGfgKb4XTYaOfYlt0ItLK3L5HETlGrkUfTzJbYiE8CnQdWS5/9d3ttnd DJuA== X-Gm-Message-State: AOAM533ieW7OYJ4Hfj/5pLui2iBr37V38XU0aHItuKyY7hoRssOqZXco SHysMKxfzK9gWprWHZG0p5O2bCiB6v11XiW7Chc= X-Google-Smtp-Source: ABdhPJyHlYnMsm9K8y5cUUAZjjm+JSbQ/pieE/gJ1ZrNBYbgIZYNBvJ6ywjiRTUKFt7RevYvRi0XfqNwZqNCn+lk6QU= X-Received: by 2002:a19:6452:: with SMTP id b18mr28828237lfj.545.1626941081998; Thu, 22 Jul 2021 01:04:41 -0700 (PDT) In-Reply-To: <878s1z0yty.fsf@zoho.eu> Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12e.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.23 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" Xref: news.gmane.io gmane.emacs.help:132021 Archived-At: On Thu, Jul 22, 2021 at 12:14 PM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Drew Adams wrote: > > >>>>> I want to know whether there are some similar regexp > >>>>> patterns in Emacs as the ones used by grep, say, $'\014' > >>>>> or $'\f'. > >>>> > >>>> (re-search-forward "\C-l") > >>> > >>> Yes, or (re-search-forward "[\f]") > >>> or (re-search-forward "[\014]") > >> > >> What about > >> > >> (re-search-forward (kbd "C-l")) > > > > Sure. Which is the same as (re-search-forward "\f"). > > So far, these works > > (re-search-forward "[\014]") > (re-search-forward "[\f]") > (re-search-forward "\C-l") > (re-search-forward "\f") > (re-search-forward (kbd "C-l")) > > It seems subexpressions at lines 1 and 2 evaluate to the same > "[^L]", as does for their part lines 3, 4 and 5, and then it > is "^L"... I observed the same behavior. HY -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province