From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24309: 25.1; Problem in variable reference in docstrings. Date: Fri, 26 Aug 2016 11:55:54 +0300 Message-ID: <83vayndi3p.fsf@gnu.org> References: <87poowfnxh.fsf@reisefreund.localdomain> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1472201781 16303 195.159.176.226 (26 Aug 2016 08:56:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 Aug 2016 08:56:21 +0000 (UTC) Cc: 24309@debbugs.gnu.org To: Nathanael Schweers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 26 10:56:17 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 1bdCvu-0003gO-Qe for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Aug 2016 10:56:14 +0200 Original-Received: from localhost ([::1]:59579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdCvs-000263-7x for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Aug 2016 04:56:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdCvm-00025i-BV for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2016 04:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdCvi-0006vU-7h for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2016 04:56:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdCvi-0006vN-4v for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2016 04:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bdCvi-0007PG-09 for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2016 04:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Aug 2016 08:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24309 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24309-submit@debbugs.gnu.org id=B24309.147220174628444 (code B ref 24309); Fri, 26 Aug 2016 08:56:01 +0000 Original-Received: (at 24309) by debbugs.gnu.org; 26 Aug 2016 08:55:46 +0000 Original-Received: from localhost ([127.0.0.1]:41036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdCvS-0007Oh-5j for submit@debbugs.gnu.org; Fri, 26 Aug 2016 04:55:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bdCvP-0007OV-SL for 24309@debbugs.gnu.org; Fri, 26 Aug 2016 04:55:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdCvH-0006q7-D3 for 24309@debbugs.gnu.org; Fri, 26 Aug 2016 04:55:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdCvH-0006pt-9X; Fri, 26 Aug 2016 04:55:35 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3659 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bdCvF-00078U-HW; Fri, 26 Aug 2016 04:55:34 -0400 In-reply-to: <87poowfnxh.fsf@reisefreund.localdomain> (message from Nathanael Schweers on Fri, 26 Aug 2016 01:07:06 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:122684 Archived-At: > From: Nathanael Schweers > Date: Fri, 26 Aug 2016 01:07:06 +0200 > > > 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 “emacs -Q”. > - 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*") > > (defun fun0 () "see variable ‘var’." var) > (defun fun1 () "see var*iable ‘var*’." var*) > (defun fun2 () "see *variable ‘*var’." *var) > (defun fun3 () "see *var*iable ‘*var*’." *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.