From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#23520: 25.0.93; find-feature-regexp : mismatch between docstring and default value. Date: Thu, 12 May 2016 09:52:37 +0200 Message-ID: <864ma3sofu.fsf@ulb.ac.be> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463043629 3180 80.91.229.3 (12 May 2016 09:00:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 May 2016 09:00:29 +0000 (UTC) To: 23520@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 12 11:00:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b0mTg-0006Qi-KA for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 May 2016 11:00:16 +0200 Original-Received: from localhost ([::1]:56390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0mTg-0000s2-4R for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 May 2016 05:00:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0mTX-0000gu-Iv for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 05:00:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0mTT-0005Tl-7T for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 05:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0mTT-0005Th-4o for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 05:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b0mTS-0001zZ-V3 for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 05:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 May 2016 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23520 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.14630436007619 (code B ref -1); Thu, 12 May 2016 09:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 May 2016 09:00:00 +0000 Original-Received: from localhost ([127.0.0.1]:48048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0mTQ-0001yp-0U for submit@debbugs.gnu.org; Thu, 12 May 2016 05:00:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0mTO-0001yb-4E for submit@debbugs.gnu.org; Thu, 12 May 2016 04:59:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0mTI-0005SE-1l for submit@debbugs.gnu.org; Thu, 12 May 2016 04:59:53 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0mTH-0005Rw-Uo for submit@debbugs.gnu.org; Thu, 12 May 2016 04:59:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0mTF-0000Ns-Me for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 04:59:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0mTB-0005RB-DP for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 04:59:48 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:16228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0mTB-0005QQ-7B for bug-gnu-emacs@gnu.org; Thu, 12 May 2016 04:59:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AssJANlENFekD4WM/2dsb2JhbABehA19pRgCARsGBYEKlS2HfAEBAQEBAWYnhVokNAGJD5pyoROFWIofhHEcBY1figREkAeHSDGFN49BYoE2AQoBAQGCKToyiDEBAQE Original-Received: from pno-math-140.ulb.ac.be (HELO Aurora) ([164.15.133.140]) by smtp.ulb.ac.be with ESMTP/TLS/AES128-SHA; 12 May 2016 10:58:49 +0200 User-agent: mu4e 0.9.17; emacs 25.0.93.1 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-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:118158 Archived-At: Here's the current definition of find-feature-regexp : (defcustom find-feature-regexp (concat ";;; Code:") "The regexp used by `xref-find-definitions' when searching for a feature definition. Note it must contain a `%s' at the place where `format' should insert the feature name." ;; We search for ";;; Code" rather than (feature '%s) because the ;; former is near the start of the code, and the latter is very ;; uninteresting. If the regexp is not found, just goes to ;; (point-min), which is acceptable in this case. :type 'regexp :group 'xref :version "25.0") The comment explains why there is no "%s" in the default value, but when doing C-h v find-feature-regexp RET, it's puzzling to read "must contain %s" and then the default value doesn't actually contain "%s". In GNU Emacs 25.0.93.1 (i686-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2016-05-03 built on Aurora Repository revision: c6077bfd297a8a0e4deaec217db17be630d98b9c Windowing system distributor 'The X.Org Foundation', version 11.0.11702000 System Description: Ubuntu 15.10