From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Zachary Kanfer Newsgroups: gmane.emacs.bugs Subject: bug#24221: 25.1.50; binding anonymous functions to keys cause help buffer navigation errors Date: Sat, 13 Aug 2016 20:59:37 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11445822687ccd0539fda271 X-Trace: blaine.gmane.org 1471136479 3586 195.159.176.226 (14 Aug 2016 01:01:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 Aug 2016 01:01:19 +0000 (UTC) To: 24221@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 14 03:01:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYjne-0000kF-IY for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Aug 2016 03:01:14 +0200 Original-Received: from localhost ([::1]:59092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYjnb-000382-Mi for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 21:01:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYjnV-00037o-0g for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 21:01:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYjnS-0001vT-4w for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 21:01:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYjnS-0001vP-2J for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 21:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bYjnR-0005ay-Sx for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 21:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zachary Kanfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Aug 2016 01:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147113641621437 (code B ref -1); Sun, 14 Aug 2016 01:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Aug 2016 01:00:16 +0000 Original-Received: from localhost ([127.0.0.1]:56644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYjmh-0005Zh-OJ for submit@debbugs.gnu.org; Sat, 13 Aug 2016 21:00:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYjme-0005ZS-MS for submit@debbugs.gnu.org; Sat, 13 Aug 2016 21:00:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYjmX-0001h1-Qx for submit@debbugs.gnu.org; Sat, 13 Aug 2016 21:00:07 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYjmX-0001ff-O7 for submit@debbugs.gnu.org; Sat, 13 Aug 2016 21:00:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYjmU-0002zD-Te for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 21:00:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYjmS-0001f8-BG for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 21:00:01 -0400 Original-Received: from mail-it0-x22e.google.com ([2607:f8b0:4001:c0b::22e]:38487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYjmS-0001eh-4D for bug-gnu-emacs@gnu.org; Sat, 13 Aug 2016 21:00:00 -0400 Original-Received: by mail-it0-x22e.google.com with SMTP id c13so3587963ith.1 for ; Sat, 13 Aug 2016 17:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ZDCXahTEytjvl7ZNAKuAQBL0vEDVqTXFyvgpPLKRVvk=; b=lVy7k6n91q5VyiiwwqCDDLiBB4Q1a5LDwtChPQ6eocEEud/GUctkpU5swbP+nv8MLs CJGZNDdJqVSc/hhEHIa2X4PNf6JPU9dZ2pO24i0jwcJJO5ruPzcHRwSp2SUXfvcF80k6 ADp3cu4OiIBEfR54DMdNrCj/k7eHwuepnQ8PtekxteiXVgB6bdmuGMMlMQ0Bi2X2GuG1 S1yoKpSbNyyaMEYKErJgh9FgEzp9fLfI6SZ5k5Rs/C1lZQufKSO3T733a7JQGApUYQhU tMXjXATvy/kXd2WpRxt6d3BMnDCixhUxfcLgvjUugVAjxmC5SiWULX+fBmcarYeGFVrN 6KJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZDCXahTEytjvl7ZNAKuAQBL0vEDVqTXFyvgpPLKRVvk=; b=EInTxjUBNcy1lcVFUo4MYsb6CYnmrWr+yM2mBbyhjnkSIK0QtKyYz9nUvTkE07Ijhh Gmz3Si8vl1LCTloVMW58xrVBu0/Zfsl69Dk7ucW272Qz3YFg9RR9t+E16ucU8Lgaaehd X54bdWYIE9VNZ5W6fyGIE3uj9hKvVkSTPA+IprQd8o+yxr5Tp+xY/fB0f4HQnUs9FilQ TKfuvjPcZDEA0zBsiosI9TwouE5dQNua+/8KbEST6FFu8qnV+VxNENEJ0D+PfxynAmP8 zlbCRKu1FPrno7912Cat/aChtLsNZzHP/zFP+JGp7v7eH16D9bVHYrvBDtweebUrk17x U1RQ== X-Gm-Message-State: AEkoousjnosSV493ys0kS+H0F6VAmyVIh5En7A31At42YuDB6JY2r8ybja8LllOFrigESpIBZo3ZqhbLfBAseg== X-Received: by 10.36.17.20 with SMTP id 20mr6885807itf.94.1471136397817; Sat, 13 Aug 2016 17:59:57 -0700 (PDT) Original-Received: by 10.107.189.132 with HTTP; Sat, 13 Aug 2016 17:59:37 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:122184 Archived-At: --001a11445822687ccd0539fda271 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This is a bug that happens when trying to navigate between two *Help* buffers. =3D=3DReproduction instructions=3D=3D emacs -Q Evaluate this code: (global-set-key (kbd "C-c l") (lambda () (interactive) (insert "This messes up the help buffer somehow."))) Then open up a help buffer for that function: C-h k C-c l And a help buffer for something else: C-h k a Then, in the help buffer, go to the bottom, and try to select the "[back]" link. I get an error: "user-error: You didn=E2=80=99t specify a fu= nction symbol". If I try again, I get a different error: "apply: Symbol=E2=80=99s function definition is void: nil". These errors happen whether I've select the link with pressing Enter on the keyboard or by clicking the mouse. =3D=3DEnd of instructions=3D=3D In GNU Emacs 25.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9) of 2016-07-10 built on zck-laptop Repository revision: 466ee1b3ea76425d201b5d59950e88251870c836 Windowing system distributor 'The X.Org Foundation', version 11.0.11803000 System Description: Ubuntu 16.04.1 LTS Recent messages: Mark set (lambda nil (interactive) (insert "This messes up the help buffer somehow.")) Type C-x 1 to delete the help window. Mark set user-error: You didn=E2=80=99t specify a function symbol apply: Symbol=E2=80=99s function definition is void: nil scroll-up-command: End of buffer [2 times] apply: Symbol=E2=80=99s function definition is void: nil [3 times] p is undefined Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra help-fns radix-tree help-mode easymenu edmacro kmacro cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 98309 6988) (symbols 48 20970 0) (miscs 40 262 168) (strings 32 18601 4494) (string-bytes 1 595182) (vectors 16 13861) (vector-slots 8 449156 6768) (floats 8 188 43) (intervals 56 248 0) (buffers 976 12) (heap 1024 25332 985)) --001a11445822687ccd0539fda271 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This is a bug that happens when trying to navigate be= tween two *Help* buffers.

