From unknown Sun Jun 22 07:29:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15069 <15069@debbugs.gnu.org> To: bug#15069 <15069@debbugs.gnu.org> Subject: Status: Introduction to Elisp 14.3: Function 'count-words-defun' does not work as described. Reply-To: bug#15069 <15069@debbugs.gnu.org> Date: Sun, 22 Jun 2025 14:29:30 +0000 retitle 15069 Introduction to Elisp 14.3: Function 'count-words-defun' does= not work as described. reassign 15069 emacs submitter 15069 Sian Mountbatten severity 15069 minor tag 15069 easy thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 11 07:33:16 2013 Received: (at submit) by debbugs.gnu.org; 11 Aug 2013 11:33:17 +0000 Received: from localhost ([127.0.0.1]:52814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8Ttb-0002fK-Iy for submit@debbugs.gnu.org; Sun, 11 Aug 2013 07:33:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45211) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8TtY-0002f7-OD for submit@debbugs.gnu.org; Sun, 11 Aug 2013 07:33:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8TtO-0000EO-O3 for submit@debbugs.gnu.org; Sun, 11 Aug 2013 07:33:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8TtO-0000EE-Lc for submit@debbugs.gnu.org; Sun, 11 Aug 2013 07:33:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8TtK-0000Zo-0p for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2013 07:33:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8TtE-0008VV-3D for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2013 07:32:57 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:43907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8TtD-0008Qt-Qn for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2013 07:32:52 -0400 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id AD82A20977 for ; Sun, 11 Aug 2013 07:32:49 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sun, 11 Aug 2013 07:32:49 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.co.uk; h= message-id:date:from:mime-version:to:subject:content-type; s= mesmtp; bh=QVgAM2dUTRuyPFnuXvz+cF32fP8=; b=SCrx3HLspsSFjnYqrcoCn wzifTPSzMcJ8wO8B5E7xSpH9u25SPYQAyoGXxP3frosQFUyo/ADIvKuoroBDJlTV Zhk+vF5GB24zWZfyEcCfh4kfup3RlcsyNrOvPWqh1SjQVg3aqXd+1DiSZH66Lm3l Cu0aXqy1kJEAgfU9e40LXs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:content-type; s=smtpout; bh=QVgAM2dUTRuyPFnuXvz+cF32fP8 =; b=j7bp8BcX5VMZC5oabqr69cBszmkb+xEVazR0bod/P2QaprnPd+ojky7Bd14 ezXI1aEQfT64BxJ40Nj0aRXlZevpq5bXWy3Gk+vrIyKXdX2/GSUCoJ19t2YvX26Q 9eZNUZSnWErk9tEhT1BpluQAE8WjRb/VmzWV6G094G6l3y9w= X-Sasl-enc: TtujB3g6WFFo4MVcpdvf/7t33kMubtUvkbYaoGI2qt6P 1376220767 Received: from [192.168.11.10] (unknown [92.29.166.200]) by mail.messagingengine.com (Postfix) with ESMTPA id B7D96C00E81 for ; Sun, 11 Aug 2013 07:32:45 -0400 (EDT) Message-ID: <52077652.1050901@fastmail.co.uk> Date: Sun, 11 Aug 2013 12:32:34 +0100 From: Sian Mountbatten User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Thunderbird/23.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Introduction to Elisp 14.3: Function 'count-words-defun' does not work as described. Content-Type: multipart/alternative; boundary="------------070503040903010608050909" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) This is a multi-part message in MIME format. --------------070503040903010608050909 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: Sian Mountbatten To: bug-gnu-emacs@gnu.org Subject: 24.3; Introduction to Elisp 14.3: count-words-defun misbehaves --text follows this line-- This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': I used C-xC-e to evaluate the functions count-words-in-defun and count-words-defun as displayed in the Info section 14.3 of the Introduction. I then used C-xC-e to set the key sequence C-c= to invoke the latter function. I then positioned point in the sample function provided to see whether the two count-words functions were correct. Instead of reporting that there were 10 words or symbols in the function, Emacs reported that there were 1 word or symbol and point was moved to the beginning of section 14.3. Point should not have been moved in that fashion, according to the Introduction. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-06-25 on sochi, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux unstable (sid) Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: eo.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC e m SPC SPC 1 I n t o r o d u c t i o n SPC t o SPC E l i s p SPC 1 4 . 3 : SPC c o u n t - w o r d s - d e f u n SPC d n o t SPC w o r k i n g SPC a s SPC d e s c r i b e d C-y C-x 2 C-x C-f * m e s C-SPC M-w C-x k C-y C-x 0 M-d M-d p o e n i k a t u @ f a s t m a i l . c o . u k C-c C-c y e s m a i l SPC c l i e n t C-x o C-a C-x k C-x 1 C-x C-f * m e s M-w C-x k SPC q M-x r e p o r t SPC e m SPC SPC Recent messages: Mark set [2 times] Auto-saving...done byte-code: Beginning of buffer [9 times] Mark set Saving file /home/sian/.emacs... Wrote /home/sian/.emacs [2 times] Sending... Mark set [2 times] Sending via mail... Sending...done Load-path shadows: /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell Features: (jka-compr info mailalias mailclient browse-url cus-edit cus-start cus-load wid-edit help-mode shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server saveplace time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- Sian Mountbatten (home web-site http://www.poenikatu.co.uk/>) Learning C++11 from the C++ Primer 5th edition. I'm an associate FSF member (no. 10888). Help us support software freedom! http://www.fsf.org/jf?referrer=10888 --------------070503040903010608050909 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Sian Mountbatten <poenikatu@fastmail.co.uk>
To: bug-gnu-emacs@gnu.org
Subject: 24.3; Introduction to Elisp 14.3: count-words-defun misbehaves
--text follows this line--
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.=C2=A0 Please check that=
the From: line contains a valid email address.=C2=A0 After a delay = of up
to one day, you should receive an acknowledgment at that address.
Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.=C2=A0 If you can, give a recipe starting from `emacs -Q':

I used C-xC-e to evaluate the functions count-words-in-defun and count-words-defun as displayed in the Info section 14.3 of the
Introduction. I then used C-xC-e to set the key sequence C-c=3D to invoke
the latter function. I then positioned point in the sample function
provided to see whether the two count-words functions were correct.
Instead of reporting that there were 10 words or symbols in the
function, Emacs reported that there were 1 word or symbol and point was
moved to the beginning of section 14.3. Point should not have been moved
in that fashion, according to the Introduction.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
=C2=A0=C2=A0=C2=A0 `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.3/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2)
=C2=A0of 2013-06-25 on sochi, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description:=C2=A0=C2=A0=C2=A0 Debian GNU/Linux unstable (si= d)

