GNU bug report logs - #33830
27.0.50; help-xref-stack contains bad entries

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Alex Branham <alex.branham@HIDDEN>; dated Fri, 21 Dec 2018 16:57:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 33830 <at> debbugs.gnu.org:


Received: (at 33830) by debbugs.gnu.org; 27 Dec 2018 22:39:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 27 17:39:13 2018
Received: from localhost ([127.0.0.1]:39608 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gceJ7-0007Uh-FY
	for submit <at> debbugs.gnu.org; Thu, 27 Dec 2018 17:39:13 -0500
Received: from mail-qk1-f181.google.com ([209.85.222.181]:46295)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <federicotedin@HIDDEN>) id 1gceJ4-0007US-VP
 for 33830 <at> debbugs.gnu.org; Thu, 27 Dec 2018 17:39:11 -0500
Received: by mail-qk1-f181.google.com with SMTP id q1so11632630qkf.13
 for <33830 <at> debbugs.gnu.org>; Thu, 27 Dec 2018 14:39:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=UVrb3Uq7cnJl+Rae+N/FkNy25T5SF6zJO8SsWJK40DQ=;
 b=JUmQ4nOgVK0gnaJkuoz8c5/TOsCCI+UpK+VQ6cPTnKy//LH9X1rOw/+qqti/QaGS+h
 HvfwHbtKfYtLl31NJI9nV+KD5u6JxkXBWmj3Hi0dnXD5x+J/V2PHbsMOaxhL0k2QDWwI
 A3BF58FDLs6kC5U04JECMnqQb3sJKGyLqQn3b/gAjXSd1a/iTGik4b2F8HFe5ParukIR
 P2CdnGjvkE3/1b+jzEAnOR2DCDt3jc+rSdWMiccc8uKd0LhOO5gMpZFcHrClE8OjI7H6
 xYxRjB4NWw8UMbabgf3CvTVQ6DzKBtg9UCorxg5Pj+bKROZPvpgHjWXKblUZEpjuk/JE
 QijQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=UVrb3Uq7cnJl+Rae+N/FkNy25T5SF6zJO8SsWJK40DQ=;
 b=l0a2KT/XswfXYYhftHLIGgHD/znSg5d9ejOwQ6X+idBUtYZnD6Vo49spJ+GVwKB1fZ
 alXBpFrpHTZ8kKRIKPk+Jy2TXXhmZmKSB09H5kHZPIzAep190QiZZ7LzkD5ZMCHF1lAe
 tITBnZq9P0jo5uxKc1NVMBiGHfMsUQF9tjo3Lb3JXzMU2xwukhNivFhMlnpwioIx28OC
 yhBjb5DoqIhIE/Fmnh+oZMkZy9L1/IDmIZoKWr/VP2xkI17hL+0GRwe4pxQ3fteN49pA
 HuitQt3m1G3NdKVGWFJNIu+fNdbKKa8ukDwa8mqGCykVand4r1m3lkPCmqOEgKEM09fQ
 Vz0g==
X-Gm-Message-State: AJcUukeX40Dv9VgHVt0QE8DNjNi7K+ux7WTMIVemccnH8ZG0YfmqH9EW
 8ZPM++gFZjIFgrt+wM914a87BCK/
X-Google-Smtp-Source: ALg8bN6BnimRPtdlFB8+KVVCGVYPsmxSAXhockmqs+m6b2Pf6C7MhM2ty8vKjR+zrhE+YhW+TV+sfQ==
X-Received: by 2002:a37:5f82:: with SMTP id
 t124mr22889830qkb.204.1545950345117; 
 Thu, 27 Dec 2018 14:39:05 -0800 (PST)
Received: from hideo ([181.167.176.220])
 by smtp.gmail.com with ESMTPSA id e49sm16601105qta.0.2018.12.27.14.39.02
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 27 Dec 2018 14:39:04 -0800 (PST)
From: Federico Tedin <federicotedin@HIDDEN>
To: Alex Branham <alex.branham@HIDDEN>
Subject: Re: bug#33830: 27.0.50; help-xref-stack contains bad entries
References: <87sgyqyg2o.fsf@HIDDEN>
Date: Thu, 27 Dec 2018 19:38:59 -0300
In-Reply-To: <87sgyqyg2o.fsf@HIDDEN> (Alex Branham's message of "Fri, 21
 Dec 2018 10:55:59 -0600")
Message-ID: <874layegsc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 33830
Cc: 33830 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Alex Branham <alex.branham@HIDDEN> writes:

> Sometimes `help-xref-stack' contains "bad" entries, which makes
> help-go-forward and help-go-back error in a strange way. To see what I
> mean:
>
> emacs -q
>
> C-h f car RET
> C-h k C-x t
> C-h f cdr RET
>
> Now that the *Help* buffer is displaying `cdr', if you try to go back
> (with "l" or clicking the back button), you get "user-error C-x t is
> undefined".
>
> Alex

I've noticed that the `describe-key' and `describe-function' functions both
call `help-setup-xref' with key sequences and functions respectively,
even if said key sequences or functions are not valid (i.e. when the key
sequence isn't bound to anything and the function does not exist).

An example of this:

1) M-:: (describe-function 'hello) RET
2) C-h f car RET
3) On the *Help* buffer, press 'l'

The message 'Symbol=E2=80=99s function definition is void: hello' will be
displayed, and the *Help* buffer will contain "hello is ". Also, for
some reason, after pressing 'r', two [back] buttons will be shown.

Maybe `help-setup-xref' should only be called when it is certain that
the key sequence/function/etc. exists?

(tested on master branch)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33830; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Dec 2018 16:56:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 21 11:56:34 2018
Received: from localhost ([127.0.0.1]:58738 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gaO6E-0000Vg-4m
	for submit <at> debbugs.gnu.org; Fri, 21 Dec 2018 11:56:34 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59822)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex.branham@HIDDEN>) id 1gaO6C-0000VU-9q
 for submit <at> debbugs.gnu.org; Fri, 21 Dec 2018 11:56:32 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <alex.branham@HIDDEN>) id 1gaO64-0000u6-Tg
 for submit <at> debbugs.gnu.org; Fri, 21 Dec 2018 11:56:26 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:33828)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <alex.branham@HIDDEN>)
 id 1gaO61-0000r1-S7
 for submit <at> debbugs.gnu.org; Fri, 21 Dec 2018 11:56:24 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41109)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <alex.branham@HIDDEN>) id 1gaO5x-00048Q-QB
 for bug-gnu-emacs@HIDDEN; Fri, 21 Dec 2018 11:56:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <alex.branham@HIDDEN>) id 1gaO5j-0000aR-TJ
 for bug-gnu-emacs@HIDDEN; Fri, 21 Dec 2018 11:56:10 -0500
Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]:42104)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <alex.branham@HIDDEN>)
 id 1gaO5j-0000X8-MM
 for bug-gnu-emacs@HIDDEN; Fri, 21 Dec 2018 11:56:03 -0500
Received: by mail-ot1-x32c.google.com with SMTP id v23so5659344otk.9
 for <bug-gnu-emacs@HIDDEN>; Fri, 21 Dec 2018 08:56:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=user-agent:from:to:subject:date:message-id:mime-version;
 bh=yrno6Hin08/Adoz8PUrerk88UQZXyvD9606jMZhwXl8=;
 b=D0fZExtpbT/1i7iMa0FcbBFcmV5w12kYvar/yWeZT2geq1/fKp8e1pQPI+CfIQKExF
 la2AatRRiYUTOU3oD8diwsrhnwLC4JCwNpNC9cNCUcsfIKbsO6GFV8xgK6t0+/Blngdt
 QJl7smlKT7juWdCdnkBEsY7w2gntcuWyCudr5Utkg7nfyCA6OnVGSjodIl6E/Zr8FBWc
 x3q9QJLLWHFvhUhqqK2rMD0zxmLBGJOYXZ+GKsYToRVo5BDB/gQqATGTL93GiNDLNmzA
 BZGnZSU+PNDIID3kcD8VBnPq7X/k4fq5dJkX5grxcQN67sXRkSG2lIYRCYBi+lmji0bW
 E6nA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:user-agent:from:to:subject:date:message-id
 :mime-version;
 bh=yrno6Hin08/Adoz8PUrerk88UQZXyvD9606jMZhwXl8=;
 b=uUYtwhUqNND00PeXslB4ONOvbiPzIarQA2UkKxjI+3BUBXcf/i6YZMcGTIAosliUp2
 cMKLQGJQlOWP11FSjaNiE61rJUqfZ7hVvFmS+Tt1fqGk+FxykTXoBNsegLrho+diCZ/A
 sF43RrmQFxWilm5TRjrbTCt54Xegp6tXpwHnF3sJ5wfrhott6XDzR2yOm2WHCJAUzZm4
 EJFEO6GTXasZaB126ZljkzAp11Z+OBQcOClF+WgwxZcxdFAw+60mY+jP+JFRc32CAB5a
 nfZKJdRaFfFGUfsTZB2LdHISosWiuQkefFN5Hl8fpdlm+ynR+z61srLopLTyD3sQZXZp
 WSbw==
X-Gm-Message-State: AJcUukepALV/oGccAFgaAkHNGNIV/3UWz2VIKKxCoBWF520W4Fb39VSz
 D9jHRKOTWv9wWOwUZWOT0LHzKaTT
X-Google-Smtp-Source: ALg8bN52H0Jx1mrWHitfVJdsjv8zNP0XTEBVZ66yqdvS0jRtXY9DNg+EXg+Td4Pbyar8g257FOlggg==
X-Received: by 2002:a9d:7285:: with SMTP id t5mr2245598otj.228.1545411360837; 
 Fri, 21 Dec 2018 08:56:00 -0800 (PST)
Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208])
 by smtp.gmail.com with ESMTPSA id
 i12sm11893978otc.48.2018.12.21.08.55.59 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 21 Dec 2018 08:56:00 -0800 (PST)
User-agent: mu4e 1.1.0; emacs 27.0.50
From: Alex Branham <alex.branham@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; help-xref-stack contains bad entries
Date: Fri, 21 Dec 2018 10:55:59 -0600
Message-ID: <87sgyqyg2o.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Sometimes `help-xref-stack' contains "bad" entries, which makes
help-go-forward and help-go-back error in a strange way. To see what I
mean:

emacs -q

C-h f car RET
C-h k C-x t
C-h f cdr RET

Now that the *Help* buffer is displaying `cdr', if you try to go back
(with "l" or clicking the back button), you get "user-error C-x t is
undefined".

Alex




Acknowledgement sent to Alex Branham <alex.branham@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#33830; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.