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 23:21:56 +0800 Message-ID: References: <87o8avrvb6.fsf@zoho.eu> <87fsw7run2.fsf@zoho.eu> <878s1z0yty.fsf@zoho.eu> <20210722143824.GA28761@tuxteam.de> <20210722150124.GB28761@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="664"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Emanuel Berg To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 22 17:23:12 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 1m6aXX-000AWc-V1 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 17:23:11 +0200 Original-Received: from localhost ([::1]:39078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6aXW-0002Ks-U6 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 11:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6aWa-0002Is-EI for help-gnu-emacs@gnu.org; Thu, 22 Jul 2021 11:22:14 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:38731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6aWY-0001l9-NO for help-gnu-emacs@gnu.org; Thu, 22 Jul 2021 11:22:12 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id q16so9089972lfa.5 for ; Thu, 22 Jul 2021 08:22:09 -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 :cc:content-transfer-encoding; bh=XWw3I2YE5UQbm1Qg4LUQ9M8KLVYtyzD3YzpL/kt5zJo=; b=Mr87ySyiI50WKlw7rpGs3a298O/Sb7uYeviPGD0YLHA0CVClCECEVLwF6e7RHmw6rH DskNC8fu/l/m38OROwdCjJ5qaSXpQYQSKOH47kuW42dAZPj+TTDzeMG2QFH4CjuByq2D R9M7QzMC62r5gK9PDX6wfDXKs4G8RwVxeeOdjxrb0Alsi8cha+IsiSFoiqnszdJOEVoy gtTSOb/yMteEVSMjBKV9BrzEq4ZezMl1ZV2rYPhuwUoO8pLSnGYTKUhdcmkFUtqB68am KSWaMq9q2EDkt3smZcCzNTfUw68YwflIdEbHmFrGFrfuX1yZI+3Lgx2zQzCOZ6yV0VxG 7jEA== 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:cc:content-transfer-encoding; bh=XWw3I2YE5UQbm1Qg4LUQ9M8KLVYtyzD3YzpL/kt5zJo=; b=FXfcB7RCFblRlS2rDgTIjE+bGSf+dgaR3pd3HhopTwqHygYsECVpy2g5qxLBpGez2K /dr7LR+3gCoM1ECZlF5wIR8jpW5UXKhDW6Oqmn7yMtkrMfyvauQ4kO4TlWoWiPMdpWvU F1+adU8FWJAjgToUc9xluQzpBO6gZARkILWcXHUGHkf+XNpyXZ6o/Ei3Zx/FAm5zXWUU mMLTSV0dJDXWD9fW13lUl28rl83+UfArhQ/DxpMRWZa9JL7+9SE0Gx1V0AIundgnmxCz h9kyzBtZNwN/Z8xofeZrYBJXxPNyI4NfQ+MGo2VFopkGIc4e55sYZXOA/k2dWGQKtP9V /5DA== X-Gm-Message-State: AOAM530Df3KlNwRz33aZVjrDqMqL1oIxeu+6XUm8RlFGAwHQP6b2zkP8 vPsP1N6G9dCqykqvtOLk/g/grEcWRhm7nDWQxvs= X-Google-Smtp-Source: ABdhPJyi403Zovo2jd6GMuuxxRxatrJ0oSf3dgWPDInASRf+SNBG/CfUNuB69civKYwN7YVHucWxjy8TlF/PUtZ/aTI= X-Received: by 2002:a19:fc13:: with SMTP id a19mr54350lfi.466.1626967327670; Thu, 22 Jul 2021 08:22:07 -0700 (PDT) In-Reply-To: <20210722150124.GB28761@tuxteam.de> Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12b.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:132046 Archived-At: On Thu, Jul 22, 2021 at 11:01 PM wrote: > > On Thu, Jul 22, 2021 at 10:53:53PM +0800, Hongyi Zhao wrote: > > On Thu, Jul 22, 2021 at 10:38 PM wrote: > > > > > > On Thu, Jul 22, 2021 at 09:56:09PM +0800, Hongyi Zhao wrote: > > > > > > [...] > > > > > > > Suppose I've the following content in scratch buffer: > > > > > > > > (re-search-forward "\f") > > > > ^L > > > > > > > > I put the point at the end of sexp line, and hit `C-j' to evaluate = it. > > > > I find that each time after the sexp has been evaluated successfull= y, > > > > the `^L' line will be moved to the next line. See the screenshot in > > > > the attachment, where I've evaluated the sexp 4 times. > > > > > > > > Any hints for this behavior? > > > > > > That depends on what C-j is bound to. What does say "describe-key", > > > aka C-h C-k? > > > > `C-h k C-j RET': > > ;;; > > C-j runs the command eval-print-last-sexp (found in > > lisp-interaction-mode-map), which is an interactive compiled Lisp > > function in =E2=80=98elisp-mode.el=E2=80=99. > > Ah. You seem to be in a "lisp interaction" buffer. I'm in scratch buffer, and the "lisp interaction" is its default major mode= . > Then it's clear: > it's the `print' part of `eval-print-last-sexp' what is inserting > stuff in your buffer: the value of (re-search-forward "\f"). > > Before it does a newline (that is what moves the ^L forward), then the > searching and moving of point happens, then (you should see that, too, > the expression's value (point's position, an integer) is inserted: you > should get a number after the ^L, too. Thank you for your explanation. Best, HY