From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tomas@tuxteam.de 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 17:01:24 +0200 Message-ID: <20210722150124.GB28761@tuxteam.de> References: <87o8avrvb6.fsf@zoho.eu> <87fsw7run2.fsf@zoho.eu> <878s1z0yty.fsf@zoho.eu> <20210722143824.GA28761@tuxteam.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A6N2fC+uXW/VQSAv" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29903"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: help-gnu-emacs , Emanuel Berg To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 22 17:04:45 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 1m6aFh-0007ZX-03 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 17:04:45 +0200 Original-Received: from localhost ([::1]:56076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6aFf-0002A6-Pd for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 11:04:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6aCX-0007rm-6C for help-gnu-emacs@gnu.org; Thu, 22 Jul 2021 11:01:29 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:34750) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1m6aCV-0004Wv-2Z for help-gnu-emacs@gnu.org; Thu, 22 Jul 2021 11:01:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=SnAVcqh/V1gcm6Q1B9ci57sd0ufbm0GKHmWTvwzbFmA=; b=TZAVmCmxsQUrMEA9L3AxuKrgIC7cBLf3bx8rQ2Gffv284cjk2ppeqL5fMpSbudOoHpoooj5ejqkujpDIrXsf772tUKXII2CL3lUF5Ivg6sZRV8f+JDupirEi5SnIQw9iIJe0+DegkI3uSE5PrK8bXOUHxYjRj33/UynHAXTscFNqYU1JgR8QNPfTJ4B6oWXj8R5kzkN37BINlHYIoccrJzCAWc7ZsSY/Fc76ergB+UofyRevf/j0VmxnwNNbcfmqa0fgd2dKLaCpCsV2i/aYt6E5bsNU0JEb4oUMT05uKq4rpX6qnPBvvwaJWUDJRJrhPKAYyTGVx7A2alJR+XwN/g==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1m6aCS-0007rW-Fj; Thu, 22 Jul 2021 17:01:24 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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:132045 Archived-At: --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 successfully, > > > 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? >=20 > `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. 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. Cheers - t --A6N2fC+uXW/VQSAv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmD5iEQACgkQBcgs9XrR2kb0aQCfZdkPy6GPDA0G8RvndOo9JGJL ASMAnRepEydXDLks4O483m8zPloVU1yy =2fDo -----END PGP SIGNATURE----- --A6N2fC+uXW/VQSAv--