Configured using:
=C2=A0`configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
=C2=A0'--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D/usr/lib'
=C2=A0'--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info' =C2=A0'--mandir=3D/usr/share/man' '--with-pop=3Dyes'
=C2=A0'--enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/= emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24= .3/site-lisp:/usr/share/emacs/site-lisp'
=C2=A0'--with-crt-dir=3D/usr/lib/x86_64-linux-gnu' '--with-x=3Dyes'=
=C2=A0'--with-x-toolkit=3Dgtk3' '--with-toolkit-scroll-bars'
=C2=A0'build_alias=3Dx86_64-linux-gnu' 'CFLAGS=3D-g -O2 -fstack-pro= tector
=C2=A0--param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-secur= ity -Wall'
=C2=A0'LDFLAGS=3D-Wl,-z,relro' 'CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2''<= br>
Important settings:
=C2=A0 value of $LANG: eo.UTF-8
=C2=A0 locale-coding-system: utf-8-unix
=C2=A0 default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 column-number-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Recent input:
SPC e m SPC SPC <return> 1 <backspace> I n t o <backspace>
r o d u c t i o n SPC t o SPC E l i s p SPC 1 4 . 3
: SPC c o u n t - w o r d s - d e f u n SPC d <backspace> n o t SPC w o r k i n g SPC a s SPC d e s c r i b e
d <return> C-y <up> <down> C-x 2 C-x C-f * m e s <tab>
<return> C-SPC <down> <down> <down> <down> <down> <down>
<down> <down> <down> M-w C-x k <return> C-y C-x 0 <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <backspace> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up>
<up> <up> <up> <up> <up> <up> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
M-d M-d p o e n i k a t u @ f a s t m a i l . c o .
u k <right> <right> C-c C-c y e s <return> m a i l
SPC c l i e n t <return> <help-echo> <down-mouse-1>
<mouse-1> C-x o <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <buffer> C-a C-x
k <return> C-x 1 C-x C-f * m e s <tab> <return> <up>
<up> <up> <up> <up> <up> <up> <up> <up> <S-down> <S-down>
<S-down> <S-down> <S-down> <S-down> <S-down> <S-down>
<S-down> M-w C-x k <return> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <emacs-manual-bug> <help-echo> <tab> <tab>
<tab> <return> SPC q M-x r e p o r t SPC e m SPC SPC <return>

Recent messages:
Mark set [2 times]
Auto-saving...done
byte-code: Beginning of buffer [9 times]
Mark set
Saving file /home/sian/.emacs...
Wrote /home/sian/.emacs [2 times]
Sending...
Mark set [2 times]
Sending via mail...
Sending...done

Load-path shadows:
/usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell

Features:
(jka-compr info mailalias mailclient browse-url cus-edit cus-start<= br> cus-load wid-edit help-mode shadow sort gnus-util mail-extr emacsbug
message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server
saveplace time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao<= br> korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule<= br> custom widget hashtable-print-readable backquote make-network-process
dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

--
Sian Mountbatten (home web-site http://www.poenikatu.co.uk/>)=
Learning C++11 from the C++ Primer 5th edition.
I'm an associate FSF member (no. 10888).
Help us support software freedom! http://www.fsf.org/jf?referrer=3D10888

--------------070503040903010608050909-- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 11 07:48:08 2013 Received: (at 15069) by debbugs.gnu.org; 11 Aug 2013 11:48:08 +0000 Received: from localhost ([127.0.0.1]:52832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8U7z-00034Q-0W for submit@debbugs.gnu.org; Sun, 11 Aug 2013 07:48:07 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:54217) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8U7v-00034G-DY for 15069@debbugs.gnu.org; Sun, 11 Aug 2013 07:48:04 -0400 Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 6AB5620E5D for <15069@debbugs.gnu.org>; Sun, 11 Aug 2013 07:48:02 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sun, 11 Aug 2013 07:48:02 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.co.uk; h= message-id:date:from:mime-version:to:subject:content-type; s= mesmtp; bh=Vh+9f4NjKH9jZiAEdL6bJPXRaa0=; b=cObYp3fZBJPu82mVUL2oQ LZNxyrVGq8PacwrJWU12zjXPq3+X7e3ZzCQ26fxaF4+ubzPCjz08FefrtG/1L59y LIV1zqeQbTyxoSi6pAQ7Vdsnd9gPpwb+WCJ6wk2LorDHRV4X5F9st7x/Sa0fum07 fPEoeYta0OqJVBO45/48Wc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:content-type; s=smtpout; bh=Vh+9f4NjKH9jZiAEdL6bJPXRaa0 =; b=dsNNN2UWXp0sBCAmKy8VyUTU42R5cyhJlHhxtzXbUor7Y+1nMCa6PZwZmud zCymr0GXguLZU93iQZNyCQ4obZU4iky6FmmnKsrT8QrXa991wlrWWMW/SONcXmlH AOI5f/hbSgHkHoMWUQUba1EZnxINKpm4RpG+olDQz5CrVjOg= X-Sasl-enc: QG3clA563ONMfFbwVQWpE/CSfkbXKlwtZAR2dFXHJEs9 1376221681 Received: from [192.168.11.10] (unknown [92.29.166.200]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A40EC00E81 for <15069@debbugs.gnu.org>; Sun, 11 Aug 2013 07:47:59 -0400 (EDT) Message-ID: <520779E5.6020809@fastmail.co.uk> Date: Sun, 11 Aug 2013 12:47:49 +0100 From: Sian Mountbatten User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Thunderbird/23.0 MIME-Version: 1.0 To: 15069@debbugs.gnu.org Subject: Bug: 15069: Correct functioning in the *scratch* buffer Content-Type: multipart/alternative; boundary="------------060100060707000505040509" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15069 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) This is a multi-part message in MIME format. --------------060100060707000505040509 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit The commands C-xC-e were issued within the *info* buffer. After positioning point within the sample function definition, and issuing C-c=, the erroneous behaviour, as described, occurred. However, copying the two functions and the global key setting and the sample function to the *scratch* buffer and then setting point into the sample function definition and keying C-c= produced the correct result: There are 10 words or symbols... Point was set to the character beyond the function definition. -- Sian Mountbatten (home web-site http://www.poenikatu.co.uk/>) Learning C++11 from the C++ Primer 5th edition. I'm an associate FSF member (no. 10888). Help us support software freedom! http://www.fsf.org/jf?referrer=10888 --------------060100060707000505040509 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit The commands C-xC-e were issued within the *info* buffer.
After positioning point within the sample function definition,
and issuing C-c=, the erroneous behaviour, as described, occurred.

However, copying the two functions and the global key setting and
the sample function to the *scratch* buffer and then setting point
into the sample function definition and keying C-c= produced the
correct result: There are 10 words or symbols... Point was set to the
character beyond the function definition.
-- 
Sian Mountbatten (home web-site http://www.poenikatu.co.uk/>)
Learning C++11 from the C++ Primer 5th edition.
I'm an associate FSF member (no. 10888).
Help us support software freedom! http://www.fsf.org/jf?referrer=10888
--------------060100060707000505040509-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 28 04:31:38 2020 Received: (at control) by debbugs.gnu.org; 28 Oct 2020 08:31:38 +0000 Received: from localhost ([127.0.0.1]:47027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXgrq-0001st-C9 for submit@debbugs.gnu.org; Wed, 28 Oct 2020 04:31:38 -0400 Received: from mail-ej1-f43.google.com ([209.85.218.43]:35297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXgrp-0001sh-Hh for control@debbugs.gnu.org; Wed, 28 Oct 2020 04:31:37 -0400 Received: by mail-ej1-f43.google.com with SMTP id p5so6004023ejj.2 for ; Wed, 28 Oct 2020 01:31:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=UAsnMTHGGvpSTETGkswP3P5xUH8gla+F6AhqT15WZKw=; b=uIPBVQrEPvty8XTf7IWv+tO24RHFerMOHTBKrJ1XZsWms/BAX/kyUBTHdlrA5qCtJo jbKQVlWrPxJPW0+YtwkUVRUrAW2sTO7siECenitMYjok1/hurffekLlgN40zXo3VDZwE k85ePtr7a7nIxcTVSQ1vPvy2YrcIMEfbihKpntIygDsbHsUnOYx9L7jS605sGO6S6OrJ aG+TcuBF0Ux5J7qzHo6KPlAeQp4MCXD5ApcFJkaWIxxp6rFu0Y/g7oyXUvEvhhZngPwk HvvnFCbmQAzLjOK3gBsvuW0p+zBkg2Ok7tjgLA9UfedQbBxAP0zhAOHf7Rg1PtrTidbv M6dw== X-Gm-Message-State: AOAM530nREMJhI4GvR04o/w+OwtezgAM0rAZoJEOoGHFku32kCCEWp1u TFoIda/DKuIP1kGlexBcym3LkpMtv744V2BClAvvQhqp X-Google-Smtp-Source: ABdhPJxSwuQr6Id5Y9PAm2aPMvkrZphTVyPqHVbFfZlhrYijbE/yqUSozHQbXid+9BIHOy1ijfw7irEEEtYApLeybPA= X-Received: by 2002:a17:906:35d7:: with SMTP id p23mr3478846ejb.312.1603873891366; Wed, 28 Oct 2020 01:31:31 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 28 Oct 2020 01:31:31 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Wed, 28 Oct 2020 01:31:31 -0700 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 15069 + easy thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.218.43 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.218.43 listed in list.dnswl.org] 2.0 BLANK_SUBJECT Subject is present but empty 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 15069 + easy thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.218.43 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.218.43 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 2.0 BLANK_SUBJECT Subject is present but empty 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines tags 15069 + easy thanks From debbugs-submit-bounces@debbugs.gnu.org Fri May 21 15:40:06 2021 Received: (at 15069) by debbugs.gnu.org; 21 May 2021 19:40:06 +0000 Received: from localhost ([127.0.0.1]:37604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkB0A-0007Qr-7F for submit@debbugs.gnu.org; Fri, 21 May 2021 15:40:06 -0400 Received: from mx1.riseup.net ([198.252.153.129]:45466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkB07-0007QI-Ts for 15069@debbugs.gnu.org; Fri, 21 May 2021 15:40:04 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (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 4FmxlL0Vm6zDs8C; Fri, 21 May 2021 12:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1621625998; bh=MGTfMwX/4/T8dTH2tv3U7n+9UW8xVNVaEz1sKC9JmaY=; h=From:To:Cc:Subject:Date:From; b=A7PVWMsLjr/op+UhQlK2/tCT1UTuMy4LacVfRb+t+b9XWkVuU9tIhLIidoi3+0ltR TsiAn+KkvUyc7aOE3RqY2//La1aYJZV9kMKa7MK446Nrme9NOmjUxPP5LShs8NoWR8 Srvj7iI0oLu9Ni5ITE8AXdGwjvfAW3ampIZC67mY= X-Riseup-User-ID: BA2D80C9F3650D1C32D46C62555DA39D484E1445BE91FFC716F86DC63BDC6DA4 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4FmxlJ2Bgfz1yS8; Fri, 21 May 2021 12:39:55 -0700 (PDT) From: pillule To: 15069@debbugs.gnu.org Subject: [PATCH] Bug: 15069: Correct functioning in the *scratch* buffer Date: Fri, 21 May 2021 19:39:37 +0000 Message-ID: <87bl93anba.fsf@host.localdomain> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15069 Cc: Sian Mountbatten , Stefan Kangas X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; format=flowed Hi, Is that correct that it is a documentation bug (need to specify to the user to evaluate `count-words-in-defun' in eg, a *scratch* buffer) rather than an implementation bug (fixing the behavior of beginning-of-defun in Info-mode) ? If so I attached a small patch there, and verified it after a `make docs` --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Clarify-page-14.3-of-eintr-manual-bug-15069.patch Content-Description: patch for the emacs-lisp introduction manual >From 22e3722320bab1f8fbfef062afc0c7f889440c9a Mon Sep 17 00:00:00 2001 From: Trust me I am a doctor Date: Fri, 21 May 2021 18:34:58 +0000 Subject: [PATCH] Clarify page 14.3 of eintr manual (bug#15069) It has been pointed the instructions for `count-words-in-defun` are ambiguous : One can expect to evaluate the sexp in the Info manual but that would not work, so this commit explicit that it must be done in a clean buffer (= with a valid syntaxe tree). Copyright-paperwork-exempt: yes --- doc/lispintro/emacs-lisp-intro.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index fade4096e3..ba5fae4ff0 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi @@ -14650,7 +14650,8 @@ Let's re-use @kbd{C-c =} as a convenient keybinding: Now we can try out @code{count-words-defun}: install both @code{count-words-in-defun} and @code{count-words-defun}, and set the -keybinding, and then place the cursor within the following definition: +keybinding, and then place the cursor within the following definition, +in a clean scratch buffer: @smallexample @group -- 2.20.1 --=-=-= Content-Type: text/plain; format=flowed I remember I especially liked to be able to evaluate sexp in place in the eintr manual, that is fitting so well the interpreted nature of elisp, but here the situation is out of my mind : - 1. the norm seems to *not* use the column 0 to declare top level sexp in Info manuals even if `open-paren-in-column-0-is-defun-start' is set to t. - 2. there is many opened sexp given as exemple, which will confuse the syntaxe tree. Have a nice day, or, night, I don't know. -- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 02:34:29 2021 Received: (at 15069) by debbugs.gnu.org; 22 May 2021 06:34:29 +0000 Received: from localhost ([127.0.0.1]:38207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkLDQ-0002hM-Qb for submit@debbugs.gnu.org; Sat, 22 May 2021 02:34:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkLDO-0002h8-Ob for 15069@debbugs.gnu.org; Sat, 22 May 2021 02:34:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52302) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkLDI-0001Tm-Kh; Sat, 22 May 2021 02:34:20 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4425 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkLDI-0001jg-2p; Sat, 22 May 2021 02:34:20 -0400 Date: Sat, 22 May 2021 09:34:19 +0300 Message-Id: <83pmxjl1jo.fsf@gnu.org> From: Eli Zaretskii To: pillule In-Reply-To: <87bl93anba.fsf@host.localdomain> (message from pillule on Fri, 21 May 2021 19:39:37 +0000) Subject: Re: bug#15069: [PATCH] Bug: 15069: Correct functioning in the *scratch* buffer References: <52077652.1050901@fastmail.co.uk> <87bl93anba.fsf@host.localdomain> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 15069 Cc: poenikatu@fastmail.co.uk, stefan@marxist.se, 15069@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: pillule > Date: Fri, 21 May 2021 19:39:37 +0000 > Cc: Sian Mountbatten , > Stefan Kangas > > It has been pointed the instructions for `count-words-in-defun` are > ambiguous : One can expect to evaluate the sexp in the Info manual but > that would not work, so this commit explicit that it must be done in a > clean buffer (= with a valid syntaxe tree). > > Copyright-paperwork-exempt: yes > --- > doc/lispintro/emacs-lisp-intro.texi | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi > index fade4096e3..ba5fae4ff0 100644 > --- a/doc/lispintro/emacs-lisp-intro.texi > +++ b/doc/lispintro/emacs-lisp-intro.texi > @@ -14650,7 +14650,8 @@ Let's re-use @kbd{C-c =} as a convenient keybinding: > > Now we can try out @code{count-words-defun}: install both > @code{count-words-in-defun} and @code{count-words-defun}, and set the > -keybinding, and then place the cursor within the following definition: > +keybinding, and then place the cursor within the following definition, > +in a clean scratch buffer: It says "install the functions", which means they should be evaluated or loaded, and that tells you the Lisp code should already be available in some Lisp buffer, whether it's *scratch* or some *.el file. So why did you think it speaks about the text in the Info buffer? That's not the intent of the text, and the text says as much. 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 (see CONTRIBUTE) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon May 24 11:48:38 2021 Received: (at 15069) by debbugs.gnu.org; 24 May 2021 15:48:38 +0000 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 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 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 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) References: <52077652.1050901@fastmail.co.uk> <87bl93anba.fsf@host.localdomain> <83pmxjl1jo.fsf@gnu.org> From: pillule To: Eli Zaretskii Subject: Re: bug#15069: [PATCH] Bug: 15069: Correct functioning in the *scratch* buffer In-reply-to: <83pmxjl1jo.fsf@gnu.org> Date: Mon, 24 May 2021 15:48:20 +0000 Message-ID: <87bl903zgb.fsf@host.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15069 Cc: pillule , poenikatu@fastmail.co.uk, stefan@marxist.se, 15069@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 21 09:45:06 2021 Received: (at 15069) by debbugs.gnu.org; 21 Aug 2021 13:45:06 +0000 Received: from localhost ([127.0.0.1]:36108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHRJ4-0008Mi-9m for submit@debbugs.gnu.org; Sat, 21 Aug 2021 09:45:06 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHRJ1-0008Lp-La for 15069@debbugs.gnu.org; Sat, 21 Aug 2021 09:45:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qJl02T0ZSR95X3bQQQw8DPoCdfADXZSB00dId80ajl0=; b=i0JZt5uSbmwKydJ1jD0F4+FbqB T9+CcLCQjczNbEz0PtrPlGdERiI17ndWg9dItSIt9sZj2dw8Kt1fiDoj0RTBlt3NGtuU3lQcydGZJ GGLfhQ8TZYjSpVWkMgZJjantEyiicDZmEg7zO2j53FgCOafKMsItbjHfPwTrKp6zVrzY=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mHRIp-0001ky-Fk; Sat, 21 Aug 2021 15:44:55 +0200 From: Lars Ingebrigtsen To: pillule Subject: Re: bug#15069: Introduction to Elisp 14.3: Function 'count-words-defun' does not work as described. References: <52077652.1050901@fastmail.co.uk> <87bl93anba.fsf@host.localdomain> <83pmxjl1jo.fsf@gnu.org> <87bl903zgb.fsf@host.localdomain> Date: Sat, 21 Aug 2021 15:44:50 +0200 In-Reply-To: <87bl903zgb.fsf@host.localdomain> (pillule@riseup.net's message of "Mon, 24 May 2021 15:48:20 +0000") Message-ID: <87a6la3oa5.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: pillule writes: >> So why did you think it speaks about the text in the Info buffer? >> That's not the intent of the text, and the text says as much. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 15069 Cc: Eli Zaretskii , poenikatu@fastmail.co.uk, stefan@marxist.se, 15069@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) pillule writes: >> So why did you think it speaks about the text in the Info buffer? >> That's not the intent of the text, and the text says as much. [...] > (info "(eintr) Buffer Names") > =C2=AB If you are reading this in Info inside of GNU Emacs, you can > evaluate > each of the following expressions by positioning the cursor after 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 = both > =E2=80=98count-words-in-defun=E2=80=99 and =E2=80=98count-words-defun=E2= =80=99, and set the > 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 case, > he or she must instead copy the following definition in a separate > file, > then call the command `count-words-in-defun' within it. I agree -- I read the section now, and `C-x C-e'-d the definitions as expected (in the *info* buffer), and then I naturally tried the `C-c =3D' command in the *info* buffer too -- which failed. So I've installed a clarification along the lines suggested by pillule in Emacs 28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 21 09:45:08 2021 Received: (at control) by debbugs.gnu.org; 21 Aug 2021 13:45:08 +0000 Received: from localhost ([127.0.0.1]:36110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHRJ6-0008Ms-LC for submit@debbugs.gnu.org; Sat, 21 Aug 2021 09:45:08 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHRJ3-0008Ls-Le for control@debbugs.gnu.org; Sat, 21 Aug 2021 09:45:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8bOKPKLVMzRbVFnv1pKet0OzlRY6PZtSOqzJoML59iY=; b=hdWcA6yvy0l8Z7pkWHvRvsvXo/ Pzj+AJC3gL9lUymQhiwR79IqPY+0dIzLgrVzCLW8Hc7DFfTzLh1iXE5tuRq8inTtgDebzQUUPCIkA YJ5Klt09GRRN9ALiKoaQ3KQGjo8ZKL8fZ+1dGlg7lC7jKWdfFTdK1pDtzbFZGRBrALis=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mHRIv-0001l3-S0 for control@debbugs.gnu.org; Sat, 21 Aug 2021 15:44:59 +0200 Date: Sat, 21 Aug 2021 15:44:57 +0200 Message-Id: <878s0u3o9y.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #15069 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 15069 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 15069 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 30 16:04:00 2021 Received: (at 15069) by debbugs.gnu.org; 30 Aug 2021 20:04:01 +0000 Received: from localhost ([127.0.0.1]:60389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKnVg-0001dL-O9 for submit@debbugs.gnu.org; Mon, 30 Aug 2021 16:04:00 -0400 Received: from mx1.riseup.net ([198.252.153.129]:58202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKnVe-0001d2-Bw for 15069@debbugs.gnu.org; Mon, 30 Aug 2021 16:03:59 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (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 4Gz1VJ6h02zF2qM; Mon, 30 Aug 2021 13:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1630353833; bh=/04RZvTq8X4b0hE6kqfodmr4YkYCPqOZ2WGL9uGzMnU=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=gJ1E8DGJ0dYeM1SyLSvzTvtuGpoGPa2/Ov1lq9FRqvBftqxVx5dcIIZciBix+4QOz jD2H9q+auPE9vWM/6Xdpl2iWcgpEFwrKJSbDv9vViYEC98PZ3UdweOLMbVlKSzKcIg 6jpat+OEN6krsSQkQ2QCIukjfKmRDwbjKCV0Zj+U= X-Riseup-User-ID: BBF628FD3F85C14E0302CD8ACEF4E03129974C2AAB754006833D2564EF5841C6 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4Gz1VH3FWzz1yBb; Mon, 30 Aug 2021 13:03:51 -0700 (PDT) References: <52077652.1050901@fastmail.co.uk> <87bl93anba.fsf@host.localdomain> <83pmxjl1jo.fsf@gnu.org> <87bl903zgb.fsf@host.localdomain> <87a6la3oa5.fsf_-_@gnus.org> From: Trust me I am a Doctor To: Lars Ingebrigtsen Subject: Re: bug#15069: Introduction to Elisp 14.3: Function 'count-words-defun' does not work as described. Date: Mon, 30 Aug 2021 22:02:16 +0200 In-reply-to: <87a6la3oa5.fsf_-_@gnus.org> Message-ID: <87o89ezomb.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15069 Cc: Eli Zaretskii , poenikatu@fastmail.co.uk, stefan@marxist.se, 15069@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Lars Ingebrigtsen writes: > I agree -- I read the section now, and `C-x C-e'-d the definitions as > expected (in the *info* buffer), and then I naturally tried the `C-c =' > command in the *info* buffer too -- which failed. Thanks Lars to find the right words and to take care of that old bug :) -- From unknown Sun Jun 22 07:29:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 28 Sep 2021 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator