From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#24309: 25.1; Problem in variable reference in docstrings. Date: Fri, 08 Nov 2019 04:48:19 +0100 Message-ID: <877e4bvxj0.fsf@marxist.se> References: <87poowfnxh.fsf@reisefreund.localdomain> <83vayndi3p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="99798"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Nathanael Schweers , 24309@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 08 04:49:22 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSvGy-000PoA-7z for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Nov 2019 04:49:20 +0100 Original-Received: from localhost ([::1]:49560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSvGx-0004r8-69 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Nov 2019 22:49:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35708) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSvGh-0004pt-62 for bug-gnu-emacs@gnu.org; Thu, 07 Nov 2019 22:49:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSvGg-0000na-1u for bug-gnu-emacs@gnu.org; Thu, 07 Nov 2019 22:49:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35518) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSvGf-0000nW-Ue for bug-gnu-emacs@gnu.org; Thu, 07 Nov 2019 22:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iSvGf-0005k0-S4 for bug-gnu-emacs@gnu.org; Thu, 07 Nov 2019 22:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Nov 2019 03:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24309 X-GNU-PR-Package: emacs Original-Received: via spool by 24309-submit@debbugs.gnu.org id=B24309.157318490822008 (code B ref 24309); Fri, 08 Nov 2019 03:49:01 +0000 Original-Received: (at 24309) by debbugs.gnu.org; 8 Nov 2019 03:48:28 +0000 Original-Received: from localhost ([127.0.0.1]:44337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSvG8-0005it-7E for submit@debbugs.gnu.org; Thu, 07 Nov 2019 22:48:28 -0500 Original-Received: from host.gofardesign.uk ([208.79.239.190]:34344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iSvG7-0005ib-8W; Thu, 07 Nov 2019 22:48:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To: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=72GX7iOuCbd9iP2n8OJtL2611DNKjUj9JDVLTKRAItM=; b=bxZ8/OaP8DCq5B8OjgphdW/Osc AjYl0B7vlYOR55BvRjJ2WuSi+GPY/dRhj6CNfR3ZtpZXErF0VgKf4bNPIkyNHbj4fhgudPdj4XTh6 6di3gDETl9RHMwEx7BY5Fb7t7qfc74gWbjfHus0AzfMVlq+LzdtoEcq8ipz38taMtzEw=; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:49256 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iSvG0-0005zb-KV; Thu, 07 Nov 2019 21:48:21 -0600 In-Reply-To: <83vayndi3p.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 26 Aug 2016 11:55:54 +0300") X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se 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: 209.51.188.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:171153 Archived-At: tags 24309 + wontfix close 24309 thanks Eli Zaretskii writes: >> From: Nathanael Schweers >> Date: Fri, 26 Aug 2016 01:07:06 +0200 >>=20 >>=20 >> This bug applies to both the version given in the description >> (i.e. 25.1-RC2) and version 24.5 distributed on fedora. > > Actually, Emacs has behaved like that since creation of hyper-links to > quoted symbols in doc strings was introduced in Emacs 20.3. > >> - Start Emacs with =E2=80=9Cemacs -Q=E2=80=9D. >> - evaluate these forms: >> (defvar var "var" "docstring of var") >> (defvar var* "var*" "docstring of var*") >> (defvar *var "*var" "docstring of *var") >> (defvar *var* "*var*" "docstring of *var*") >>=20 >> (defun fun0 () "see variable =E2=80=98var=E2=80=99." var) >> (defun fun1 () "see var*iable =E2=80=98var*=E2=80=99." var*) >> (defun fun2 () "see *variable =E2=80=98*var=E2=80=99." *var) >> (defun fun3 () "see *var*iable =E2=80=98*var*=E2=80=99." *var*) >> - See the docstrings of the defined functions. For fun0 and fun1 the >> reference to the variable is correct, for fun2 and fun3 they are not. > > See help-xref-symbol-regexp, it requires that the first character > after the opening quote has the word syntax, not the symbol syntax. I > don't know why is that, perhaps to avoid too many false positives or > something. The comment there says this was done deliberately. That was three years ago, and this discussion has seen no further replies. I take the above to mean that we don't want to change the current behaviour, and I'm therefore closing this bug. If anyone feels that this is indeed something we would like to reconsider, please reopen the bug report. Best regards, Stefan Kangas