From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pillule Newsgroups: gmane.emacs.bugs Subject: bug#15069: [PATCH] Bug: 15069: Correct functioning in the *scratch* buffer Date: Mon, 24 May 2021 15:48:20 +0000 Message-ID: <87bl903zgb.fsf@host.localdomain> References: <52077652.1050901@fastmail.co.uk> <87bl93anba.fsf@host.localdomain> <83pmxjl1jo.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34423"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pillule , poenikatu@fastmail.co.uk, stefan@marxist.se, 15069@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 24 17:49:12 2021 Return-path: Envelope-to: geb-bug-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 1llCpL-0008iU-Ex for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 May 2021 17:49:11 +0200 Original-Received: from localhost ([::1]:48524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llCpJ-00067C-PY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 May 2021 11:49:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llCpC-00066v-4Y for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 11:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60416) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llCpB-0001en-TY for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 11:49:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llCpB-0006zb-Ss for bug-gnu-emacs@gnu.org; Mon, 24 May 2021 11:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: pillule Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 May 2021 15:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: easy Original-Received: via spool by 15069-submit@debbugs.gnu.org id=B15069.162187131826833 (code B ref 15069); Mon, 24 May 2021 15:49:01 +0000 Original-Received: (at 15069) by debbugs.gnu.org; 24 May 2021 15:48:38 +0000 Original-Received: from localhost ([127.0.0.1]:43726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llCon-0006yj-Pr for submit@debbugs.gnu.org; Mon, 24 May 2021 11:48:38 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:51188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llCoj-0006yU-VH for 15069@debbugs.gnu.org; Mon, 24 May 2021 11:48:36 -0400 Original-Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4FphSr3Np7zDrk8; Mon, 24 May 2021 08:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1621871308; bh=tLVVltjCzt+W9eT+Nrf8FC8IfxcbUyueyItzXljfVsY=; h=References:From:To:Cc:Subject:In-reply-to:Date:From; b=HObnbLN1kdQM0V25LFUKx7PcJ/CRyQf9ogwkHZwj6HmP1Cjp/TvbYWlWx1Y42qohH yuXKpVPslX/30er1TBkzhP6avkNr55aTqmly2P7lKv3xJwvrq4IiLgqkYBAMSH8rXO deDGd1zLfCGVOo0SncLWs698cPrP+gElHeoBibXI= X-Riseup-User-ID: A5D090B55F4464DE29D571207D7669AFD7D33833D52F38098E91092ECA26521D Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4FphSp0CTbz5vbQ; Mon, 24 May 2021 08:48:25 -0700 (PDT) In-reply-to: <83pmxjl1jo.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207129 Archived-At: Eli Zaretskii writes: > It says "install the functions", which means they should be=20 > evaluated > or loaded, and that tells you the Lisp code should already be > available in some Lisp buffer, whether it's *scratch* or some=20 > *.el > file. > > So why did you think it speaks about the text in the Info=20 > buffer? > That's not the intent of the text, and the text says as much. That is what I have done when studying this manual, I don't=20 remember well, but I may have been comforted in this habit by the following=20 sections : (info "(eintr) How to Evaluate") =C2=AB In addition to typing keyboard commands, we have seen a second=20 way to evaluate an expression: by positioning the cursor after a list and typing =E2=80=98C-x C-e=E2=80=99. This is what we will do in the rest of t= his=20 section. There are other ways to evaluate an expression as well; these will=20 be described as we come to them.=C2=BB (info "(eintr) Buffer Names") =C2=AB If you are reading this in Info inside of GNU Emacs, you can=20 evaluate each of the following expressions by positioning the cursor after=20 it and typing =E2=80=98C-x C-e=E2=80=99.=C2=BB Finally the section : (info "(eintr) count-words-in-defun") =C2=AB Now we can try out =E2=80=98count-words-defun=E2=80=99: install bo= th =E2=80=98count-words-in-defun=E2=80=99 and =E2=80=98count-words-defun=E2=80= =99, and set the=20 keybinding, and then place the cursor within the following definition:=C2=BB ^_____________________________^ So I can understand one may be confused to discover that in this=20 case, he or she must instead copy the following definition in a separate=20 file, then call the command `count-words-in-defun' within it. > So I'm not sure we should install this fix. Any other opinions? > > In any case: > > . just talking about *scratch* is too restrictive > . the commit log message is not according to our conventions=20 > (see > CONTRIBUTE) Yes please don't. --=20