=3D=3DReproduction instructions=3D= =3D

emacs -Q

Evaluate this code:

(global-set= -key (kbd "C-c l") (lambda () (interactive) (insert "Thismesses up the help buffer somehow.")))

Then open up a help buf= fer for that function:

C-h k C-c l

And a help buffer for some= thing else:

C-h k a

Then, in the help buffer, go to the botto= m, and try to select the
"[back]" link. I get an error: "= user-error: You didn=E2=80=99t specify a function
symbol". If I try= again, I get a different error: "apply: Symbol=E2=80=99s
function = definition is void: nil". These errors happen whether I've
sele= ct the link with pressing Enter on the keyboard or by clicking the
mouse= .

=3D=3DEnd of instructions=3D=3D

In GN= U Emacs 25.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9)
=C2=A0= of 2016-07-10 built on zck-laptop
Repository revision: 466ee1b3ea76425d2= 01b5d59950e88251870c836
Windowing system distributor 'The X.Org Foun= dation', version 11.0.11803000
System Description:=C2=A0=C2=A0=C2=A0= Ubuntu 16.04.1 LTS

Recent messages:
Mark set
(lambda nil (int= eractive) (insert "This messes up the help buffer somehow."))
= Type C-x 1 to delete the help window.

Mark set
user-error: You di= dn=E2=80=99t specify a function symbol
apply: Symbol=E2=80=99s function = definition is void: nil
scroll-up-command: End of buffer [2 times]
ap= ply: Symbol=E2=80=99s function definition is void: nil [3 times]
p is un= defined

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGI= CK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 F= REETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Imp= ortant settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $= XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix

Ma= jor mode: Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-= mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-m= ode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: = t
=C2=A0 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-compr= ession-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode:= t

Load-path shadows:
None found.

Features:
(shadow sor= t mail-extr emacsbug message puny seq byte-opt gv bytecomp
byte-compile = cconv dired dired-loaddefs format-spec rfc822 mml mml-sec
password-cache= epa derived epg epg-config gnus-util rmail rmail-loaddefs
mm-decode mm-= bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader send= mail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils cl-extra h= elp-fns radix-tree help-mode easymenu edmacro
kmacro cl-loaddefs pcase c= l-lib time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-= hooks lisp-float-type mwheel term/x-win
x-win term/common-win x-dnd tool= -bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp= -mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer selec= t scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty= -colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese t= ibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek r= omanian slovak czech european
ethiopic indian cyrillic chinese charscrip= t case-table epa-hook
jka-cmpr-hook help simple abbrev obarray minibuffe= r cl-preloaded nadvice
loaddefs button faces cus-face macroexp files tex= t-properties overlay
sha1 md5 base64 format env code-pages mule custom w= idget
hashtable-print-readable backquote dbusbind inotify dynamic-settin= g
system-font-setting font-render-setting move-toolbar gtk x-toolkit xmulti-tty make-network-process emacs)

Memory information:
((con= ses 16 98309 6988)
=C2=A0(symbols 48 20970 0)
=C2=A0(miscs 40 262 168= )
=C2=A0(strings 32 18601 4494)
=C2=A0(string-bytes 1 595182)
=C2= =A0(vectors 16 13861)
=C2=A0(vector-slots 8 449156 6768)
=C2=A0(float= s 8 188 43)
=C2=A0(intervals 56 248 0)
=C2=A0(buffers 976 12)
=C2= =A0(heap 1024 25332 985))

--001a11445822687ccd0539fda271--